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

from_pretrained is broken after transformers made safetensor serialization default #60

Closed
dennj opened this issue Nov 26, 2023 · 1 comment

Comments

@dennj
Copy link

dennj commented Nov 26, 2023

https://github.com/aws-neuron/transformers-neuronx/blob/33fa412447a4028edb252fd06aae9ed93086a450/src/transformers_neuronx/module.py#L144C74-L144C74

The function is looking for pytorch_model.bin that does not exist.

Because of it most of the tutorials are broken, this one for example: https://github.com/aws-neuron/aws-neuron-samples/blob/master/torch-neuronx/transformers-neuronx/inference/meta-llama-2-13b-sampling.ipynb

@jyang-aws
Copy link

thanks @dennj
This is the same issue as aws-neuron/aws-neuron-sdk#786
we'll track it there.

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

No branches or pull requests

2 participants