abdeljalilELmajjodi commited on
Commit
3a1cb51
·
verified ·
1 Parent(s): e7cf34c

abdeljalilELmajjodi/Motarjem-v0.1

Browse files
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: Helsinki-NLP/opus-mt-en-ar
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - bleu
9
+ model-index:
10
+ - name: Motarjem-v0.1
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
+ # Motarjem-v0.1
18
+
19
+ This model is a fine-tuned version of [Helsinki-NLP/opus-mt-en-ar](https://huggingface.co/Helsinki-NLP/opus-mt-en-ar) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 2.1540
22
+ - Bleu: 29.991
23
+ - Gen Len: 11.75
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: 0.001
43
+ - train_batch_size: 32
44
+ - eval_batch_size: 32
45
+ - seed: 42
46
+ - gradient_accumulation_steps: 4
47
+ - total_train_batch_size: 128
48
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
49
+ - lr_scheduler_type: linear
50
+ - lr_scheduler_warmup_ratio: 0.03
51
+ - num_epochs: 10
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | Bleu | Gen Len |
56
+ |:-------------:|:------:|:-----:|:---------------:|:-------:|:-------:|
57
+ | 3.7908 | 0.5857 | 1000 | 3.7377 | 6.18 | 16.2781 |
58
+ | 3.5926 | 1.1716 | 2000 | 3.3270 | 8.0493 | 16.4099 |
59
+ | 3.2234 | 1.7572 | 3000 | 3.0900 | 9.7393 | 15.2034 |
60
+ | 2.9178 | 2.3432 | 4000 | 2.8567 | 9.8133 | 17.6295 |
61
+ | 2.7302 | 2.9288 | 5000 | 2.6926 | 15.7344 | 12.8374 |
62
+ | 2.4324 | 3.5148 | 6000 | 2.5841 | 16.7132 | 12.9787 |
63
+ | 2.3135 | 4.1007 | 7000 | 2.4542 | 17.5718 | 13.288 |
64
+ | 2.0808 | 4.6864 | 8000 | 2.3554 | 18.0186 | 13.6381 |
65
+ | 1.9353 | 5.2723 | 9000 | 2.3031 | 20.0612 | 12.8465 |
66
+ | 1.8244 | 5.8580 | 10000 | 2.1954 | 19.1501 | 14.0303 |
67
+ | 1.6091 | 6.4439 | 11000 | 2.2027 | 23.3063 | 12.3297 |
68
+ | 1.5548 | 7.0299 | 12000 | 2.1910 | 23.6853 | 12.4534 |
69
+ | 1.325 | 7.6155 | 13000 | 2.1362 | 27.8799 | 11.4823 |
70
+ | 1.2595 | 8.2015 | 14000 | 2.1696 | 25.782 | 12.1096 |
71
+ | 1.1253 | 8.7871 | 15000 | 2.1173 | 27.8543 | 11.8945 |
72
+ | 0.9858 | 9.3731 | 16000 | 2.1696 | 29.3317 | 11.7985 |
73
+ | 0.938 | 9.9587 | 17000 | 2.1540 | 29.991 | 11.75 |
74
+
75
+
76
+ ### Framework versions
77
+
78
+ - Transformers 4.48.0
79
+ - Pytorch 2.5.1+cu121
80
+ - Datasets 3.2.0
81
+ - Tokenizers 0.21.0
added_tokens.json ADDED
The diff for this file is too large to render. See raw diff
 
config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Helsinki-NLP/opus-mt-en-ar",
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "swish",
5
+ "add_bias_logits": false,
6
+ "add_final_layer_norm": false,
7
+ "architectures": [
8
+ "MarianMTModel"
9
+ ],
10
+ "attention_dropout": 0.0,
11
+ "bos_token_id": 0,
12
+ "classif_dropout": 0.0,
13
+ "classifier_dropout": 0.0,
14
+ "d_model": 512,
15
+ "decoder_attention_heads": 8,
16
+ "decoder_ffn_dim": 2048,
17
+ "decoder_layerdrop": 0.0,
18
+ "decoder_layers": 6,
19
+ "decoder_start_token_id": 62801,
20
+ "decoder_vocab_size": 69699,
21
+ "dropout": 0.1,
22
+ "encoder_attention_heads": 8,
23
+ "encoder_ffn_dim": 2048,
24
+ "encoder_layerdrop": 0.0,
25
+ "encoder_layers": 6,
26
+ "eos_token_id": 0,
27
+ "extra_pos_embeddings": 62802,
28
+ "forced_eos_token_id": 0,
29
+ "id2label": {
30
+ "0": "LABEL_0",
31
+ "1": "LABEL_1",
32
+ "2": "LABEL_2"
33
+ },
34
+ "init_std": 0.02,
35
+ "is_encoder_decoder": true,
36
+ "label2id": {
37
+ "LABEL_0": 0,
38
+ "LABEL_1": 1,
39
+ "LABEL_2": 2
40
+ },
41
+ "max_length": null,
42
+ "max_position_embeddings": 512,
43
+ "model_type": "marian",
44
+ "normalize_before": false,
45
+ "normalize_embedding": false,
46
+ "num_beams": null,
47
+ "num_hidden_layers": 6,
48
+ "pad_token_id": 62801,
49
+ "scale_embedding": true,
50
+ "share_encoder_decoder_embeddings": true,
51
+ "static_position_embeddings": true,
52
+ "torch_dtype": "float32",
53
+ "transformers_version": "4.48.0",
54
+ "use_cache": true,
55
+ "vocab_size": 69699
56
+ }
generation_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bad_words_ids": [
3
+ [
4
+ 62801
5
+ ]
6
+ ],
7
+ "bos_token_id": 0,
8
+ "decoder_start_token_id": 62801,
9
+ "eos_token_id": 0,
10
+ "forced_eos_token_id": 0,
11
+ "max_length": 512,
12
+ "num_beams": 4,
13
+ "pad_token_id": 62801,
14
+ "renormalize_logits": true,
15
+ "transformers_version": "4.48.0"
16
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9908d60f578edb4d73cda3b393fcb437a5aaba6c26ed06342ac3a2d639808e5d
3
+ size 462349364
source.spm ADDED
Binary file (801 kB). View file
 
special_tokens_map.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "eos_token": "</s>",
3
+ "pad_token": "<pad>",
4
+ "unk_token": "<unk>"
5
+ }
target.spm ADDED
Binary file (917 kB). View file
 
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db5b27840a3a07fa8e18ff99bdf6bbcce8eef39b63d33620d8ab3c3ebac9262a
3
+ size 5432
vocab.json ADDED
The diff for this file is too large to render. See raw diff