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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
binary-48
Browse files- README.md +16 -15
- config.json +1 -1
- config.toml +2 -2
- pytorch_model.bin +2 -2
- 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
|
|
@@ -75,14 +75,15 @@ The following hyperparameters were used during training:
|
|
| 75 |
|
| 76 |
| Training Loss | Epoch | Step | Validation Loss | F1 | Precision | Recall | Support |
|
| 77 |
|:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:------:|:-------:|
|
| 78 |
-
| 0.
|
| 79 |
-
| 0.
|
| 80 |
-
| 0.
|
| 81 |
-
| 0.
|
| 82 |
-
| 0.
|
| 83 |
-
| 0.
|
| 84 |
-
| 0.
|
| 85 |
-
| 0.
|
|
|
|
| 86 |
|
| 87 |
|
| 88 |
### Framework versions
|
|
|
|
| 23 |
metrics:
|
| 24 |
- name: F1
|
| 25 |
type: f1
|
| 26 |
+
value: 0.6800462504129501
|
| 27 |
- name: Precision
|
| 28 |
type: precision
|
| 29 |
+
value: 0.6149365197908887
|
| 30 |
- name: Recall
|
| 31 |
type: recall
|
| 32 |
+
value: 0.7605763901718086
|
| 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.6279
|
| 43 |
+
- F1: 0.6800
|
| 44 |
+
- Precision: 0.6149
|
| 45 |
+
- Recall: 0.7606
|
| 46 |
- Support: None
|
| 47 |
|
| 48 |
## Model description
|
|
|
|
| 75 |
|
| 76 |
| Training Loss | Epoch | Step | Validation Loss | F1 | Precision | Recall | Support |
|
| 77 |
|:-------------:|:-----:|:----:|:---------------:|:------:|:---------:|:------:|:-------:|
|
| 78 |
+
| 0.5551 | 0.37 | 500 | 0.5371 | 0.6814 | 0.6026 | 0.7840 | None |
|
| 79 |
+
| 0.5363 | 0.74 | 1000 | 0.5705 | 0.6878 | 0.5740 | 0.8579 | None |
|
| 80 |
+
| 0.5154 | 1.11 | 1500 | 0.5587 | 0.6896 | 0.5873 | 0.8352 | None |
|
| 81 |
+
| 0.4736 | 1.48 | 2000 | 0.5350 | 0.6992 | 0.6391 | 0.7718 | None |
|
| 82 |
+
| 0.4749 | 1.85 | 2500 | 0.5340 | 0.6994 | 0.6222 | 0.7984 | None |
|
| 83 |
+
| 0.3901 | 2.22 | 3000 | 0.5633 | 0.6859 | 0.6494 | 0.7268 | None |
|
| 84 |
+
| 0.4004 | 2.58 | 3500 | 0.5731 | 0.6837 | 0.6266 | 0.7523 | None |
|
| 85 |
+
| 0.4049 | 2.95 | 4000 | 0.5521 | 0.6875 | 0.6279 | 0.7597 | None |
|
| 86 |
+
| 0.3327 | 3.32 | 4500 | 0.6279 | 0.6800 | 0.6149 | 0.7606 | None |
|
| 87 |
|
| 88 |
|
| 89 |
### Framework versions
|
config.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
| 23 |
"max_position_embeddings": 512,
|
| 24 |
"model_type": "bert",
|
| 25 |
"num_attention_heads": 12,
|
| 26 |
-
"num_hidden_layers":
|
| 27 |
"pad_token_id": 0,
|
| 28 |
"position_embedding_type": "absolute",
|
| 29 |
"problem_type": "single_label_classification",
|
|
|
|
| 23 |
"max_position_embeddings": 512,
|
| 24 |
"model_type": "bert",
|
| 25 |
"num_attention_heads": 12,
|
| 26 |
+
"num_hidden_layers": 4,
|
| 27 |
"pad_token_id": 0,
|
| 28 |
"position_embedding_type": "absolute",
|
| 29 |
"problem_type": "single_label_classification",
|
config.toml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
[experiment]
|
| 2 |
-
name = "binary-
|
| 3 |
type = "binary"
|
| 4 |
|
| 5 |
|
|
@@ -13,7 +13,7 @@ undersampling_strategy = true
|
|
| 13 |
[model]
|
| 14 |
pretrained_model_name_or_path = "thejosango/nuha-mlm"
|
| 15 |
revision = "ce20f497544665775129f9ff5b3cd2a3e350dce8"
|
| 16 |
-
num_hidden_layers =
|
| 17 |
|
| 18 |
[training]
|
| 19 |
num_train_epochs = 5
|
|
|
|
| 1 |
[experiment]
|
| 2 |
+
name = "binary-48"
|
| 3 |
type = "binary"
|
| 4 |
|
| 5 |
|
|
|
|
| 13 |
[model]
|
| 14 |
pretrained_model_name_or_path = "thejosango/nuha-mlm"
|
| 15 |
revision = "ce20f497544665775129f9ff5b3cd2a3e350dce8"
|
| 16 |
+
num_hidden_layers = 4
|
| 17 |
|
| 18 |
[training]
|
| 19 |
num_train_epochs = 5
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:58663cde72a8994db819a92a7e7162df854174ce68b16532a92f66d6c5f91bcf
|
| 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:4451636d8c623728db5d931aad51bde214c675f6f40552ccb51f795f783383f4
|
| 3 |
size 4091
|