peft tensorboard safetensors trl sft generated_from_trainer dataset:generator base_model:NousResearch/Llama-2-7b-hf region:us
---
library_name: peft
tags:
- trl
- sft
- generated_from_trainer
datasets:
- generator
base_model: NousResearch/Llama-2-7b-hf
model-index:
- name: tiny_llama_instruct_generation
  results: []
---

<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->

# llama_2_7b_hf_instruct_generation

This model is a fine-tuned version of [NousResearch/Llama-2-7b-hf](https://huggingface.co/NousResearch/Llama-2-7b-hf) on the generator dataset.
It achieves the following results on the evaluation set:
- Loss: 1.8500

## 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.0002
- train_batch_size: 4
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: constant
- lr_scheduler_warmup_steps: 0.03
- training_steps: 500

### Training results

| Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:-----:|:----:|:---------------:|
| 2.0445        | 0.01  | 20   | 2.0291          |
| 1.9813        | 0.01  | 40   | 1.9775          |
| 1.9752        | 0.02  | 60   | 1.9477          |
| 1.953         | 0.02  | 80   | 1.8977          |
| 1.9054        | 0.03  | 100  | 1.8774          |
| 1.8665        | 0.03  | 120  | 1.8699          |
| 1.845         | 0.04  | 140  | 1.8648          |
| 1.8487        | 0.04  | 160  | 1.8626          |
| 1.8557        | 0.05  | 180  | 1.8604          |
| 1.8451        | 0.06  | 200  | 1.8589          |
| 1.8557        | 0.06  | 220  | 1.8578          |
| 1.7733        | 0.07  | 240  | 1.8570          |
| 1.8652        | 0.07  | 260  | 1.8562          |
| 1.8178        | 0.08  | 280  | 1.8552          |
| 1.8102        | 0.08  | 300  | 1.8546          |
| 1.8275        | 0.09  | 320  | 1.8541          |
| 1.8405        | 0.1   | 340  | 1.8533          |
| 1.8319        | 0.1   | 360  | 1.8530          |
| 1.8411        | 0.11  | 380  | 1.8526          |
| 1.8562        | 0.11  | 400  | 1.8520          |
| 1.8505        | 0.12  | 420  | 1.8516          |
| 1.8132        | 0.12  | 440  | 1.8514          |
| 1.901         | 0.13  | 460  | 1.8509          |
| 1.8138        | 0.13  | 480  | 1.8506          |
| 1.8209        | 0.14  | 500  | 1.8500          |


### Framework versions

- PEFT 0.8.2
- Transformers 4.37.2
- Pytorch 2.1.0+cu121
- Datasets 2.16.1
- Tokenizers 0.15.1