Instructions to use dalozada/sarcasm-beto-bs8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dalozada/sarcasm-beto-bs8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dalozada/sarcasm-beto-bs8")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dalozada/sarcasm-beto-bs8") model = AutoModelForSequenceClassification.from_pretrained("dalozada/sarcasm-beto-bs8", device_map="auto") - Notebooks
- Google Colab
- Kaggle
sarcasm-beto-bs8
This model is a fine-tuned version of dccuchile/bert-base-spanish-wwm-cased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.5271
- Precision: 0.7492
- Recall: 0.6313
- F1 Macro: 0.6661
- Accuracy: 0.9097
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: 1e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 0.1
- num_epochs: 10
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 Macro | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.5006 | 1.0 | 84 | 0.3352 | 0.4514 | 0.5 | 0.4745 | 0.9028 |
| 0.2792 | 2.0 | 168 | 0.3599 | 0.4514 | 0.5 | 0.4745 | 0.9028 |
| 0.2017 | 3.0 | 252 | 0.3294 | 0.9545 | 0.5357 | 0.5429 | 0.9097 |
| 0.1522 | 4.0 | 336 | 0.3286 | 0.9610 | 0.6071 | 0.6562 | 0.9236 |
| 0.0622 | 5.0 | 420 | 0.3703 | 0.7971 | 0.6352 | 0.6776 | 0.9167 |
| 0.0452 | 6.0 | 504 | 0.4364 | 0.7492 | 0.6313 | 0.6661 | 0.9097 |
| 0.0219 | 7.0 | 588 | 0.4949 | 0.7132 | 0.6275 | 0.6555 | 0.9028 |
| 0.0186 | 8.0 | 672 | 0.5271 | 0.7492 | 0.6313 | 0.6661 | 0.9097 |
Framework versions
- Transformers 5.0.0
- Pytorch 2.10.0+cu128
- Datasets 4.8.5
- Tokenizers 0.22.2
- Downloads last month
- 2
Model tree for dalozada/sarcasm-beto-bs8
Base model
dccuchile/bert-base-spanish-wwm-cased