peft tensorboard safetensors trl sft generated_from_trainer base_model:mistralai/Mistral-7B-v0.1 license:apache-2.0 region:us
---
license: apache-2.0
library_name: peft
tags:
- trl
- sft
- generated_from_trainer
base_model: mistralai/Mistral-7B-v0.1
model-index:
- name: mistral-7b-v0.1-text-to-sql
  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. -->

# mistral-7b-v0.1-text-to-sql

This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on an unknown dataset.
It achieves the following results on the evaluation set:
- Loss: 0.4480
- Rouge Scores: {'rouge1': 0.9524055629145849, 'rouge2': 0.8956800997192216, 'rougeL': 0.9150670707654298, 'rougeLsum': 0.9524115149337395}
- Bleu Scores: [0.965279599498315, 0.9561079216412794, 0.9450266231158286, 0.9334074504094565]
- Gen Len: 140.1433

## 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: 2
- eval_batch_size: 2
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 4
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: cosine
- lr_scheduler_warmup_ratio: 0.03
- num_epochs: 3

### Training results

| Training Loss | Epoch | Step  | Validation Loss | Rouge Scores                                                                                                                | Bleu Scores                                                                      | Gen Len  |
|:-------------:|:-----:|:-----:|:---------------:|:---------------------------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------:|:--------:|
| 0.4684        | 1.0   | 4800  | 0.4548          | {'rouge1': 0.9495469611573519, 'rouge2': 0.8901910011377183, 'rougeL': 0.909448874304474, 'rougeLsum': 0.9495471805535063}  | [0.9639439062355124, 0.953844085950328, 0.9420010706830294, 0.9296804788609222]  | 140.1454 |
| 0.3405        | 2.0   | 9600  | 0.4117          | {'rouge1': 0.9524099802011153, 'rouge2': 0.896600524470996, 'rougeL': 0.9161173056125802, 'rougeLsum': 0.9524190730197041}  | [0.9656403176110141, 0.9563830335436345, 0.9453906660309199, 0.9339094894914852] | 140.1448 |
| 0.2299        | 3.0   | 14400 | 0.4480          | {'rouge1': 0.9524055629145849, 'rouge2': 0.8956800997192216, 'rougeL': 0.9150670707654298, 'rougeLsum': 0.9524115149337395} | [0.965279599498315, 0.9561079216412794, 0.9450266231158286, 0.9334074504094565]  | 140.1433 |


### Framework versions

- PEFT 0.7.2.dev0
- Transformers 4.36.2
- Pytorch 2.1.2+cu121
- Datasets 2.16.1
- Tokenizers 0.15.2