Instructions to use jonathand94/llama-sentiment-classifier-custom-layer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use jonathand94/llama-sentiment-classifier-custom-layer with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("meta-llama/Llama-3.1-8B-Instruct") model = PeftModel.from_pretrained(base_model, "jonathand94/llama-sentiment-classifier-custom-layer") - Notebooks
- Google Colab
- Kaggle
Configuration Parsing Warning:In adapter_config.json: "peft.base_model_name_or_path" must be a string
llama-sentiment-classifier-custom-layer
This model is a fine-tuned version of meta-llama/Llama-3.1-8B-Instruct on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.4230
- Accuracy: 0.94
- F1: 0.9423
- Precision: 0.9245
- Recall: 0.9608
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: 4
- eval_batch_size: 4
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 1
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.4123 | 0.4 | 100 | 0.7309 | 0.49 | 0.1905 | 0.5 | 0.1176 |
| 0.3566 | 0.8 | 200 | 0.4230 | 0.94 | 0.9423 | 0.9245 | 0.9608 |
Framework versions
- PEFT 0.13.2
- Transformers 4.44.2
- Pytorch 2.5.0+cu121
- Datasets 3.0.2
- Tokenizers 0.19.1
- Downloads last month
- 15
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for jonathand94/llama-sentiment-classifier-custom-layer
Base model
meta-llama/Llama-3.1-8B Finetuned
meta-llama/Llama-3.1-8B-Instruct