Gemma2 LoRA Adapters
Collection
Gemma2 LoRA adapters fine-tuned using SFT in TRL on diverse tasks such as coding, SQL, Japanese to English, and function calling โข 6 items โข Updated
Run google-cloud-partnership/gemma-2-2b-it-lora-magicoder on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/google-cloud-partnership/gemma-2-2b-it-lora-magicoder. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/google-cloud-partnership/gemma-2-2b-it-lora-magicoder on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use google-cloud-partnership/gemma-2-2b-it-lora-magicoder with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("google/gemma-2-2b-it")
model = PeftModel.from_pretrained(base_model, "google-cloud-partnership/gemma-2-2b-it-lora-magicoder")This model is a fine-tuned version of google/gemma-2-2b-it on the alvarobartt/Magicoder-OAI dataset.
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/gemma-2-2b-it") model = PeftModel.from_pretrained(base_model, "google-cloud-partnership/gemma-2-2b-it-lora-magicoder")