Instructions to use w11wo/indobert-base-p1-reddit-indonesia-sarcastic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use w11wo/indobert-base-p1-reddit-indonesia-sarcastic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="w11wo/indobert-base-p1-reddit-indonesia-sarcastic")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("w11wo/indobert-base-p1-reddit-indonesia-sarcastic") model = AutoModelForSequenceClassification.from_pretrained("w11wo/indobert-base-p1-reddit-indonesia-sarcastic") - Notebooks
- Google Colab
- Kaggle
Model save
Browse files- README.md +71 -0
- model.safetensors +1 -1
README.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: indobenchmark/indobert-base-p1
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
- f1
|
| 9 |
+
- precision
|
| 10 |
+
- recall
|
| 11 |
+
model-index:
|
| 12 |
+
- name: indobert-base-p1-reddit-indonesia-sarcastic
|
| 13 |
+
results: []
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 17 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 18 |
+
|
| 19 |
+
# indobert-base-p1-reddit-indonesia-sarcastic
|
| 20 |
+
|
| 21 |
+
This model is a fine-tuned version of [indobenchmark/indobert-base-p1](https://huggingface.co/indobenchmark/indobert-base-p1) on an unknown dataset.
|
| 22 |
+
It achieves the following results on the evaluation set:
|
| 23 |
+
- Loss: 0.9796
|
| 24 |
+
- Accuracy: 0.7881
|
| 25 |
+
- F1: 0.5335
|
| 26 |
+
- Precision: 0.5938
|
| 27 |
+
- Recall: 0.4844
|
| 28 |
+
|
| 29 |
+
## Model description
|
| 30 |
+
|
| 31 |
+
More information needed
|
| 32 |
+
|
| 33 |
+
## Intended uses & limitations
|
| 34 |
+
|
| 35 |
+
More information needed
|
| 36 |
+
|
| 37 |
+
## Training and evaluation data
|
| 38 |
+
|
| 39 |
+
More information needed
|
| 40 |
+
|
| 41 |
+
## Training procedure
|
| 42 |
+
|
| 43 |
+
### Training hyperparameters
|
| 44 |
+
|
| 45 |
+
The following hyperparameters were used during training:
|
| 46 |
+
- learning_rate: 1e-05
|
| 47 |
+
- train_batch_size: 32
|
| 48 |
+
- eval_batch_size: 64
|
| 49 |
+
- seed: 42
|
| 50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 51 |
+
- lr_scheduler_type: cosine
|
| 52 |
+
- num_epochs: 100.0
|
| 53 |
+
- mixed_precision_training: Native AMP
|
| 54 |
+
|
| 55 |
+
### Training results
|
| 56 |
+
|
| 57 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|
| 58 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
|
| 59 |
+
| 0.4385 | 1.0 | 309 | 0.4258 | 0.7980 | 0.5675 | 0.6111 | 0.5297 |
|
| 60 |
+
| 0.3451 | 2.0 | 618 | 0.4345 | 0.8030 | 0.6283 | 0.5949 | 0.6657 |
|
| 61 |
+
| 0.2404 | 3.0 | 927 | 0.5054 | 0.8016 | 0.5318 | 0.6490 | 0.4504 |
|
| 62 |
+
| 0.1326 | 4.0 | 1236 | 0.7033 | 0.7860 | 0.5452 | 0.5820 | 0.5127 |
|
| 63 |
+
| 0.0787 | 5.0 | 1545 | 0.9796 | 0.7881 | 0.5335 | 0.5938 | 0.4844 |
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
### Framework versions
|
| 67 |
+
|
| 68 |
+
- Transformers 4.36.2
|
| 69 |
+
- Pytorch 2.1.1+cu121
|
| 70 |
+
- Datasets 2.15.0
|
| 71 |
+
- Tokenizers 0.15.0
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 497795072
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc89445320c9b7b668322de6f0d431390b5de5e9f9dce22dc2d2e2382f966fed
|
| 3 |
size 497795072
|