Instructions to use thenlpresearcher/meta-llama_Llama-3_1-8B_StereoDetect_Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use thenlpresearcher/meta-llama_Llama-3_1-8B_StereoDetect_Model with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("meta-llama/Llama-3.1-8B") model = PeftModel.from_pretrained(base_model, "thenlpresearcher/meta-llama_Llama-3_1-8B_StereoDetect_Model") - Transformers
How to use thenlpresearcher/meta-llama_Llama-3_1-8B_StereoDetect_Model with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("thenlpresearcher/meta-llama_Llama-3_1-8B_StereoDetect_Model", dtype="auto") - Notebooks
- Google Colab
- Kaggle
meta-llama_Llama-3_1-8B_StereoDetect_Model
This model is a fine-tuned version of meta-llama/Llama-3.1-8B on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.3277
- Accuracy: 0.9643
- Balanced Accuracy: 0.9639
- F1 Weighted: 0.9644
- F1 Macro: 0.9647
- Precision: 0.9649
- Recall: 0.9643
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.0001
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 10
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Balanced Accuracy | F1 Weighted | F1 Macro | Precision | Recall |
|---|---|---|---|---|---|---|---|---|---|
| 0.5925 | 1.0 | 760 | 0.3367 | 0.9194 | 0.9200 | 0.9197 | 0.9202 | 0.9254 | 0.9194 |
| 0.1942 | 2.0 | 1520 | 0.2260 | 0.9493 | 0.9484 | 0.9494 | 0.9497 | 0.9499 | 0.9493 |
| 0.0807 | 3.0 | 2280 | 0.2322 | 0.9470 | 0.9462 | 0.9468 | 0.9472 | 0.9470 | 0.9470 |
| 0.0608 | 4.0 | 3040 | 0.2753 | 0.9435 | 0.9427 | 0.9435 | 0.9441 | 0.9438 | 0.9435 |
| 0.0289 | 5.0 | 3800 | 0.2443 | 0.9539 | 0.9548 | 0.9538 | 0.9542 | 0.9538 | 0.9539 |
| 0.0241 | 6.0 | 4560 | 0.3360 | 0.9528 | 0.9524 | 0.9529 | 0.9537 | 0.9536 | 0.9528 |
| 0.0058 | 7.0 | 5320 | 0.3394 | 0.9562 | 0.9567 | 0.9562 | 0.9568 | 0.9563 | 0.9562 |
| 0.0099 | 8.0 | 6080 | 0.3359 | 0.9608 | 0.9605 | 0.9610 | 0.9614 | 0.9614 | 0.9608 |
| 0.0031 | 9.0 | 6840 | 0.3156 | 0.9597 | 0.9593 | 0.9598 | 0.9603 | 0.9601 | 0.9597 |
| 0.0014 | 10.0 | 7600 | 0.3277 | 0.9643 | 0.9639 | 0.9644 | 0.9647 | 0.9649 | 0.9643 |
Framework versions
- PEFT 0.19.1
- Transformers 4.51.3
- Pytorch 2.5.1+cu121
- Datasets 4.8.5
- Tokenizers 0.21.4
- Downloads last month
- 2
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for thenlpresearcher/meta-llama_Llama-3_1-8B_StereoDetect_Model
Base model
meta-llama/Llama-3.1-8B