mshetairy commited on
Commit
cbae9be
1 Parent(s): 596b84e

End of training

Browse files
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: asafaya/bert-base-arabic
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - f1
7
+ - accuracy
8
+ model-index:
9
+ - name: bert-base-arabic-finetuned
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # bert-base-arabic-finetuned
17
+
18
+ This model is a fine-tuned version of [asafaya/bert-base-arabic](https://huggingface.co/asafaya/bert-base-arabic) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.1660
21
+ - F1: 0.7561
22
+ - Roc Auc: 0.8464
23
+ - Accuracy: 0.7180
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: 2e-05
43
+ - train_batch_size: 8
44
+ - eval_batch_size: 8
45
+ - seed: 42
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: linear
48
+ - num_epochs: 5
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss | F1 | Roc Auc | Accuracy |
53
+ |:-------------:|:-----:|:----:|:---------------:|:------:|:-------:|:--------:|
54
+ | 0.1932 | 1.0 | 1133 | 0.1840 | 0.7144 | 0.8252 | 0.6703 |
55
+ | 0.1397 | 2.0 | 2266 | 0.1660 | 0.7561 | 0.8464 | 0.7180 |
56
+ | 0.0887 | 3.0 | 3399 | 0.1835 | 0.7487 | 0.8508 | 0.7269 |
57
+ | 0.0572 | 4.0 | 4532 | 0.2149 | 0.7356 | 0.8434 | 0.7200 |
58
+ | 0.0351 | 5.0 | 5665 | 0.2297 | 0.7377 | 0.8453 | 0.7249 |
59
+
60
+
61
+ ### Framework versions
62
+
63
+ - Transformers 4.39.1
64
+ - Pytorch 2.2.1+cu121
65
+ - Datasets 2.18.0
66
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "asafaya/bert-base-arabic",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "none",
14
+ "1": "anger",
15
+ "2": "joy",
16
+ "3": "sadness",
17
+ "4": "love",
18
+ "5": "sympathy",
19
+ "6": "surprise",
20
+ "7": "fear"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "label2id": {
25
+ "anger": 1,
26
+ "fear": 7,
27
+ "joy": 2,
28
+ "love": 4,
29
+ "none": 0,
30
+ "sadness": 3,
31
+ "surprise": 6,
32
+ "sympathy": 5
33
+ },
34
+ "layer_norm_eps": 1e-12,
35
+ "max_position_embeddings": 512,
36
+ "model_type": "bert",
37
+ "num_attention_heads": 12,
38
+ "num_hidden_layers": 12,
39
+ "output_past": true,
40
+ "pad_token_id": 0,
41
+ "position_embedding_type": "absolute",
42
+ "problem_type": "multi_label_classification",
43
+ "torch_dtype": "float32",
44
+ "transformers_version": "4.39.1",
45
+ "type_vocab_size": 2,
46
+ "use_cache": true,
47
+ "vocab_size": 32000
48
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:447d380630a250deea8e39fae33327df1cf8a2e385832c4a70ee3ffea5022dc9
3
+ size 442517520
runs/Mar26_13-05-43_93b5e44865ff/events.out.tfevents.1711458446.93b5e44865ff.685.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cf991c4e0ded20e0d2f8f550b67f7eb570c6256114072ce1cf94c6830a69544
3
+ size 9786
runs/Mar26_13-05-43_93b5e44865ff/events.out.tfevents.1711460471.93b5e44865ff.685.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e897e15e00fe922af5116eadea3c558f66c86a706cdd38704cede968c820ee3
3
+ size 508
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "full_tokenizer_file": null,
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab4198648d2637cec32ce8c2ad36be7be8c742ef463300508da6919f17a5c791
3
+ size 4920
vocab.txt ADDED
The diff for this file is too large to render. See raw diff