Instructions to use ShushantLLM/experiments with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ShushantLLM/experiments 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, "ShushantLLM/experiments") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from ShushantLLM/experiments: direct link, hf CLI and curl.
- Browser
- Download file 1.56 kB
-
https://huggingface.co/ShushantLLM/experiments/resolve/main/README.md
- Command line
-
hf download hf://ShushantLLM/experiments/README.md
-
curl -L -o README.md https://huggingface.co/ShushantLLM/experiments/resolve/main/README.md
1.56 kB
metadata
library_name: peft
tags:
- trl
- sft
- test_LLama
- generated_from_trainer
base_model: meta-llama/Llama-2-7b-hf
model-index:
- name: experiments
results: []
experiments
This model is a fine-tuned version of meta-llama/Llama-2-7b-hf on the None dataset. It achieves the following results on the evaluation set:
- Loss: 2.4811
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0001
- train_batch_size: 4
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 16
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: cosine
- lr_scheduler_warmup_ratio: 0.05
- num_epochs: 2
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 3.7238 | 0.62 | 2 | 2.7042 |
| 3.107 | 1.23 | 4 | 2.5366 |
| 2.9896 | 1.85 | 6 | 2.4811 |
Framework versions
- PEFT 0.10.0
- Transformers 4.39.3
- Pytorch 2.1.2
- Datasets 2.18.0
- Tokenizers 0.15.2