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

Error no file named pytorch_model.bin, model.safetensors #159

Open
morbidod opened this issue Sep 28, 2024 · 3 comments
Open

Error no file named pytorch_model.bin, model.safetensors #159

morbidod opened this issue Sep 28, 2024 · 3 comments

Comments

@morbidod
Copy link

morbidod commented Sep 28, 2024

Hello,

I successfully downloaded the model to this directory /root/.llama/checkpoints/Llama3.2-1B-Instruct
When I launch the AutoModelForCausalLM.from_pretrained passing the path above I got the following error:

OSError: Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory /root/.llama/checkpoints/Llama3.2-1B-Instruct.

(AutomodelForCasualLM is from latest transformers library (pip install -U transformers).

Thanks in advance for any suggestion.

@LennyxDxDxD
Copy link

metoo

@ShanthiniMichael
Copy link

Have you found any solution? I am also facing the same issue

@Brandonio-c
Copy link

You need to convert the model to a huggingface-appropriate format.

See:
https://github.com/huggingface/transformers/blob/main/src/transformers/models/llama/convert_llama_weights_to_hf.py

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

4 participants