Instructions to use ioseff/tinyllama_cs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ioseff/tinyllama_cs 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, "ioseff/tinyllama_cs") - Notebooks
- Google Colab
- Kaggle
Download trainer_state.json from ioseff/tinyllama_cs: direct link, hf CLI and curl.
- Browser
- Download file 1.59 kB
-
https://huggingface.co/ioseff/tinyllama_cs/resolve/main/trainer_state.json
- Command line
-
hf download hf://ioseff/tinyllama_cs/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/ioseff/tinyllama_cs/resolve/main/trainer_state.json
1.59 kB
| { | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 4.938271604938271, | |
| "eval_steps": 500, | |
| "global_step": 700, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.7054673721340388, | |
| "grad_norm": 0.16267116367816925, | |
| "learning_rate": 0.0002, | |
| "loss": 1.658, | |
| "step": 100 | |
| }, | |
| { | |
| "epoch": 1.4109347442680775, | |
| "grad_norm": 0.14393559098243713, | |
| "learning_rate": 0.0002, | |
| "loss": 1.3843, | |
| "step": 200 | |
| }, | |
| { | |
| "epoch": 2.1164021164021163, | |
| "grad_norm": 0.14055399596691132, | |
| "learning_rate": 0.0002, | |
| "loss": 1.3546, | |
| "step": 300 | |
| }, | |
| { | |
| "epoch": 2.821869488536155, | |
| "grad_norm": 0.13528791069984436, | |
| "learning_rate": 0.0002, | |
| "loss": 1.316, | |
| "step": 400 | |
| }, | |
| { | |
| "epoch": 3.527336860670194, | |
| "grad_norm": 0.15071696043014526, | |
| "learning_rate": 0.0002, | |
| "loss": 1.3034, | |
| "step": 500 | |
| }, | |
| { | |
| "epoch": 4.232804232804233, | |
| "grad_norm": 0.18059740960597992, | |
| "learning_rate": 0.0002, | |
| "loss": 1.282, | |
| "step": 600 | |
| }, | |
| { | |
| "epoch": 4.938271604938271, | |
| "grad_norm": 0.16309326887130737, | |
| "learning_rate": 0.0002, | |
| "loss": 1.3221, | |
| "step": 700 | |
| } | |
| ], | |
| "logging_steps": 100, | |
| "max_steps": 705, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 5, | |
| "save_steps": 100, | |
| "total_flos": 1.2427326535950336e+16, | |
| "train_batch_size": 2, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |