aomar85 commited on
Commit
4fb89b7
·
verified ·
1 Parent(s): bd9344f

Training in progress, step 50

Browse files
Files changed (6) hide show
  1. README.md +73 -0
  2. config.json +41 -0
  3. model.safetensors +3 -0
  4. tokenizer.json +0 -0
  5. tokenizer_config.json +21 -0
  6. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: aubmindlab/bert-base-arabertv02-twitter
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: Arabertv2-fold5
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
+ # Arabertv2-fold5
17
+
18
+ This model is a fine-tuned version of [aubmindlab/bert-base-arabertv02-twitter](https://huggingface.co/aubmindlab/bert-base-arabertv02-twitter) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.6600
21
+ - Accuracy: 0.8155
22
+ - Macro F1: 0.8151
23
+ - Weighted F1: 0.8151
24
+ - F1 Pro: 0.8037
25
+ - F1 Against: 0.8226
26
+ - F1 Neutral: 0.8190
27
+
28
+ ## Model description
29
+
30
+ More information needed
31
+
32
+ ## Intended uses & limitations
33
+
34
+ More information needed
35
+
36
+ ## Training and evaluation data
37
+
38
+ More information needed
39
+
40
+ ## Training procedure
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - learning_rate: 2e-05
46
+ - train_batch_size: 16
47
+ - eval_batch_size: 16
48
+ - seed: 42
49
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
50
+ - lr_scheduler_type: linear
51
+ - num_epochs: 10
52
+ - mixed_precision_training: Native AMP
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Macro F1 | Weighted F1 | F1 Pro | F1 Against | F1 Neutral |
57
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:--------:|:-----------:|:------:|:----------:|:----------:|
58
+ | 0.9553 | 1.1628 | 50 | 0.7744 | 0.6667 | 0.6675 | 0.6667 | 0.6829 | 0.6387 | 0.6809 |
59
+ | 0.6022 | 2.3256 | 100 | 0.5448 | 0.7619 | 0.7617 | 0.7620 | 0.7748 | 0.7603 | 0.75 |
60
+ | 0.3637 | 3.4884 | 150 | 0.5355 | 0.7976 | 0.7961 | 0.7969 | 0.7961 | 0.8154 | 0.7767 |
61
+ | 0.2713 | 4.6512 | 200 | 0.5420 | 0.8036 | 0.8031 | 0.8035 | 0.8037 | 0.8130 | 0.7925 |
62
+ | 0.1627 | 5.8140 | 250 | 0.5662 | 0.7917 | 0.7914 | 0.7914 | 0.7748 | 0.8033 | 0.7961 |
63
+ | 0.1126 | 6.9767 | 300 | 0.6165 | 0.8095 | 0.8095 | 0.8092 | 0.7963 | 0.8130 | 0.8190 |
64
+ | 0.0886 | 8.1395 | 350 | 0.6597 | 0.8155 | 0.8151 | 0.8151 | 0.8037 | 0.8226 | 0.8190 |
65
+ | 0.0803 | 9.3023 | 400 | 0.6821 | 0.8095 | 0.8089 | 0.8091 | 0.7963 | 0.8226 | 0.8077 |
66
+
67
+
68
+ ### Framework versions
69
+
70
+ - Transformers 5.0.0
71
+ - Pytorch 2.10.0+cu128
72
+ - Datasets 4.0.0
73
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": null,
11
+ "finetuning_task": "arabic_sentiment",
12
+ "gradient_checkpointing": false,
13
+ "hidden_act": "gelu",
14
+ "hidden_dropout_prob": 0.2,
15
+ "hidden_size": 768,
16
+ "id2label": {
17
+ "0": "positive",
18
+ "1": "negative",
19
+ "2": "neutral"
20
+ },
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 3072,
23
+ "is_decoder": false,
24
+ "label2id": {
25
+ "negative": 1,
26
+ "neutral": 2,
27
+ "positive": 0
28
+ },
29
+ "layer_norm_eps": 1e-12,
30
+ "max_position_embeddings": 512,
31
+ "model_type": "bert",
32
+ "num_attention_heads": 12,
33
+ "num_hidden_layers": 12,
34
+ "pad_token_id": 0,
35
+ "position_embedding_type": "absolute",
36
+ "tie_word_embeddings": true,
37
+ "transformers_version": "5.0.0",
38
+ "type_vocab_size": 2,
39
+ "use_cache": false,
40
+ "vocab_size": 30000
41
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbe9bec8d948e8ff6cbd50fc0c004d633635b3660a5aee2a1d2bca81f9219625
3
+ size 436358108
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_basic_tokenize": true,
5
+ "do_lower_case": false,
6
+ "is_local": false,
7
+ "mask_token": "[MASK]",
8
+ "max_len": 512,
9
+ "model_max_length": 512,
10
+ "never_split": [
11
+ "[بريد]",
12
+ "[مستخدم]",
13
+ "[رابط]"
14
+ ],
15
+ "pad_token": "[PAD]",
16
+ "sep_token": "[SEP]",
17
+ "strip_accents": null,
18
+ "tokenize_chinese_chars": true,
19
+ "tokenizer_class": "BertTokenizer",
20
+ "unk_token": "[UNK]"
21
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:310e7d09466fd2ab407b23cd0be8aa3f0e9355324eadb79052c068a6405e835d
3
+ size 5201