Skip to content

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 coyotte508 as a code owner April 15, 2024 11:55
@mishig25 mishig25 requested a review from julien-c April 15, 2024 12:00
@mishig25 mishig25 merged commit 028fe00 into main Apr 15, 2024
@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