Text Classification
Transformers
Safetensors
deberta-v2
Generated from Trainer
text-embeddings-inference
Instructions to use jonathanjordan21/mdeberta-id-sarcasm-robust with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jonathanjordan21/mdeberta-id-sarcasm-robust with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="jonathanjordan21/mdeberta-id-sarcasm-robust")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("jonathanjordan21/mdeberta-id-sarcasm-robust") model = AutoModelForSequenceClassification.from_pretrained("jonathanjordan21/mdeberta-id-sarcasm-robust", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from jonathanjordan21/mdeberta-id-sarcasm-robust: direct link, hf CLI and curl.
- Browser
- Download file 2.5 kB
-
https://huggingface.co/jonathanjordan21/mdeberta-id-sarcasm-robust/resolve/main/README.md
- Command line
-
hf download hf://jonathanjordan21/mdeberta-id-sarcasm-robust/README.md
-
curl -L -o README.md https://huggingface.co/jonathanjordan21/mdeberta-id-sarcasm-robust/resolve/main/README.md
2.5 kB
| library_name: transformers | |
| license: mit | |
| base_model: jonathanjordan21/mdeberta-v3-base-indonesian-sarcasm | |
| tags: | |
| - generated_from_trainer | |
| metrics: | |
| - accuracy | |
| model-index: | |
| - name: jonathanjordan21/mdeberta-v3-base-indonesian-sarcasm-robust | |
| results: [] | |
| datasets: | |
| - jonathanjordan21/reddit-id-sarcasm-enriched | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # jonathanjordan21/mdeberta-v3-base-indonesian-sarcasm-robust | |
| This model is a fine-tuned version of [jonathanjordan21/mdeberta-v3-base-indonesian-sarcasm](https://huggingface.co/jonathanjordan21/mdeberta-v3-base-indonesian-sarcasm) on the [jonathanjordan21/reddit-id-sarcasm-enriched](https://huggingface.co/datasets/jonathanjordan21/reddit-id-sarcasm-enriched) dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 0.4212 | |
| - Accuracy: 0.9281 | |
| - Macro F1: 0.9035 | |
| - Sarcasm Precision: 0.8636 | |
| - Sarcasm Recall: 0.8462 | |
| - Sarcasm F1: 0.8548 | |
| - Non Sarcasm F1: 0.9522 | |
| ## 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: 1.5e-05 | |
| - train_batch_size: 16 | |
| - eval_batch_size: 32 | |
| - 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 | |
| - num_epochs: 5 | |
| - mixed_precision_training: Native AMP | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | Accuracy | Macro F1 | Sarcasm Precision | Sarcasm Recall | Sarcasm F1 | Non Sarcasm F1 | | |
| |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|:-----------------:|:--------------:|:----------:|:--------------:| | |
| | 0.3344 | 1.0 | 529 | 0.2266 | 0.9271 | 0.9038 | 0.8431 | 0.8704 | 0.8566 | 0.9511 | | |
| | 0.2165 | 2.0 | 1058 | 0.3107 | 0.9260 | 0.9036 | 0.8295 | 0.8866 | 0.8571 | 0.9501 | | |
| | 0.1849 | 3.0 | 1587 | 0.4212 | 0.9281 | 0.9035 | 0.8636 | 0.8462 | 0.8548 | 0.9522 | | |
| ### Framework versions | |
| - Transformers 5.23.0 | |
| - Pytorch 2.14.1+cu130 | |
| - Datasets 5.2.0 | |
| - Tokenizers 0.23.3 |