Run this model with HF Jobs
Run mtzig/tinyllama-1.1b-sft-test3 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/mtzig/tinyllama-1.1b-sft-test3. 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/mtzig/tinyllama-1.1b-sft-test3 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 mtzig/tinyllama-1.1b-sft-test3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use mtzig/tinyllama-1.1b-sft-test3 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0") model = PeftModel.from_pretrained(base_model, "mtzig/tinyllama-1.1b-sft-test3") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (6)
2 unmodified lines34567891011126 unmodified lines1920212223242516 unmodified lines424344454647482 unmodified lines5152535455565758596061626364656667686970717273742 unmodified lineslicense: apache-2.0base_model: TinyLlama/TinyLlama-1.1B-Chat-v1.0tags:- base_model:adapter:TinyLlama/TinyLlama-1.1B-Chat-v1.0- lora- transformerspipeline_tag: text-generationmodel-index:- name: tinyllama-1.1b-sft-test3results: []6 unmodified linesThis model is a fine-tuned version of [TinyLlama/TinyLlama-1.1B-Chat-v1.0](https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.2319## Model description16 unmodified lines- train_batch_size: 16- eval_batch_size: 10- seed: 4234- optimizer: Use paged_adamw_32bit with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: cosine- lr_scheduler_warmup_ratio: 0.03- num_epochs: 12 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:------:|:----:|:---------------:|| 0.3307 | 0.0778 | 20 | 0.3030 || 0.3519 | 0.1556 | 40 | 0.2559 || 0.2853 | 0.2335 | 60 | 0.2719 || 0.2972 | 0.3113 | 80 | 0.2569 || 0.3116 | 0.3891 | 100 | 0.2501 || 0.3691 | 0.4669 | 120 | 0.2374 || 0.349 | 0.5447 | 140 | 0.2387 || 0.2605 | 0.6226 | 160 | 0.2395 || 0.3281 | 0.7004 | 180 | 0.2297 || 0.278 | 0.7782 | 200 | 0.2314 || 0.2592 | 0.8560 | 220 | 0.2334 || 0.2562 | 0.9339 | 240 | 0.2319 |### Framework versions- PEFT 0.17.1- Transformers 4.56.2- Pytorch 2.8.0+cu128- Datasets 4.1.1- Tokenizers 0.22.12 unmodified lines34567896 unmodified lines1617181920212216 unmodified lines394041424344452 unmodified lines4849505152535455565758596061626364656667686970712 unmodified lineslicense: apache-2.0base_model: TinyLlama/TinyLlama-1.1B-Chat-v1.0tags:- generated_from_trainermodel-index:- name: tinyllama-1.1b-sft-test3results: []6 unmodified linesThis model is a fine-tuned version of [TinyLlama/TinyLlama-1.1B-Chat-v1.0](https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.2259## Model description16 unmodified lines- train_batch_size: 16- eval_batch_size: 10- seed: 4234- optimizer: Use OptimizerNames.PAGED_ADAMW with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: cosine- lr_scheduler_warmup_ratio: 0.03- num_epochs: 12 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:------:|:----:|:---------------:|| 0.3312 | 0.0778 | 20 | 0.2974 || 0.3523 | 0.1556 | 40 | 0.2538 || 0.2853 | 0.2335 | 60 | 0.2694 || 0.2953 | 0.3113 | 80 | 0.2519 || 0.3104 | 0.3891 | 100 | 0.2379 || 0.3664 | 0.4669 | 120 | 0.2325 || 0.3484 | 0.5447 | 140 | 0.2302 || 0.2604 | 0.6226 | 160 | 0.2322 || 0.3282 | 0.7004 | 180 | 0.2232 || 0.2788 | 0.7782 | 200 | 0.2250 || 0.2589 | 0.8560 | 220 | 0.2260 || 0.2551 | 0.9339 | 240 | 0.2259 |### Framework versions- PEFT 0.15.2- Transformers 4.51.3- Pytorch 2.7.0+cu128- Datasets 3.5.0- Tokenizers 0.21.1
1234567891011192 unmodified lines204205206207---base_model: TinyLlama/TinyLlama-1.1B-Chat-v1.0library_name: peftpipeline_tag: text-generationtags:- base_model:adapter:TinyLlama/TinyLlama-1.1B-Chat-v1.0- lora- transformers---# Model Card for Model ID192 unmodified lines[More Information Needed]### Framework versions- PEFT 0.17.1123456192 unmodified lines199200201202---base_model: TinyLlama/TinyLlama-1.1B-Chat-v1.0library_name: peft---# Model Card for Model ID192 unmodified lines[More Information Needed]### Framework versions- PEFT 0.15.2
19 unmodified lines202122232425262728293031323334353637383919 unmodified lines"megatron_core": "megatron.core","modules_to_save": null,"peft_type": "LORA","qalora_group_size": 16,"r": 8,"rank_pattern": {},"revision": null,"target_modules": ["v_proj","o_proj","q_proj","k_proj"],"target_parameters": null,"task_type": "CAUSAL_LM","trainable_token_indices": null,"use_dora": false,"use_qalora": false,"use_rslora": false}19 unmodified lines202122232425262728293031323334353619 unmodified lines"megatron_core": "megatron.core","modules_to_save": null,"peft_type": "LORA","r": 8,"rank_pattern": {},"revision": null,"target_modules": ["q_proj","k_proj","v_proj","o_proj"],"task_type": "CAUSAL_LM","trainable_token_indices": null,"use_dora": false,"use_rslora": false}
123version https://git-lfs.github.com/spec/v1oid sha256:61f68aa2c3a723712896c17effd9c0378c3898d193c09461c45b1334b903cf0asize 9034304123version https://git-lfs.github.com/spec/v1oid sha256:965759863b0b55d9d3434a43b226797a448e2d8d47a2000276e763796ec61bbasize 9034304
28 unmodified lines29303132333428 unmodified lines}},"bos_token": "<s>","clean_up_tokenization_spaces": false,"eos_token": "</s>","extra_special_tokens": {},28 unmodified lines2930313233343528 unmodified lines}},"bos_token": "<s>","chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}","clean_up_tokenization_spaces": false,"eos_token": "</s>","extra_special_tokens": {},
123version https://git-lfs.github.com/spec/v1oid sha256:a3844ec01a7e5428375f5fa422945a281479583f95ab1b3f54a9ed7709b63560size 5777123version https://git-lfs.github.com/spec/v1oid sha256:6c5efdf6a4d7499ebc0905143bebac35a1ff8dbc498e16a33ecdd81a101ec6f6size 5713
README.md+20-23
final/README.md+1-6
final/adapter_config.json+3-6
final/adapter_model.safetensors+1-1
final/tokenizer_config.json+1
final/training_args.bin+2-2