Instructions to use ioseff/llama2_cs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ioseff/llama2_cs with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-chat-hf") model = PeftModel.from_pretrained(base_model, "ioseff/llama2_cs") - Notebooks
- Google Colab
- Kaggle
Download trainer_state.json from ioseff/llama2_cs: direct link, hf CLI and curl.
- Browser
- Download file 2.71 kB
-
https://huggingface.co/ioseff/llama2_cs/resolve/main/trainer_state.json
- Command line
-
hf download hf://ioseff/llama2_cs/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/ioseff/llama2_cs/resolve/main/trainer_state.json
2.71 kB
| { | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 9.876543209876543, | |
| "eval_steps": 500, | |
| "global_step": 1400, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.7054673721340388, | |
| "grad_norm": 0.09832777082920074, | |
| "learning_rate": 0.0002, | |
| "loss": 1.4671, | |
| "step": 100 | |
| }, | |
| { | |
| "epoch": 1.4109347442680775, | |
| "grad_norm": 0.09350088238716125, | |
| "learning_rate": 0.0002, | |
| "loss": 1.2679, | |
| "step": 200 | |
| }, | |
| { | |
| "epoch": 2.1164021164021163, | |
| "grad_norm": 0.11211609840393066, | |
| "learning_rate": 0.0002, | |
| "loss": 1.2364, | |
| "step": 300 | |
| }, | |
| { | |
| "epoch": 2.821869488536155, | |
| "grad_norm": 0.11450667679309845, | |
| "learning_rate": 0.0002, | |
| "loss": 1.1918, | |
| "step": 400 | |
| }, | |
| { | |
| "epoch": 3.527336860670194, | |
| "grad_norm": 0.14048263430595398, | |
| "learning_rate": 0.0002, | |
| "loss": 1.1644, | |
| "step": 500 | |
| }, | |
| { | |
| "epoch": 4.232804232804233, | |
| "grad_norm": 0.16336463391780853, | |
| "learning_rate": 0.0002, | |
| "loss": 1.1316, | |
| "step": 600 | |
| }, | |
| { | |
| "epoch": 4.938271604938271, | |
| "grad_norm": 0.15452659130096436, | |
| "learning_rate": 0.0002, | |
| "loss": 1.1543, | |
| "step": 700 | |
| }, | |
| { | |
| "epoch": 5.64373897707231, | |
| "grad_norm": 0.21628880500793457, | |
| "learning_rate": 0.0002, | |
| "loss": 1.0846, | |
| "step": 800 | |
| }, | |
| { | |
| "epoch": 6.349206349206349, | |
| "grad_norm": 0.21604403853416443, | |
| "learning_rate": 0.0002, | |
| "loss": 1.0401, | |
| "step": 900 | |
| }, | |
| { | |
| "epoch": 7.054673721340388, | |
| "grad_norm": 0.23164568841457367, | |
| "learning_rate": 0.0002, | |
| "loss": 0.9961, | |
| "step": 1000 | |
| }, | |
| { | |
| "epoch": 7.760141093474427, | |
| "grad_norm": 0.4182797074317932, | |
| "learning_rate": 0.0002, | |
| "loss": 0.9205, | |
| "step": 1100 | |
| }, | |
| { | |
| "epoch": 8.465608465608465, | |
| "grad_norm": 0.36964651942253113, | |
| "learning_rate": 0.0002, | |
| "loss": 0.8704, | |
| "step": 1200 | |
| }, | |
| { | |
| "epoch": 9.171075837742505, | |
| "grad_norm": 0.38251933455467224, | |
| "learning_rate": 0.0002, | |
| "loss": 0.8652, | |
| "step": 1300 | |
| }, | |
| { | |
| "epoch": 9.876543209876543, | |
| "grad_norm": 0.3958277106285095, | |
| "learning_rate": 0.0002, | |
| "loss": 0.7935, | |
| "step": 1400 | |
| } | |
| ], | |
| "logging_steps": 100, | |
| "max_steps": 1410, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 10, | |
| "save_steps": 100, | |
| "total_flos": 1.5803928155674214e+17, | |
| "train_batch_size": 2, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |