-
Notifications
You must be signed in to change notification settings - Fork 263
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
Exporting Keras Llama Checkpoint to HF #2062
Comments
Hi, Noted it. We can use the
For more details, please check the reference provided. Thank you. |
Hi @Gopi-Uppari , Yes, i have used Keras to load my custom load using "keras_hub.models.Llama3CausalLM.from_preset("./local_folder") and it work pretty well. However, the main reason to ask for this feature because the built-in generate method with keras_hub give me little options regarding things like terminators, top_k, Sample, temperature. i had to hard coded it. |
Hi @salrowili, Okay, could you please confirm if this issue is resolved for you with the above comment ? Please feel free to close the issue if it is resolved ? Thank you. |
Hi @Gopi-Uppari , |
@salrowili , If you you are asking about the weight files for Llama in HF, here is the link https://huggingface.co/keras/llama3_8b_en_int8/tree/main |
Hi @sachinprasadhs , |
Understood, Thanks for clarifying, as of now we don't have conversion script to convert from Keras to HuggingFace for Llama, instead we have a conversion script to convert HuggingFace checkpoint to Keras checkpoint here https://github.com/keras-team/keras-hub/blob/master/tools/checkpoint_conversion/convert_llama_checkpoints.py |
Hi,
As the Llama3 is popular model, it would be great if we can have a script that export Llama Keras checkpoint to HF. The code is a already exist for Gemma : https://github.com/keras-team/keras-hub/blob/8ca2076d651532f7270ffa2beba44d377b100bbf/tools/gemma/export_gemma_to_hf.py
Something similar to Llama would be a great!
Thanks
The text was updated successfully, but these errors were encountered: