Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[safetensors] Fix RE_SAFETENSORS_SHARD_FILE #627

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

mishig25
Copy link
Collaborator

@mishig25 mishig25 commented Apr 15, 2024

follow up to #622 (comment)

but that was my point, the -_ is not optional
we do want to enforce some level of convention

@mishig25 mishig25 requested a review from julien-c April 15, 2024 12:00
@mishig25 mishig25 merged commit 028fe00 into main Apr 15, 2024
2 checks passed
@mishig25 mishig25 deleted the fix_RE_SAFETENSORS_SHARD_FILE_v3 branch April 15, 2024 12:01
Copy link
Member

@coyotte508 coyotte508 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not a typed function fn(filename) that returns all the data in a typed manner instead of the regex 🙈 .

Currently in the next version of HF.js we can change the regex to something else, removing or renaming the groups, and on moon's side we'd have no clue. No compiler warning or anything.

@mishig25
Copy link
Collaborator Author

yep, will submit a follow up pr

mishig25 pushed a commit that referenced this pull request Apr 17, 2024
follow up to
#627 (review)

> why not a typed function fn(filename) that returns all the data in a
typed manner instead of the regex 🙈 .
> Currently in the next version of HF.js we can change the regex to
something else, removing or renaming the groups, and on moon's side we'd
have no clue. No compiler warning or anything.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants