-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
convert-hf : reduce repeated boilerplate from write_tensors #7031
Closed
Commits on Apr 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 47e02eb - Browse repository at this point
Copy the full SHA 47e02ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d720ac - Browse repository at this point
Copy the full SHA 0d720acView commit details -
Configuration menu - View commit details
-
Copy full SHA for c33775b - Browse repository at this point
Copy the full SHA c33775bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 698f0b3 - Browse repository at this point
Copy the full SHA 698f0b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for cde9ea6 - Browse repository at this point
Copy the full SHA cde9ea6View commit details
Commits on May 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 56f60f5 - Browse repository at this point
Copy the full SHA 56f60f5View commit details -
convert-hf : allow unusual model part names
For example, loading `model-00001-of-00001.safetensors` now works. * convert-hf : fix stacking MoE expert tensors `torch.stack` and `torch.cat` don't do the same thing. * convert-hf : fix Mamba conversion Tested to work even with a SentencePiece-based tokenizer.
Configuration menu - View commit details
-
Copy full SHA for 3870164 - Browse repository at this point
Copy the full SHA 3870164View commit details -
Configuration menu - View commit details
-
Copy full SHA for dcd8dfa - Browse repository at this point
Copy the full SHA dcd8dfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 21068b6 - Browse repository at this point
Copy the full SHA 21068b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 639b374 - Browse repository at this point
Copy the full SHA 639b374View commit details -
convert-hf : sort model part names
`os.listdir` is said to list files in arbitrary order. Sorting the file names should let "model-00009-of-00042.safetensors" be loaded before "model-00010-of-00042.safetensors".
Configuration menu - View commit details
-
Copy full SHA for 644c269 - Browse repository at this point
Copy the full SHA 644c269View commit details
Commits on May 2, 2024
-
convert-hf : use an ABC for Model again
It seems Protocol can't be used as a statically type-checked ABC, because its subclasses also can't be instantiated. (why did it seem to work?) At least there's still a way to throw an error when forgetting to define the `model_arch` property of any registered Model subclasses.
Configuration menu - View commit details
-
Copy full SHA for ce067af - Browse repository at this point
Copy the full SHA ce067afView commit details -
convert-hf : use a plain class for Model, and forbid direct instantia…
…tion There are no abstract methods used anyway, so using ABC isn't really necessary.
Configuration menu - View commit details
-
Copy full SHA for 13f4cf7 - Browse repository at this point
Copy the full SHA 13f4cf7View commit details
Commits on May 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6a54973 - Browse repository at this point
Copy the full SHA 6a54973View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e5e0dc - Browse repository at this point
Copy the full SHA 3e5e0dcView commit details
Commits on May 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 98f2d0e - Browse repository at this point
Copy the full SHA 98f2d0eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f2099c5 - Browse repository at this point
Copy the full SHA f2099c5View commit details
Commits on May 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 215a0d3 - Browse repository at this point
Copy the full SHA 215a0d3View commit details
Commits on May 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c32d39c - Browse repository at this point
Copy the full SHA c32d39cView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.