ihebaker10 commited on
Commit
9d2534b
1 Parent(s): 3934307

ihebaker10/spark-name-ar-to-en

Browse files
README.md CHANGED
@@ -1,73 +1,57 @@
1
- ---
2
- license: apache-2.0
3
- base_model: Helsinki-NLP/opus-mt-ar-en
4
- tags:
5
- - generated_from_trainer
6
- metrics:
7
- - bleu
8
- - wer
9
- model-index:
10
- - name: spark-name-ar-to-en
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
- # spark-name-ar-to-en
18
-
19
- This model is a fine-tuned version of [Helsinki-NLP/opus-mt-ar-en](https://huggingface.co/Helsinki-NLP/opus-mt-ar-en) on the None dataset.
20
- It achieves the following results on the evaluation set:
21
- - Loss: 1.3823
22
- - Bleu: 53.1642
23
- - Wer: 0.4645
24
- - Cer: 0.2825
25
- - Gen Len: 6.4318
26
-
27
- ## Model description
28
-
29
- More information needed
30
-
31
- ## Intended uses & limitations
32
-
33
- More information needed
34
-
35
- ## Training and evaluation data
36
-
37
- More information needed
38
-
39
- ## Training procedure
40
-
41
- ### Training hyperparameters
42
-
43
- The following hyperparameters were used during training:
44
- - learning_rate: 2e-05
45
- - train_batch_size: 16
46
- - eval_batch_size: 16
47
- - seed: 42
48
- - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
49
- - lr_scheduler_type: linear
50
- - num_epochs: 10
51
-
52
- ### Training results
53
-
54
- | Training Loss | Epoch | Step | Validation Loss | Bleu | Wer | Cer | Gen Len |
55
- |:-------------:|:-----:|:-----:|:---------------:|:-------:|:------:|:------:|:-------:|
56
- | 1.7775 | 1.0 | 2221 | 1.5005 | 44.6766 | 0.5193 | 0.3119 | 6.3707 |
57
- | 1.5758 | 2.0 | 4442 | 1.4128 | 48.7099 | 0.4912 | 0.298 | 6.3802 |
58
- | 1.2272 | 3.0 | 6663 | 1.3775 | 50.2115 | 0.4795 | 0.2906 | 6.3869 |
59
- | 1.1741 | 4.0 | 8884 | 1.3685 | 51.9578 | 0.4708 | 0.2869 | 6.4 |
60
- | 0.9677 | 5.0 | 11105 | 1.3666 | 51.5306 | 0.4707 | 0.2896 | 6.4687 |
61
- | 0.9539 | 6.0 | 13326 | 1.3687 | 52.559 | 0.4635 | 0.2818 | 6.3953 |
62
- | 0.8521 | 7.0 | 15547 | 1.3756 | 52.4622 | 0.4664 | 0.2829 | 6.4169 |
63
- | 0.8 | 8.0 | 17768 | 1.3760 | 52.9491 | 0.4644 | 0.2988 | 6.539 |
64
- | 0.7886 | 9.0 | 19989 | 1.3821 | 52.8784 | 0.4647 | 0.2828 | 6.4182 |
65
- | 0.7887 | 10.0 | 22210 | 1.3823 | 53.1642 | 0.4645 | 0.2825 | 6.4318 |
66
-
67
-
68
- ### Framework versions
69
-
70
- - Transformers 4.40.2
71
- - Pytorch 2.2.1+cu121
72
- - Datasets 2.19.1
73
- - Tokenizers 0.19.1
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ model-index:
5
+ - name: spark-name-ar-to-en
6
+ results: []
7
+ ---
8
+
9
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
10
+ should probably proofread and complete it, then remove this comment. -->
11
+
12
+ # spark-name-ar-to-en
13
+
14
+ This model was trained from scratch on an unknown dataset.
15
+ It achieves the following results on the evaluation set:
16
+ - Loss: 4.4811
17
+
18
+ ## Model description
19
+
20
+ More information needed
21
+
22
+ ## Intended uses & limitations
23
+
24
+ More information needed
25
+
26
+ ## Training and evaluation data
27
+
28
+ More information needed
29
+
30
+ ## Training procedure
31
+
32
+ ### Training hyperparameters
33
+
34
+ The following hyperparameters were used during training:
35
+ - learning_rate: 2e-05
36
+ - train_batch_size: 16
37
+ - eval_batch_size: 16
38
+ - seed: 42
39
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
40
+ - lr_scheduler_type: linear
41
+ - num_epochs: 3
42
+
43
+ ### Training results
44
+
45
+ | Training Loss | Epoch | Step | Validation Loss |
46
+ |:-------------:|:-----:|:----:|:---------------:|
47
+ | No log | 1.0 | 1 | 5.5208 |
48
+ | No log | 2.0 | 2 | 4.8107 |
49
+ | No log | 3.0 | 3 | 4.4811 |
50
+
51
+
52
+ ### Framework versions
53
+
54
+ - Transformers 4.41.1
55
+ - Pytorch 2.0.1+cpu
56
+ - Datasets 2.19.1
57
+ - Tokenizers 0.19.1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
config.json CHANGED
@@ -1,61 +1,61 @@
1
- {
2
- "_name_or_path": "Helsinki-NLP/opus-mt-ar-en",
3
- "_num_labels": 3,
4
- "activation_dropout": 0.0,
5
- "activation_function": "swish",
6
- "add_bias_logits": false,
7
- "add_final_layer_norm": false,
8
- "architectures": [
9
- "MarianMTModel"
10
- ],
11
- "attention_dropout": 0.0,
12
- "bad_words_ids": [
13
- [
14
- 62833
15
- ]
16
- ],
17
- "bos_token_id": 0,
18
- "classif_dropout": 0.0,
19
- "classifier_dropout": 0.0,
20
- "d_model": 512,
21
- "decoder_attention_heads": 8,
22
- "decoder_ffn_dim": 2048,
23
- "decoder_layerdrop": 0.0,
24
- "decoder_layers": 6,
25
- "decoder_start_token_id": 62833,
26
- "decoder_vocab_size": 62834,
27
- "dropout": 0.1,
28
- "encoder_attention_heads": 8,
29
- "encoder_ffn_dim": 2048,
30
- "encoder_layerdrop": 0.0,
31
- "encoder_layers": 6,
32
- "eos_token_id": 0,
33
- "forced_eos_token_id": 0,
34
- "id2label": {
35
- "0": "LABEL_0",
36
- "1": "LABEL_1",
37
- "2": "LABEL_2"
38
- },
39
- "init_std": 0.02,
40
- "is_encoder_decoder": true,
41
- "label2id": {
42
- "LABEL_0": 0,
43
- "LABEL_1": 1,
44
- "LABEL_2": 2
45
- },
46
- "max_length": 512,
47
- "max_position_embeddings": 512,
48
- "model_type": "marian",
49
- "normalize_before": false,
50
- "normalize_embedding": false,
51
- "num_beams": 4,
52
- "num_hidden_layers": 6,
53
- "pad_token_id": 62833,
54
- "scale_embedding": true,
55
- "share_encoder_decoder_embeddings": true,
56
- "static_position_embeddings": true,
57
- "torch_dtype": "float32",
58
- "transformers_version": "4.40.2",
59
- "use_cache": true,
60
- "vocab_size": 62834
61
- }
 
1
+ {
2
+ "_name_or_path": "ihebaker10/spark-name-ar-to-en",
3
+ "_num_labels": 3,
4
+ "activation_dropout": 0.0,
5
+ "activation_function": "swish",
6
+ "add_bias_logits": false,
7
+ "add_final_layer_norm": false,
8
+ "architectures": [
9
+ "MarianMTModel"
10
+ ],
11
+ "attention_dropout": 0.0,
12
+ "bad_words_ids": [
13
+ [
14
+ 62833
15
+ ]
16
+ ],
17
+ "bos_token_id": 0,
18
+ "classif_dropout": 0.0,
19
+ "classifier_dropout": 0.0,
20
+ "d_model": 512,
21
+ "decoder_attention_heads": 8,
22
+ "decoder_ffn_dim": 2048,
23
+ "decoder_layerdrop": 0.0,
24
+ "decoder_layers": 6,
25
+ "decoder_start_token_id": 62833,
26
+ "decoder_vocab_size": 62834,
27
+ "dropout": 0.1,
28
+ "encoder_attention_heads": 8,
29
+ "encoder_ffn_dim": 2048,
30
+ "encoder_layerdrop": 0.0,
31
+ "encoder_layers": 6,
32
+ "eos_token_id": 0,
33
+ "forced_eos_token_id": 0,
34
+ "id2label": {
35
+ "0": "LABEL_0",
36
+ "1": "LABEL_1",
37
+ "2": "LABEL_2"
38
+ },
39
+ "init_std": 0.02,
40
+ "is_encoder_decoder": true,
41
+ "label2id": {
42
+ "LABEL_0": 0,
43
+ "LABEL_1": 1,
44
+ "LABEL_2": 2
45
+ },
46
+ "max_length": 512,
47
+ "max_position_embeddings": 512,
48
+ "model_type": "marian",
49
+ "normalize_before": false,
50
+ "normalize_embedding": false,
51
+ "num_beams": 4,
52
+ "num_hidden_layers": 6,
53
+ "pad_token_id": 62833,
54
+ "scale_embedding": true,
55
+ "share_encoder_decoder_embeddings": true,
56
+ "static_position_embeddings": true,
57
+ "torch_dtype": "float32",
58
+ "transformers_version": "4.41.1",
59
+ "use_cache": true,
60
+ "vocab_size": 62834
61
+ }
generation_config.json CHANGED
@@ -1,16 +1,16 @@
1
- {
2
- "bad_words_ids": [
3
- [
4
- 62833
5
- ]
6
- ],
7
- "bos_token_id": 0,
8
- "decoder_start_token_id": 62833,
9
- "eos_token_id": 0,
10
- "forced_eos_token_id": 0,
11
- "max_length": 512,
12
- "num_beams": 4,
13
- "pad_token_id": 62833,
14
- "renormalize_logits": true,
15
- "transformers_version": "4.40.2"
16
- }
 
1
+ {
2
+ "bad_words_ids": [
3
+ [
4
+ 62833
5
+ ]
6
+ ],
7
+ "bos_token_id": 0,
8
+ "decoder_start_token_id": 62833,
9
+ "eos_token_id": 0,
10
+ "forced_eos_token_id": 0,
11
+ "max_length": 512,
12
+ "num_beams": 4,
13
+ "pad_token_id": 62833,
14
+ "renormalize_logits": true,
15
+ "transformers_version": "4.41.1"
16
+ }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b5cdb317768d4f927acda1506cd7ea1dd08693e81a677c6e86fb74f944863266
3
  size 305518408
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fc33468634cc4c2893ac0d884665dc5c2295eb323660a228b70803e002ef569
3
  size 305518408
special_tokens_map.json CHANGED
@@ -1,5 +1,23 @@
1
- {
2
- "eos_token": "</s>",
3
- "pad_token": "<pad>",
4
- "unk_token": "<unk>"
5
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "eos_token": {
3
+ "content": "</s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "pad_token": {
10
+ "content": "<pad>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "unk_token": {
17
+ "content": "<unk>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
tokenizer_config.json CHANGED
@@ -1,38 +1,38 @@
1
- {
2
- "added_tokens_decoder": {
3
- "0": {
4
- "content": "</s>",
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
- "62833": {
20
- "content": "<pad>",
21
- "lstrip": false,
22
- "normalized": false,
23
- "rstrip": false,
24
- "single_word": false,
25
- "special": true
26
- }
27
- },
28
- "clean_up_tokenization_spaces": true,
29
- "eos_token": "</s>",
30
- "model_max_length": 512,
31
- "pad_token": "<pad>",
32
- "separate_vocabs": false,
33
- "source_lang": "ar",
34
- "sp_model_kwargs": {},
35
- "target_lang": "en",
36
- "tokenizer_class": "MarianTokenizer",
37
- "unk_token": "<unk>"
38
- }
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "</s>",
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
+ "62833": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ }
27
+ },
28
+ "clean_up_tokenization_spaces": true,
29
+ "eos_token": "</s>",
30
+ "model_max_length": 512,
31
+ "pad_token": "<pad>",
32
+ "separate_vocabs": false,
33
+ "source_lang": "ar",
34
+ "sp_model_kwargs": {},
35
+ "target_lang": "en",
36
+ "tokenizer_class": "MarianTokenizer",
37
+ "unk_token": "<unk>"
38
+ }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fb123ffa95730f75bb7c447f8fab5e9badeaf82c55919e8f80fe0febb57e7b0c
3
- size 5112
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0fc1472afb3b26e325a61fd640090bba642a84741e5cfd43786f7c16c54b62d6
3
+ size 4795
vocab.json CHANGED
The diff for this file is too large to render. See raw diff