transformers tensorboard safetensors llama text-generation generated_from_trainer conversational dataset:generator base_model:vilm/vinallama-7b license:llama2 autotrain_compatible endpoints_compatible text-generation-inference region:us
---
license: llama2
base_model: vilm/vinallama-7b
tags:
- generated_from_trainer
datasets:
- generator
model-index:
- name: vinallama-7b-legal-chat
  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. -->

# vinallama-7b-legal-chat

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

## 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: 2e-05
- train_batch_size: 8
- eval_batch_size: 2
- seed: 42
- distributed_type: multi-GPU
- num_devices: 4
- gradient_accumulation_steps: 16
- total_train_batch_size: 512
- total_eval_batch_size: 8
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: cosine
- num_epochs: 2

### Training results

| Training Loss | Epoch | Step | Validation Loss |
|:-------------:|:-----:|:----:|:---------------:|
| 0.8228        | 1.0   | 87   | 0.6192          |
| 0.712         | 2.0   | 174  | 0.5088          |


### Framework versions

- Transformers 4.35.0
- Pytorch 2.1.2+cu121
- Datasets 2.14.6
- Tokenizers 0.14.1
