Instructions to use NanQiangHF/Meta-Llama-3-8B-Generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use NanQiangHF/Meta-Llama-3-8B-Generator with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Meta-Llama-3-8B") model = PeftModel.from_pretrained(base_model, "NanQiangHF/Meta-Llama-3-8B-Generator") - Notebooks
- Google Colab
- Kaggle
Meta-Llama-3-8B-Generator
This model is a fine-tuned version of meta-llama/Meta-Llama-3-8B on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.2392
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.0003
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 32
- total_train_batch_size: 256
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 3
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 1.6102 | 0.3287 | 20 | 0.7959 |
| 0.6745 | 0.6574 | 40 | 0.5847 |
| 0.5567 | 0.9861 | 60 | 0.5146 |
| 0.4664 | 1.3148 | 80 | 0.4114 |
| 0.3565 | 1.6436 | 100 | 0.3113 |
| 0.2734 | 1.9723 | 120 | 0.2524 |
| 0.2495 | 2.3010 | 140 | 0.2441 |
| 0.2438 | 2.6297 | 160 | 0.2403 |
| 0.241 | 2.9584 | 180 | 0.2392 |
Framework versions
- PEFT 0.10.0
- Transformers 4.42.0.dev0
- Pytorch 2.3.0+cu121
- Datasets 2.14.7
- Tokenizers 0.19.1
- Downloads last month
- 1
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for NanQiangHF/Meta-Llama-3-8B-Generator
Base model
meta-llama/Meta-Llama-3-8B