ihebaker10 commited on
Commit
2cff6fa
1 Parent(s): cf67012

ihebaker10/spark-name-fr-to-en

Browse files
README.md CHANGED
@@ -1,65 +1,57 @@
1
- ---
2
- license: apache-2.0
3
- base_model: Helsinki-NLP/opus-mt-fr-en
4
- tags:
5
- - generated_from_trainer
6
- metrics:
7
- - bleu
8
- model-index:
9
- - name: spark-name-fr-to-en
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
- # spark-name-fr-to-en
17
-
18
- This model is a fine-tuned version of [Helsinki-NLP/opus-mt-fr-en](https://huggingface.co/Helsinki-NLP/opus-mt-fr-en) on the None dataset.
19
- It achieves the following results on the evaluation set:
20
- - Loss: 0.8643
21
- - Bleu: 54.7504
22
- - Gen Len: 6.0531
23
-
24
- ## Model description
25
-
26
- More information needed
27
-
28
- ## Intended uses & limitations
29
-
30
- More information needed
31
-
32
- ## Training and evaluation data
33
-
34
- More information needed
35
-
36
- ## Training procedure
37
-
38
- ### Training hyperparameters
39
-
40
- The following hyperparameters were used during training:
41
- - learning_rate: 2e-05
42
- - train_batch_size: 16
43
- - eval_batch_size: 16
44
- - seed: 42
45
- - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
46
- - lr_scheduler_type: linear
47
- - num_epochs: 5
48
-
49
- ### Training results
50
-
51
- | Training Loss | Epoch | Step | Validation Loss | Bleu | Gen Len |
52
- |:-------------:|:-----:|:----:|:---------------:|:-------:|:-------:|
53
- | 0.9739 | 1.0 | 1600 | 0.9237 | 53.9702 | 5.9769 |
54
- | 0.7636 | 2.0 | 3200 | 0.8784 | 55.6185 | 5.9869 |
55
- | 0.6476 | 3.0 | 4800 | 0.8630 | 55.0472 | 5.9991 |
56
- | 0.5502 | 4.0 | 6400 | 0.8624 | 56.1068 | 6.0022 |
57
- | 0.4932 | 5.0 | 8000 | 0.8643 | 54.7504 | 6.0531 |
58
-
59
-
60
- ### Framework versions
61
-
62
- - Transformers 4.41.0
63
- - Pytorch 2.3.0+cu121
64
- - Datasets 2.19.1
65
- - Tokenizers 0.19.1
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ model-index:
5
+ - name: spark-name-fr-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-fr-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: 3.0788
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 | 4.3820 |
48
+ | No log | 2.0 | 2 | 3.4964 |
49
+ | No log | 3.0 | 3 | 3.0788 |
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,62 +1,62 @@
1
- {
2
- "_name_or_path": "Helsinki-NLP/opus-mt-fr-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
- 59513
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": 59513,
26
- "decoder_vocab_size": 59514,
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
- "gradient_checkpointing": false,
35
- "id2label": {
36
- "0": "LABEL_0",
37
- "1": "LABEL_1",
38
- "2": "LABEL_2"
39
- },
40
- "init_std": 0.02,
41
- "is_encoder_decoder": true,
42
- "label2id": {
43
- "LABEL_0": 0,
44
- "LABEL_1": 1,
45
- "LABEL_2": 2
46
- },
47
- "max_length": 512,
48
- "max_position_embeddings": 512,
49
- "model_type": "marian",
50
- "normalize_before": false,
51
- "normalize_embedding": false,
52
- "num_beams": 4,
53
- "num_hidden_layers": 6,
54
- "pad_token_id": 59513,
55
- "scale_embedding": true,
56
- "share_encoder_decoder_embeddings": true,
57
- "static_position_embeddings": true,
58
- "torch_dtype": "float32",
59
- "transformers_version": "4.41.0",
60
- "use_cache": true,
61
- "vocab_size": 59514
62
- }
 
1
+ {
2
+ "_name_or_path": "ihebaker10/spark-name-fr-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
+ 59513
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": 59513,
26
+ "decoder_vocab_size": 59514,
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
+ "gradient_checkpointing": false,
35
+ "id2label": {
36
+ "0": "LABEL_0",
37
+ "1": "LABEL_1",
38
+ "2": "LABEL_2"
39
+ },
40
+ "init_std": 0.02,
41
+ "is_encoder_decoder": true,
42
+ "label2id": {
43
+ "LABEL_0": 0,
44
+ "LABEL_1": 1,
45
+ "LABEL_2": 2
46
+ },
47
+ "max_length": 512,
48
+ "max_position_embeddings": 512,
49
+ "model_type": "marian",
50
+ "normalize_before": false,
51
+ "normalize_embedding": false,
52
+ "num_beams": 4,
53
+ "num_hidden_layers": 6,
54
+ "pad_token_id": 59513,
55
+ "scale_embedding": true,
56
+ "share_encoder_decoder_embeddings": true,
57
+ "static_position_embeddings": true,
58
+ "torch_dtype": "float32",
59
+ "transformers_version": "4.41.1",
60
+ "use_cache": true,
61
+ "vocab_size": 59514
62
+ }
generation_config.json CHANGED
@@ -1,16 +1,16 @@
1
- {
2
- "bad_words_ids": [
3
- [
4
- 59513
5
- ]
6
- ],
7
- "bos_token_id": 0,
8
- "decoder_start_token_id": 59513,
9
- "eos_token_id": 0,
10
- "forced_eos_token_id": 0,
11
- "max_length": 512,
12
- "num_beams": 4,
13
- "pad_token_id": 59513,
14
- "renormalize_logits": true,
15
- "transformers_version": "4.41.0"
16
- }
 
1
+ {
2
+ "bad_words_ids": [
3
+ [
4
+ 59513
5
+ ]
6
+ ],
7
+ "bos_token_id": 0,
8
+ "decoder_start_token_id": 59513,
9
+ "eos_token_id": 0,
10
+ "forced_eos_token_id": 0,
11
+ "max_length": 512,
12
+ "num_beams": 4,
13
+ "pad_token_id": 59513,
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:36be209edd12324fe6c2956401fb70452c18f33f179742a533cf076c9e41a147
3
  size 298705768
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:732f3b3e653fcd444005e815224df7a18a1aaf5d509113cbf9a015093d6d85c4
3
  size 298705768
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
- "59513": {
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": "fr",
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
+ "59513": {
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": "fr",
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:d9e0459cd8b28a6e99af9e507e2a6fd5bafb0b7f0c59b6f32a0b0ebc3c6d9c88
3
- size 5240
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d1c253f1013698be2541de133bdbab7641912014baaa067f83b299fea5f52c1
3
+ size 4795
vocab.json CHANGED
The diff for this file is too large to render. See raw diff