Instructions to use tagokeg/Metas-Llama2-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use tagokeg/Metas-Llama2-models with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-hf") model = PeftModel.from_pretrained(base_model, "tagokeg/Metas-Llama2-models") - Notebooks
- Google Colab
- Kaggle
Download checkpoint-10/trainer_state.json from tagokeg/Metas-Llama2-models: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/tagokeg/Metas-Llama2-models/resolve/main/checkpoint-10/trainer_state.json
- Command line
-
hf download hf://tagokeg/Metas-Llama2-models/checkpoint-10/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/tagokeg/Metas-Llama2-models/resolve/main/checkpoint-10/trainer_state.json
1.29 kB
| { | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 2.0, | |
| "eval_steps": 500, | |
| "global_step": 10, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 1.0, | |
| "eval_loss": 30.430278778076172, | |
| "eval_runtime": 1.3618, | |
| "eval_samples_per_second": 2.937, | |
| "eval_steps_per_second": 0.734, | |
| "step": 5 | |
| }, | |
| { | |
| "epoch": 2.0, | |
| "grad_norm": 55.31962966918945, | |
| "learning_rate": 0.00013333333333333334, | |
| "loss": 32.4826, | |
| "step": 10 | |
| }, | |
| { | |
| "epoch": 2.0, | |
| "eval_loss": 22.345903396606445, | |
| "eval_runtime": 1.1785, | |
| "eval_samples_per_second": 3.394, | |
| "eval_steps_per_second": 0.849, | |
| "step": 10 | |
| } | |
| ], | |
| "logging_steps": 10, | |
| "max_steps": 12, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 3, | |
| "save_steps": 500, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": false | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 1462366403297280.0, | |
| "train_batch_size": 2, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |