Text Classification
Transformers
PyTorch
Safetensors
Arabic
bert
hate-speech
gender-based-violence
arabic
binary-classification
pilot
Eval Results (legacy)
text-embeddings-inference
Instructions to use thejosango/nuha-ajp-binary with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thejosango/nuha-ajp-binary with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="thejosango/nuha-ajp-binary")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("thejosango/nuha-ajp-binary") model = AutoModelForSequenceClassification.from_pretrained("thejosango/nuha-ajp-binary") - Notebooks
- Google Colab
- Kaggle
binary-17
Browse files- README.md +31 -18
- config.toml +4 -4
- pytorch_model.bin +1 -1
- tokenizer.json +8 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -23,13 +23,13 @@ model-index:
|
|
| 23 |
metrics:
|
| 24 |
- name: F1
|
| 25 |
type: f1
|
| 26 |
-
value: 0.
|
| 27 |
- name: Precision
|
| 28 |
type: precision
|
| 29 |
-
value: 0.
|
| 30 |
- name: Recall
|
| 31 |
type: recall
|
| 32 |
-
value: 0.
|
| 33 |
---
|
| 34 |
|
| 35 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -39,10 +39,10 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 39 |
|
| 40 |
This model is a fine-tuned version of [thejosango/nuha-mlm](https://huggingface.co/thejosango/nuha-mlm) on the nuha-dataset dataset.
|
| 41 |
It achieves the following results on the evaluation set:
|
| 42 |
-
-
|
| 43 |
-
-
|
| 44 |
-
- Precision: 0.
|
| 45 |
-
- Recall: 0.
|
| 46 |
- Support: None
|
| 47 |
|
| 48 |
## Model description
|
|
@@ -62,12 +62,10 @@ More information needed
|
|
| 62 |
### Training hyperparameters
|
| 63 |
|
| 64 |
The following hyperparameters were used during training:
|
| 65 |
-
- learning_rate:
|
| 66 |
-
- train_batch_size:
|
| 67 |
- eval_batch_size: 32
|
| 68 |
- seed: 42
|
| 69 |
-
- gradient_accumulation_steps: 2
|
| 70 |
-
- total_train_batch_size: 64
|
| 71 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 72 |
- lr_scheduler_type: constant
|
| 73 |
- lr_scheduler_warmup_steps: 1000.0
|
|
@@ -76,13 +74,28 @@ The following hyperparameters were used during training:
|
|
| 76 |
|
| 77 |
### Training results
|
| 78 |
|
| 79 |
-
| Training Loss | Epoch | Step | Validation Loss |
|
| 80 |
-
|:-------------:|:-----:|:----:|:---------------
|
| 81 |
-
|
|
| 82 |
-
| 1.
|
| 83 |
-
| 1.
|
| 84 |
-
| 1.
|
| 85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
|
| 88 |
### Framework versions
|
|
|
|
| 23 |
metrics:
|
| 24 |
- name: F1
|
| 25 |
type: f1
|
| 26 |
+
value: 0.6488855020003811
|
| 27 |
- name: Precision
|
| 28 |
type: precision
|
| 29 |
+
value: 0.530860349127182
|
| 30 |
- name: Recall
|
| 31 |
type: recall
|
| 32 |
+
value: 0.8343949044585988
|
| 33 |
---
|
| 34 |
|
| 35 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 39 |
|
| 40 |
This model is a fine-tuned version of [thejosango/nuha-mlm](https://huggingface.co/thejosango/nuha-mlm) on the nuha-dataset dataset.
|
| 41 |
It achieves the following results on the evaluation set:
|
| 42 |
+
- F1: 0.6489
|
| 43 |
+
- Loss: 0.6212
|
| 44 |
+
- Precision: 0.5309
|
| 45 |
+
- Recall: 0.8344
|
| 46 |
- Support: None
|
| 47 |
|
| 48 |
## Model description
|
|
|
|
| 62 |
### Training hyperparameters
|
| 63 |
|
| 64 |
The following hyperparameters were used during training:
|
| 65 |
+
- learning_rate: 5e-05
|
| 66 |
+
- train_batch_size: 16
|
| 67 |
- eval_batch_size: 32
|
| 68 |
- seed: 42
|
|
|
|
|
|
|
| 69 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 70 |
- lr_scheduler_type: constant
|
| 71 |
- lr_scheduler_warmup_steps: 1000.0
|
|
|
|
| 74 |
|
| 75 |
### Training results
|
| 76 |
|
| 77 |
+
| Training Loss | Epoch | Step | F1 | Validation Loss | Precision | Recall | Support |
|
| 78 |
+
|:-------------:|:-----:|:-----:|:------:|:---------------:|:---------:|:------:|:-------:|
|
| 79 |
+
| 3.0309 | 0.24 | 500 | 0.5091 | 0.8040 | 0.4004 | 0.6987 | None |
|
| 80 |
+
| 1.9804 | 0.49 | 1000 | 0.5306 | 0.9799 | 0.3681 | 0.9500 | None |
|
| 81 |
+
| 1.7294 | 0.73 | 1500 | 0.5238 | 1.9662 | 0.3589 | 0.9691 | None |
|
| 82 |
+
| 1.2761 | 0.98 | 2000 | 0.4732 | 0.6147 | 0.6136 | 0.3851 | None |
|
| 83 |
+
| 1.0954 | 1.22 | 2500 | 0.5614 | 0.6456 | 0.5693 | 0.5537 | None |
|
| 84 |
+
| 0.9203 | 1.47 | 3000 | 0.5684 | 0.6862 | 0.4105 | 0.9236 | None |
|
| 85 |
+
| 0.8422 | 1.71 | 3500 | 0.0 | 0.6237 | 1.0 | 0.0 | None |
|
| 86 |
+
| 0.7892 | 1.96 | 4000 | 0.3473 | 0.6111 | 0.7300 | 0.2278 | None |
|
| 87 |
+
| 0.7834 | 2.2 | 4500 | 0.4296 | 0.5738 | 0.7014 | 0.3097 | None |
|
| 88 |
+
| 0.7446 | 2.45 | 5000 | 0.5189 | 0.6224 | 0.6777 | 0.4204 | None |
|
| 89 |
+
| 0.7392 | 2.69 | 5500 | 0.6231 | 0.6188 | 0.6007 | 0.6472 | None |
|
| 90 |
+
| 0.7007 | 2.94 | 6000 | 0.6252 | 0.5837 | 0.6153 | 0.6355 | None |
|
| 91 |
+
| 0.7127 | 3.18 | 6500 | 0.6041 | 0.6996 | 0.4461 | 0.9353 | None |
|
| 92 |
+
| 0.7023 | 3.43 | 7000 | 0.5909 | 0.7383 | 0.4291 | 0.9486 | None |
|
| 93 |
+
| 0.6853 | 3.67 | 7500 | 0.5861 | 0.7998 | 0.4239 | 0.9490 | None |
|
| 94 |
+
| 0.6708 | 3.92 | 8000 | 0.6406 | 0.7828 | 0.6127 | 0.6712 | None |
|
| 95 |
+
| 0.6463 | 4.16 | 8500 | 0.5856 | 0.7472 | 0.4226 | 0.9530 | None |
|
| 96 |
+
| 0.6517 | 4.41 | 9000 | 0.6540 | 0.8006 | 0.5701 | 0.7668 | None |
|
| 97 |
+
| 0.6325 | 4.65 | 9500 | 0.6432 | 0.7416 | 0.5150 | 0.8564 | None |
|
| 98 |
+
| 0.6434 | 4.9 | 10000 | 0.6489 | 0.6212 | 0.5309 | 0.8344 | None |
|
| 99 |
|
| 100 |
|
| 101 |
### Framework versions
|
config.toml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
[experiment]
|
| 2 |
-
name = "binary-
|
| 3 |
type = "binary"
|
| 4 |
|
| 5 |
|
|
@@ -26,10 +26,10 @@ classifier_dropout = 0.5
|
|
| 26 |
num_train_epochs = 5
|
| 27 |
warmup_steps = 1e3
|
| 28 |
lr_scheduler_type = "constant"
|
| 29 |
-
learning_rate =
|
| 30 |
-
per_device_train_batch_size =
|
| 31 |
per_device_eval_batch_size = 32
|
| 32 |
-
gradient_accumulation_steps =
|
| 33 |
weight_decay = 0.01
|
| 34 |
label_smoothing_factor = 0.1
|
| 35 |
weighted_loss = false
|
|
|
|
| 1 |
[experiment]
|
| 2 |
+
name = "binary-17"
|
| 3 |
type = "binary"
|
| 4 |
|
| 5 |
|
|
|
|
| 26 |
num_train_epochs = 5
|
| 27 |
warmup_steps = 1e3
|
| 28 |
lr_scheduler_type = "constant"
|
| 29 |
+
learning_rate = 5e-5
|
| 30 |
+
per_device_train_batch_size = 16
|
| 31 |
per_device_eval_batch_size = 32
|
| 32 |
+
gradient_accumulation_steps = 1
|
| 33 |
weight_decay = 0.01
|
| 34 |
label_smoothing_factor = 0.1
|
| 35 |
weighted_loss = false
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 427419953
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f7ab0988aeafc4d1040d62ea16ec7830a483ebf721884a93851f20b164979a3
|
| 3 |
size 427419953
|
tokenizer.json
CHANGED
|
@@ -6,7 +6,14 @@
|
|
| 6 |
"strategy": "LongestFirst",
|
| 7 |
"stride": 0
|
| 8 |
},
|
| 9 |
-
"padding":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
"added_tokens": [
|
| 11 |
{
|
| 12 |
"id": 0,
|
|
|
|
| 6 |
"strategy": "LongestFirst",
|
| 7 |
"stride": 0
|
| 8 |
},
|
| 9 |
+
"padding": {
|
| 10 |
+
"strategy": "BatchLongest",
|
| 11 |
+
"direction": "Right",
|
| 12 |
+
"pad_to_multiple_of": null,
|
| 13 |
+
"pad_id": 0,
|
| 14 |
+
"pad_type_id": 0,
|
| 15 |
+
"pad_token": "[PAD]"
|
| 16 |
+
},
|
| 17 |
"added_tokens": [
|
| 18 |
{
|
| 19 |
"id": 0,
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4091
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0bbcaae74c9fa5e9d632c695d7ac53efdc5da8d29fd14f36321d8376ec0e5ba
|
| 3 |
size 4091
|