Instructions to use umangsharmacs/256model_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use umangsharmacs/256model_v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="umangsharmacs/256model_v2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("umangsharmacs/256model_v2") model = AutoModelForSequenceClassification.from_pretrained("umangsharmacs/256model_v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
256model_v2
This model is a fine-tuned version of roberta-base on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.5044
- Accuracy: 0.8050
- F1: 0.7986
- Precision: 0.7973
- Recall: 0.8050
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: 5e-05
- train_batch_size: 64
- eval_batch_size: 64
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 500
- num_epochs: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.5612 | 1.0 | 100 | 0.5241 | 0.7170 | 0.5988 | 0.5141 | 0.7170 |
| 0.5115 | 2.0 | 200 | 0.4890 | 0.7761 | 0.7302 | 0.7900 | 0.7761 |
| 0.4162 | 3.0 | 300 | 0.4183 | 0.8151 | 0.8055 | 0.8076 | 0.8151 |
| 0.4035 | 4.0 | 400 | 0.4102 | 0.8063 | 0.7996 | 0.7985 | 0.8063 |
| 0.31 | 5.0 | 500 | 0.5044 | 0.8050 | 0.7986 | 0.7973 | 0.8050 |
Framework versions
- Transformers 4.45.1
- Pytorch 2.4.0
- Datasets 3.0.1
- Tokenizers 0.20.0
- Downloads last month
- 4
Model tree for umangsharmacs/256model_v2
Base model
FacebookAI/roberta-base