End of training
Browse files- README.md +72 -0
- config.json +123 -0
- model.safetensors +3 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +65 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Omartificial-Intelligence-Space/SA-BERT-V1
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
metrics:
|
| 7 |
+
- accuracy
|
| 8 |
+
- f1
|
| 9 |
+
model-index:
|
| 10 |
+
- name: Mohammed_Saudi_Classifier_SABERT
|
| 11 |
+
results: []
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 15 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
+
|
| 17 |
+
# Mohammed_Saudi_Classifier_SABERT
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [Omartificial-Intelligence-Space/SA-BERT-V1](https://huggingface.co/Omartificial-Intelligence-Space/SA-BERT-V1) on an unknown dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 2.0890
|
| 22 |
+
- Accuracy: 0.6355
|
| 23 |
+
- F1: 0.6159
|
| 24 |
+
|
| 25 |
+
## Model description
|
| 26 |
+
|
| 27 |
+
More information needed
|
| 28 |
+
|
| 29 |
+
## Intended uses & limitations
|
| 30 |
+
|
| 31 |
+
More information needed
|
| 32 |
+
|
| 33 |
+
## Training and evaluation data
|
| 34 |
+
|
| 35 |
+
More information needed
|
| 36 |
+
|
| 37 |
+
## Training procedure
|
| 38 |
+
|
| 39 |
+
### Training hyperparameters
|
| 40 |
+
|
| 41 |
+
The following hyperparameters were used during training:
|
| 42 |
+
- learning_rate: 3e-05
|
| 43 |
+
- train_batch_size: 16
|
| 44 |
+
- eval_batch_size: 16
|
| 45 |
+
- seed: 42
|
| 46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 47 |
+
- lr_scheduler_type: linear
|
| 48 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 49 |
+
- num_epochs: 10
|
| 50 |
+
|
| 51 |
+
### Training results
|
| 52 |
+
|
| 53 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|
| 54 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
|
| 55 |
+
| No log | 1.0 | 60 | 3.7608 | 0.0093 | 0.0002 |
|
| 56 |
+
| No log | 2.0 | 120 | 3.6178 | 0.2243 | 0.2016 |
|
| 57 |
+
| No log | 3.0 | 180 | 3.1702 | 0.4486 | 0.3837 |
|
| 58 |
+
| No log | 4.0 | 240 | 2.8401 | 0.4860 | 0.4399 |
|
| 59 |
+
| No log | 5.0 | 300 | 2.5739 | 0.5514 | 0.5257 |
|
| 60 |
+
| No log | 6.0 | 360 | 2.4024 | 0.5981 | 0.5784 |
|
| 61 |
+
| No log | 7.0 | 420 | 2.2519 | 0.5794 | 0.5480 |
|
| 62 |
+
| No log | 8.0 | 480 | 2.1640 | 0.5981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
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "Omartificial-Intelligence-Space/SA-BERT-V1",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"directionality": "bidi",
|
| 9 |
+
"gradient_checkpointing": false,
|
| 10 |
+
"hidden_act": "gelu",
|
| 11 |
+
"hidden_dropout_prob": 0.1,
|
| 12 |
+
"hidden_size": 768,
|
| 13 |
+
"id2label": {
|
| 14 |
+
"0": "Arts and Media",
|
| 15 |
+
"1": "Business and Money",
|
| 16 |
+
"2": "Cars and Driving",
|
| 17 |
+
"3": "Culture and Traditions",
|
| 18 |
+
"4": "Daily Life",
|
| 19 |
+
"5": "Days and Dates",
|
| 20 |
+
"6": "Descriptions",
|
| 21 |
+
"7": "Directions",
|
| 22 |
+
"8": "Economy and Finance",
|
| 23 |
+
"9": "Education and Training",
|
| 24 |
+
"10": "Emotions",
|
| 25 |
+
"11": "Entertainment",
|
| 26 |
+
"12": "Environment and Nature",
|
| 27 |
+
"13": "Events and Celebrations",
|
| 28 |
+
"14": "Family and Relationships",
|
| 29 |
+
"15": "Fitness and Exercise",
|
| 30 |
+
"16": "Food and Dining",
|
| 31 |
+
"17": "Greetings",
|
| 32 |
+
"18": "Health",
|
| 33 |
+
"19": "Hobbies and Interests",
|
| 34 |
+
"20": "Home and Living",
|
| 35 |
+
"21": "Instructions and Guidelines",
|
| 36 |
+
"22": "Law and Justice",
|
| 37 |
+
"23": "Mental Health",
|
| 38 |
+
"24": "Opinions",
|
| 39 |
+
"25": "Planning and Decisions",
|
| 40 |
+
"26": "Questions",
|
| 41 |
+
"27": "Real Estate and Housing",
|
| 42 |
+
"28": "Religion and Spirituality",
|
| 43 |
+
"29": "Responses",
|
| 44 |
+
"30": "Saudi Cities and Regions",
|
| 45 |
+
"31": "Shopping",
|
| 46 |
+
"32": "Social Media",
|
| 47 |
+
"33": "Sports",
|
| 48 |
+
"34": "Study and Education",
|
| 49 |
+
"35": "Technology",
|
| 50 |
+
"36": "Time",
|
| 51 |
+
"37": "Tourism",
|
| 52 |
+
"38": "Transport",
|
| 53 |
+
"39": "Travel",
|
| 54 |
+
"40": "Weather",
|
| 55 |
+
"41": "Wishes and Dreams",
|
| 56 |
+
"42": "Work"
|
| 57 |
+
},
|
| 58 |
+
"initializer_range": 0.02,
|
| 59 |
+
"intermediate_size": 3072,
|
| 60 |
+
"label2id": {
|
| 61 |
+
"Arts and Media": 0,
|
| 62 |
+
"Business and Money": 1,
|
| 63 |
+
"Cars and Driving": 2,
|
| 64 |
+
"Culture and Traditions": 3,
|
| 65 |
+
"Daily Life": 4,
|
| 66 |
+
"Days and Dates": 5,
|
| 67 |
+
"Descriptions": 6,
|
| 68 |
+
"Directions": 7,
|
| 69 |
+
"Economy and Finance": 8,
|
| 70 |
+
"Education and Training": 9,
|
| 71 |
+
"Emotions": 10,
|
| 72 |
+
"Entertainment": 11,
|
| 73 |
+
"Environment and Nature": 12,
|
| 74 |
+
"Events and Celebrations": 13,
|
| 75 |
+
"Family and Relationships": 14,
|
| 76 |
+
"Fitness and Exercise": 15,
|
| 77 |
+
"Food and Dining": 16,
|
| 78 |
+
"Greetings": 17,
|
| 79 |
+
"Health": 18,
|
| 80 |
+
"Hobbies and Interests": 19,
|
| 81 |
+
"Home and Living": 20,
|
| 82 |
+
"Instructions and Guidelines": 21,
|
| 83 |
+
"Law and Justice": 22,
|
| 84 |
+
"Mental Health": 23,
|
| 85 |
+
"Opinions": 24,
|
| 86 |
+
"Planning and Decisions": 25,
|
| 87 |
+
"Questions": 26,
|
| 88 |
+
"Real Estate and Housing": 27,
|
| 89 |
+
"Religion and Spirituality": 28,
|
| 90 |
+
"Responses": 29,
|
| 91 |
+
"Saudi Cities and Regions": 30,
|
| 92 |
+
"Shopping": 31,
|
| 93 |
+
"Social Media": 32,
|
| 94 |
+
"Sports": 33,
|
| 95 |
+
"Study and Education": 34,
|
| 96 |
+
"Technology": 35,
|
| 97 |
+
"Time": 36,
|
| 98 |
+
"Tourism": 37,
|
| 99 |
+
"Transport": 38,
|
| 100 |
+
"Travel": 39,
|
| 101 |
+
"Weather": 40,
|
| 102 |
+
"Wishes and Dreams": 41,
|
| 103 |
+
"Work": 42
|
| 104 |
+
},
|
| 105 |
+
"layer_norm_eps": 1e-12,
|
| 106 |
+
"max_position_embeddings": 512,
|
| 107 |
+
"model_type": "bert",
|
| 108 |
+
"num_attention_heads": 12,
|
| 109 |
+
"num_hidden_layers": 12,
|
| 110 |
+
"pad_token_id": 0,
|
| 111 |
+
"pooler_fc_size": 768,
|
| 112 |
+
"pooler_num_attention_heads": 12,
|
| 113 |
+
"pooler_num_fc_layers": 3,
|
| 114 |
+
"pooler_size_per_head": 128,
|
| 115 |
+
"pooler_type": "first_token_transform",
|
| 116 |
+
"position_embedding_type": "absolute",
|
| 117 |
+
"problem_type": "single_label_classification",
|
| 118 |
+
"torch_dtype": "float32",
|
| 119 |
+
"transformers_version": "4.42.4",
|
| 120 |
+
"type_vocab_size": 2,
|
| 121 |
+
"use_cache": true,
|
| 122 |
+
"vocab_size": 100000
|
| 123 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0091947d2bfb86bb15f4058e034effe26537cc77d5c09d018cc057bbb90e95e
|
| 3 |
+
size 651521196
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cls_token": {
|
| 3 |
+
"content": "[CLS]",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"mask_token": {
|
| 10 |
+
"content": "[MASK]",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "[PAD]",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"sep_token": {
|
| 24 |
+
"content": "[SEP]",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
},
|
| 30 |
+
"unk_token": {
|
| 31 |
+
"content": "[UNK]",
|
| 32 |
+
"lstrip": false,
|
| 33 |
+
"normalized": false,
|
| 34 |
+
"rstrip": false,
|
| 35 |
+
"single_word": false
|
| 36 |
+
}
|
| 37 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "[PAD]",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"1": {
|
| 12 |
+
"content": "[UNK]",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"2": {
|
| 20 |
+
"content": "[CLS]",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"3": {
|
| 28 |
+
"content": "[SEP]",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"4": {
|
| 36 |
+
"content": "[MASK]",
|
| 37 |
+
"lstrip": false,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false,
|
| 41 |
+
"special": true
|
| 42 |
+
}
|
| 43 |
+
},
|
| 44 |
+
"clean_up_tokenization_spaces": true,
|
| 45 |
+
"cls_token": "[CLS]",
|
| 46 |
+
"do_basic_tokenize": true,
|
| 47 |
+
"do_lower_case": true,
|
| 48 |
+
"extra_special_tokens": {},
|
| 49 |
+
"mask_token": "[MASK]",
|
| 50 |
+
"max_length": 256,
|
| 51 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 52 |
+
"never_split": null,
|
| 53 |
+
"pad_to_multiple_of": null,
|
| 54 |
+
"pad_token": "[PAD]",
|
| 55 |
+
"pad_token_type_id": 0,
|
| 56 |
+
"padding_side": "right",
|
| 57 |
+
"sep_token": "[SEP]",
|
| 58 |
+
"stride": 0,
|
| 59 |
+
"strip_accents": null,
|
| 60 |
+
"tokenize_chinese_chars": true,
|
| 61 |
+
"tokenizer_class": "BertTokenizer",
|
| 62 |
+
"truncation_side": "right",
|
| 63 |
+
"truncation_strategy": "longest_first",
|
| 64 |
+
"unk_token": "[UNK]"
|
| 65 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4aae2f4dd42b9e52cc3adaae6f09df8274e98ca8570b6fb19679c4491e8efc37
|
| 3 |
+
size 5585
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|