safetensors trl sft generated_from_trainer base_model:meta-llama/Llama-2-7b-chat-hf region:us
---
base_model: meta-llama/Llama-2-7b-chat-hf
tags:
- trl
- sft
- generated_from_trainer
model-index:
- name: lora-fine-tuning-llama2-SQL-lora-100-dataset-size
  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. -->

# lora-fine-tuning-llama2-SQL-lora-100-dataset-size

This model is a fine-tuned version of [meta-llama/Llama-2-7b-chat-hf](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf) on an unknown dataset.
It achieves the following results on the evaluation set:
- Loss: 0.6509

## 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: 8
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.03
- num_epochs: 5
- mixed_precision_training: Native AMP

### Training results

| Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:-----:|:----:|:---------------:|
| 2.3966        | 0.54  | 7    | 2.1651          |
| 1.0786        | 1.08  | 14   | 0.9747          |
| 0.6613        | 1.62  | 21   | 0.7750          |
| 0.6943        | 2.15  | 28   | 0.6982          |
| 0.4302        | 2.69  | 35   | 0.6674          |
| 0.4016        | 3.23  | 42   | 0.6505          |
| 0.624         | 3.77  | 49   | 0.6498          |
| 0.5111        | 4.31  | 56   | 0.6542          |
| 0.4381        | 4.85  | 63   | 0.6509          |


### Framework versions

- Transformers 4.35.2
- Pytorch 2.1.0+cu121
- Datasets 2.16.1
- Tokenizers 0.15.0
