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

Save and Load a Keras NLP Tuned model #271

Open
msmmpts opened this issue Feb 22, 2024 · 1 comment
Open

Save and Load a Keras NLP Tuned model #271

msmmpts opened this issue Feb 22, 2024 · 1 comment

Comments

@msmmpts
Copy link

msmmpts commented Feb 22, 2024

Hi,

I was following this tutorial

Link : https://colab.research.google.com/github/google/generative-ai-docs/blob/main/site/en/gemma/docs/lora_tuning.ipynb

Could please tell me as to how to save a fine tuned model to disk and load it back from Keras NLP?

@RYangData
Copy link

gemma_lm.save_weights("/dir/model.weights.h5")
gemma_lm.preprocessor.tokenizer.save_assets("dir")

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