jonathanjordan21/reddit-id-sarcasm-enriched
Viewer โข Updated โข 9.88k โข 51
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")# 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")This model is a fine-tuned version of jonathanjordan21/mdeberta-v3-base-indonesian-sarcasm on the jonathanjordan21/reddit-id-sarcasm-enriched dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| 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 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="jonathanjordan21/mdeberta-id-sarcasm-robust")