-
Notifications
You must be signed in to change notification settings - Fork 509
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
Generate compressed weights file from finetune #11
Comments
Hi @sanjay920, really cool that you're trying a fine tune already. We're working on releasing a conversion script soon (hopefully within the next few days), but would be useful to prioritize source formats. What are you converting from? Also if others need a converter for fine tune, feel free to chine in in here as well regarding what you'd use as a source format. |
Ideally from a PeftModel so I can convert like it's possible in llamacpp: https://github.com/ggerganov/llama.cpp/blob/master/convert-lora-to-ggml.py Or if one merges the lora adapter with the base model - so a |
Hi @sanjay920 , a quick FYI on the implementation: |
I would like to convert a fine-tuned keras model to sbs, using the fine-tuning script from https://ai.google.dev/gemma/docs/lora_tuning |
Hi @fengwang , there is a way to export the Keras weights to PyTorch through this script (maybe needs a little modification to remove But currently, this requires the |
I think this is now working, please feel free to reopen if you'd like to discuss or have an issue with the scripts. |
How do i generate the compressed weights file (sbs) from my fine tune? Consider I want to convert the model assets to the compressed weights file: https://huggingface.co/google/gemma-2b-it/tree/main how would i do that?
Thanks!
The text was updated successfully, but these errors were encountered: