gemma_pytorch icon indicating copy to clipboard operation
gemma_pytorch copied to clipboard

how to finetune with gemma model?

Open runningabcd opened this issue 1 year ago • 8 comments

how to finetune with gemma model?

runningabcd avatar Feb 22 '24 13:02 runningabcd

I had download gemma-7b-it model from hugging face already, but not find the script that can finetune wiht my own data

runningabcd avatar Feb 22 '24 13:02 runningabcd

help

runningabcd avatar Feb 22 '24 13:02 runningabcd

I had download gemma-7b-it model from hugging face already, but not find the script that can finetune wiht my own data

How to sft with gemma?Can you tell me the sft data format?

runningabcd avatar Feb 22 '24 13:02 runningabcd

I had download gemma-7b-it model from hugging face already, but not find the script that can finetune wiht my own data

How to sft with gemma?Can you tell me the sft data format?

@pengchongjin

runningabcd avatar Feb 22 '24 13:02 runningabcd

Hi there, unfortunately, this repo doesn't provide finetuning features.

Here are a few alternatives that might fit your needs:

  1. On Gemma model card in Vertex Model Garden, there are a few notebooks which demonstrate how to do finetuning and then deploy to Vertex endpoints.
  2. On Gemma model card in Kaggle, there are a few notebooks which uses KerasNLP to do finetuning.
  3. HuggingFace demonstrates how to use TRL to do finetuning in this blog post.

Hope it helps.

pengchongjin avatar Feb 22 '24 17:02 pengchongjin

@pengchongjin Is it possible to implement a class for fine tuning the model inside this repo similar to what done with llama-recipes?

r-gheda avatar Feb 24 '24 19:02 r-gheda

Are there any tutorials for fine-tuning 7b-it-quant model ?

aliasneo1 avatar Mar 18 '24 16:03 aliasneo1

Hi @aliasneo1

There are a few tutorials that demonstrate fine-tuning the gemma-2b model. You can follow similar procedures to fine-tune the Gemma variant gemma-7b-it.

Here are some resources:

selamw1 avatar Apr 24 '24 21:04 selamw1