generative-ai-docs icon indicating copy to clipboard operation
generative-ai-docs copied to clipboard

Save and Load a Keras NLP Tuned model

Open msmmpts opened this issue 1 year ago • 1 comments

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?

msmmpts avatar Feb 22 '24 10:02 msmmpts

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

RYangData avatar Mar 02 '24 02:03 RYangData