Run this model with HF Jobs
Run rayraycano/finetune-demo-lora 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/rayraycano/finetune-demo-lora. 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/rayraycano/finetune-demo-lora 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 rayraycano/finetune-demo-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rayraycano/finetune-demo-lora with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("rayraycano/finetune-demo-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, step 38
Browse filesFiles changed (5)
- README.md+3-56
- adapter_config.json+3-3
- adapter_model.safetensors+1-1
- config.py+4-4
- training_args.bin+2-2
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758---base_model: google/gemma-3-27b-itlibrary_name: transformersmodel_name: finetune-demo-loratags:- generated_from_trainer- trl- sftlicence: license---# Model Card for finetune-demo-loraThis model is a fine-tuned version of [google/gemma-3-27b-it](https://huggingface.co/google/gemma-3-27b-it).It has been trained using [TRL](https://github.com/huggingface/trl).## Quick start```pythonfrom transformers import pipelinequestion = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"generator = pipeline("text-generation", model="rayraycano/finetune-demo-lora", device="cuda")output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]print(output["generated_text"])```## Training procedure[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/philipkiely-baseten/baseten-finetune-demo/runs/y2yddifv)This model was trained with SFT.### Framework versions- TRL: 0.15.1- Transformers: 4.50.0- Pytorch: 2.6.0+cu124- Datasets: 3.4.1- Tokenizers: 0.21.1## CitationsCite TRL as:```bibtex@misc{vonwerra2022trl,title = {{TRL: Transformer Reinforcement Learning}},author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},year = 2020,journal = {GitHub repository},publisher = {GitHub},howpublished = {\url{https://github.com/huggingface/trl}}}```12345# Baseten Training DemoThis is a demo of how to finetune a model using Baseten Training.See the [Get Started](https://docs.baseten.com/get-started) guide to learn more about how to use Baseten Training.
23 unmodified lines2425262728293031323334353623 unmodified lines"rank_pattern": {},"revision": null,"target_modules": ["k_proj","gate_proj","q_proj","v_proj","down_proj","up_proj","o_proj"],"task_type": "CAUSAL_LM","trainable_token_indices": null,23 unmodified lines2425262728293031323334353623 unmodified lines"rank_pattern": {},"revision": null,"target_modules": ["gate_proj","q_proj","o_proj","k_proj","down_proj","up_proj","v_proj"],"task_type": "CAUSAL_LM","trainable_token_indices": null,
123version https://git-lfs.github.com/spec/v1oid sha256:450fd25cba6e995f2066bb92b69bae186c5243fa7b9131e3c3d7857636730bc2size 113632496123version https://git-lfs.github.com/spec/v1oid sha256:0866d11ec1b3e6c3d52e42ce0f9466c229d211d6ac1c09da21e95187ecc836acsize 113632496
17 unmodified lines1819202122232425265 unmodified lines3233343536373817 unmodified lines"OUTPUT_LORA_REPO_ID": "rayraycano/finetune-demo-lora", # TODO: your HF Repo ID},enable_cache=True,checkpointing_config=definitions.CheckpointingConfig(enabled=False,),)"""5 unmodified linesaccelerator=truss_config.Accelerator.H200,count=8,),# node_count=2,)"""17 unmodified lines1819202122232425265 unmodified lines3233343536373817 unmodified lines"OUTPUT_LORA_REPO_ID": "rayraycano/finetune-demo-lora", # TODO: your HF Repo ID},enable_cache=True,# checkpointing_config=definitions.CheckpointingConfig(# enabled=True,# ),)"""5 unmodified linesaccelerator=truss_config.Accelerator.H200,count=8,),node_count=2,)"""
123version https://git-lfs.github.com/spec/v1oid sha256:1cc0791c494bc9424165d7d11c36192341830d3811c11cbb5ba458a3547e56acsize 6904123version https://git-lfs.github.com/spec/v1oid sha256:845e5541434556dc2b5a7fd6819ebe6e1e49ee5b3a7e173ee184a0043de929f1size 6840
README.md+3-56
adapter_config.json+3-3
adapter_model.safetensors+1-1
config.py+4-4
training_args.bin+2-2