-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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_llama_weights_to_hf #58
Comments
@JosephChenHub Are you looking for this https://huggingface.co/meta-llama/Meta-Llama-3-8B |
@JosephChenHub you can use the script convert_llama_weights_to_hf.py. Also some instructions from llama-recipe: ## Install Hugging Face Transformers from source
pip freeze | grep transformers ## verify it is version 4.31.0 or higher
git clone git@github.com:huggingface/transformers.git
cd transformers
pip install protobuf
python src/transformers/models/llama/convert_llama_weights_to_hf.py \
--input_dir /path/to/downloaded/llama/weights --model_size 7B --output_dir /output/path
This is not updated for llama3, but you can give it a go. |
huggingface/transformers#30334 will add the script and everything you need |
thanks @ArthurZucker! Closing this out as it's solved.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is there a script to convert weights to hf format?
The text was updated successfully, but these errors were encountered: