-
Notifications
You must be signed in to change notification settings - Fork 187
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
Slice loading errors with integer indices #439
Comments
NB: For anyone running into this, the workaround is to use a slice width of one, which resolves the issue: |
Thanks a lot for reporting this, I've prepared a fix ! And yes slicing with real slices work, I forgot to add support for real index indexing. |
@Narsil - thanks for looking into this! Cool to see a PR so soon. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System Info
safetensors==0.4.2
Information
Reproduction
Expected behavior
I expect this to return a slice of the tensor "test", instead I get the error:
argument 'slices': failed to extract enum Slice ('Slice | Slices')
As far as I can see there's no notes in the documentation or examples about integer slices not working?
https://huggingface.co/docs/safetensors/en/index
The text was updated successfully, but these errors were encountered: