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-33
Browse files- README.md +15 -18
- config.toml +2 -2
- pytorch_model.bin +1 -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 |
-
- Loss: 0.
|
| 43 |
-
- F1: 0.
|
| 44 |
-
- Precision: 0.
|
| 45 |
-
- Recall: 0.
|
| 46 |
- Support: None
|
| 47 |
|
| 48 |
## Model description
|
|
@@ -62,7 +62,7 @@ More information needed
|
|
| 62 |
### Training hyperparameters
|
| 63 |
|
| 64 |
The following hyperparameters were used during training:
|
| 65 |
-
- learning_rate:
|
| 66 |
- train_batch_size: 32
|
| 67 |
- eval_batch_size: 32
|
| 68 |
- seed: 42
|
|
@@ -77,16 +77,13 @@ The following hyperparameters were used during training:
|
|
| 77 |
|
| 78 |
| Training Loss | Epoch | Step | Validation Loss | F1 | Precision | Recall | Support |
|
| 79 |
|:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:------:|:-------:|
|
| 80 |
-
| 0.
|
| 81 |
-
| 0.
|
| 82 |
-
| 0.
|
| 83 |
-
| 0.
|
| 84 |
-
| 0.
|
| 85 |
-
| 0.
|
| 86 |
-
| 0.
|
| 87 |
-
| 0.5033 | 2.96 | 4000 | 0.5338 | 0.6899 | 0.6202 | 0.7774 | None |
|
| 88 |
-
| 0.4839 | 3.32 | 4500 | 0.5339 | 0.6922 | 0.6292 | 0.7691 | None |
|
| 89 |
-
| 0.4846 | 3.69 | 5000 | 0.5309 | 0.6930 | 0.6382 | 0.7580 | None |
|
| 90 |
|
| 91 |
|
| 92 |
### Framework versions
|
|
|
|
| 23 |
metrics:
|
| 24 |
- name: F1
|
| 25 |
type: f1
|
| 26 |
+
value: 0.6829268292682927
|
| 27 |
- name: Precision
|
| 28 |
type: precision
|
| 29 |
+
value: 0.6481911715897777
|
| 30 |
- name: Recall
|
| 31 |
type: recall
|
| 32 |
+
value: 0.7215961573988546
|
| 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 |
+
- Loss: 0.5679
|
| 43 |
+
- F1: 0.6829
|
| 44 |
+
- Precision: 0.6482
|
| 45 |
+
- Recall: 0.7216
|
| 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: 32
|
| 67 |
- eval_batch_size: 32
|
| 68 |
- seed: 42
|
|
|
|
| 77 |
|
| 78 |
| Training Loss | Epoch | Step | Validation Loss | F1 | Precision | Recall | Support |
|
| 79 |
|:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:------:|:-------:|
|
| 80 |
+
| 0.5606 | 0.37 | 500 | 0.5393 | 0.6786 | 0.6092 | 0.7659 | None |
|
| 81 |
+
| 0.5414 | 0.74 | 1000 | 0.5770 | 0.6845 | 0.5747 | 0.8463 | None |
|
| 82 |
+
| 0.5178 | 1.11 | 1500 | 0.5384 | 0.6888 | 0.6069 | 0.7962 | None |
|
| 83 |
+
| 0.4777 | 1.48 | 2000 | 0.5407 | 0.6926 | 0.6266 | 0.7742 | None |
|
| 84 |
+
| 0.4752 | 1.85 | 2500 | 0.5372 | 0.6960 | 0.6138 | 0.8036 | None |
|
| 85 |
+
| 0.3952 | 2.22 | 3000 | 0.5873 | 0.6892 | 0.6155 | 0.7829 | None |
|
| 86 |
+
| 0.4008 | 2.59 | 3500 | 0.5679 | 0.6829 | 0.6482 | 0.7216 | None |
|
|
|
|
|
|
|
|
|
|
| 87 |
|
| 88 |
|
| 89 |
### Framework versions
|
config.toml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
[experiment]
|
| 2 |
-
name = "binary-
|
| 3 |
type = "binary"
|
| 4 |
|
| 5 |
|
|
@@ -19,7 +19,7 @@ revision = "2caf9ebc5b275737c95f8bb16953288107a7131c"
|
|
| 19 |
num_train_epochs = 30
|
| 20 |
warmup_steps = 0
|
| 21 |
lr_scheduler_type = "linear"
|
| 22 |
-
learning_rate =
|
| 23 |
per_device_train_batch_size = 32
|
| 24 |
per_device_eval_batch_size = 32
|
| 25 |
gradient_accumulation_steps = 2
|
|
|
|
| 1 |
[experiment]
|
| 2 |
+
name = "binary-33"
|
| 3 |
type = "binary"
|
| 4 |
|
| 5 |
|
|
|
|
| 19 |
num_train_epochs = 30
|
| 20 |
warmup_steps = 0
|
| 21 |
lr_scheduler_type = "linear"
|
| 22 |
+
learning_rate = 5e-5
|
| 23 |
per_device_train_batch_size = 32
|
| 24 |
per_device_eval_batch_size = 32
|
| 25 |
gradient_accumulation_steps = 2
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 313992076
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9220848386970aac9b2da72bbb5578de2bb93048fe6f3526b02d7e634df83bca
|
| 3 |
size 313992076
|
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:75405e81cc63a82a054f4fcfa9912126203b652f08c0eabc3a7dfac51214aa66
|
| 3 |
size 4091
|