Run this model with HF Jobs
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:
Fine-tune on my dataset
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.
Run batch inference
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.
Instructions to use google-cloud-partnership/gemma-2-2b-it-lora-magicoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
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") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files12234563 unmodified lines1011121213141516171819192021212223242517 unmodified lines43444545464747484849505152---base_model: google/gemma-2-9b-itbase_model:- google/gemma-2b-itdatasets:- generatorlibrary_name: peft3 unmodified lines- sft- generated_from_trainermodel-index:- name: gemma-2-9b-it-lora-magicoder- name: gemma-2b-it-lora-magicoder results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# gemma-2-9b-it-lora-magicoder# gemma-2b-it-lora-magicoder
This model is a fine-tuned version of [google/gemma-2-9b-it](https://huggingface.co/google/gemma-2-9b-it) on the alvarobartt/Magicoder-OAI dataset.This model is a fine-tuned version of [google/gemma-2-2b-it](https://huggingface.co/google/gemma-2-2b-it) on the alvarobartt/Magicoder-OAI dataset.
## Model description
17 unmodified lines- eval_batch_size: 8- seed: 42- distributed_type: multi-GPU- num_devices: 4- num_devices: 2- gradient_accumulation_steps: 2- total_train_batch_size: 32- total_eval_batch_size: 32- total_train_batch_size: 16- total_eval_batch_size: 16- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_ratio: 0.1README.md+8-7