rickltt commited on
Commit
67064a1
·
verified ·
1 Parent(s): 9f0d906

Upload 16 files

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ generated_predictions.txt filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,69 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ language:
4
+ - zh
5
+ - en
6
+ base_model: ai_challenger-epoch-1
7
+ tags:
8
+ - generated_from_trainer
9
+ metrics:
10
+ - bleu
11
+ model-index:
12
+ - name: pretrain_zh_en_ai_challenger_output
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # pretrain_zh_en_ai_challenger_output
20
+
21
+ This model is a fine-tuned version of [ai_challenger-epoch-1](https://huggingface.co/ai_challenger-epoch-1) on an unknown dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 1.4557
24
+ - Bleu: 27.0414
25
+ - Meteor: 0.5451
26
+ - Gen Len: 15.2255
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: 5e-05
46
+ - train_batch_size: 64
47
+ - eval_batch_size: 64
48
+ - seed: 2024
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: linear
51
+ - num_epochs: 5.0
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | Bleu | Meteor | Gen Len |
56
+ |:-------------:|:-----:|:------:|:---------------:|:-------:|:------:|:-------:|
57
+ | 1.6733 | 1.0 | 156250 | 1.5656 | 25.9104 | 0.5364 | 15.4366 |
58
+ | 1.6415 | 2.0 | 312500 | 1.5193 | 26.7033 | 0.5449 | 15.6291 |
59
+ | 1.5831 | 3.0 | 468750 | 1.4901 | 27.2345 | 0.5479 | 15.5704 |
60
+ | 1.5352 | 4.0 | 625000 | 1.4695 | 27.7312 | 0.5521 | 15.528 |
61
+ | 1.4946 | 5.0 | 781250 | 1.4557 | 27.9356 | 0.5543 | 15.548 |
62
+
63
+
64
+ ### Framework versions
65
+
66
+ - Transformers 4.45.2
67
+ - Pytorch 2.5.0+cu124
68
+ - Datasets 3.0.1
69
+ - Tokenizers 0.20.1
all_results.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "eval_bleu": 27.0414,
4
+ "eval_gen_len": 15.2255,
5
+ "eval_loss": 1.4556750059127808,
6
+ "eval_meteor": 0.5451,
7
+ "eval_runtime": 104.0159,
8
+ "eval_samples": 8000,
9
+ "eval_samples_per_second": 76.911,
10
+ "eval_steps_per_second": 1.202,
11
+ "predict_bleu": 2.4866,
12
+ "predict_gen_len": 28.2458,
13
+ "predict_loss": 5.196128845214844,
14
+ "predict_meteor": 0.1243,
15
+ "predict_runtime": 4126.7668,
16
+ "predict_samples": 227568,
17
+ "predict_samples_per_second": 55.144,
18
+ "predict_steps_per_second": 0.862,
19
+ "total_flos": 6.095033471871222e+17,
20
+ "train_loss": 1.58551646,
21
+ "train_runtime": 202290.4129,
22
+ "train_samples": 10000000,
23
+ "train_samples_per_second": 247.169,
24
+ "train_steps_per_second": 3.862
25
+ }
config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "ai_challenger-epoch-1",
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": 65000,
20
+ "decoder_vocab_size": 65001,
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": 65001,
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": 65000,
49
+ "scale_embedding": true,
50
+ "share_encoder_decoder_embeddings": true,
51
+ "static_position_embeddings": true,
52
+ "torch_dtype": "float32",
53
+ "transformers_version": "4.45.2",
54
+ "use_cache": true,
55
+ "vocab_size": 65001
56
+ }
eval_results.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "eval_bleu": 27.0414,
4
+ "eval_gen_len": 15.2255,
5
+ "eval_loss": 1.4556750059127808,
6
+ "eval_meteor": 0.5451,
7
+ "eval_runtime": 104.0159,
8
+ "eval_samples": 8000,
9
+ "eval_samples_per_second": 76.911,
10
+ "eval_steps_per_second": 1.202
11
+ }
generated_predictions.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd65ea3cf65bdceeced9512ead9a612e21cd2df2ac492503ef14b49e378e2469
3
+ size 29532490
generation_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bad_words_ids": [
3
+ [
4
+ 65000
5
+ ]
6
+ ],
7
+ "bos_token_id": 0,
8
+ "decoder_start_token_id": 65000,
9
+ "eos_token_id": 0,
10
+ "forced_eos_token_id": 0,
11
+ "max_length": 512,
12
+ "num_beams": 6,
13
+ "pad_token_id": 65000,
14
+ "renormalize_logits": true,
15
+ "transformers_version": "4.45.2"
16
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddaf0c712aaff08d463a9aa7d188a1b6f104d3ed1400ba8faf6cd212ff24ba55
3
+ size 309965092
predict_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "predict_bleu": 2.4866,
3
+ "predict_gen_len": 28.2458,
4
+ "predict_loss": 5.196128845214844,
5
+ "predict_meteor": 0.1243,
6
+ "predict_runtime": 4126.7668,
7
+ "predict_samples": 227568,
8
+ "predict_samples_per_second": 55.144,
9
+ "predict_steps_per_second": 0.862
10
+ }
source.spm ADDED
Binary file (805 kB). View file
 
special_tokens_map.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ }
target.spm ADDED
Binary file (807 kB). View file
 
tokenizer_config.json ADDED
@@ -0,0 +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
+ "65000": {
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": false,
29
+ "eos_token": "</s>",
30
+ "model_max_length": 512,
31
+ "pad_token": "<pad>",
32
+ "separate_vocabs": false,
33
+ "source_lang": "zho",
34
+ "sp_model_kwargs": {},
35
+ "target_lang": "eng",
36
+ "tokenizer_class": "MarianTokenizer",
37
+ "unk_token": "<unk>"
38
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "total_flos": 6.095033471871222e+17,
4
+ "train_loss": 1.58551646,
5
+ "train_runtime": 202290.4129,
6
+ "train_samples": 10000000,
7
+ "train_samples_per_second": 247.169,
8
+ "train_steps_per_second": 3.862
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 1.4556750059127808,
3
+ "best_model_checkpoint": "./pretrain_zh_en_ai_challenger_output/checkpoint-781250",
4
+ "epoch": 5.0,
5
+ "eval_steps": 500,
6
+ "global_step": 781250,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.0,
13
+ "grad_norm": 3.1560218334198,
14
+ "learning_rate": 4e-05,
15
+ "loss": 1.6733,
16
+ "step": 156250
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "eval_bleu": 25.9104,
21
+ "eval_gen_len": 15.4366,
22
+ "eval_loss": 1.5656293630599976,
23
+ "eval_meteor": 0.5364,
24
+ "eval_runtime": 284.4687,
25
+ "eval_samples_per_second": 28.123,
26
+ "eval_steps_per_second": 0.439,
27
+ "step": 156250
28
+ },
29
+ {
30
+ "epoch": 2.0,
31
+ "grad_norm": 2.892058849334717,
32
+ "learning_rate": 3e-05,
33
+ "loss": 1.6415,
34
+ "step": 312500
35
+ },
36
+ {
37
+ "epoch": 2.0,
38
+ "eval_bleu": 26.7033,
39
+ "eval_gen_len": 15.6291,
40
+ "eval_loss": 1.5193185806274414,
41
+ "eval_meteor": 0.5449,
42
+ "eval_runtime": 290.9826,
43
+ "eval_samples_per_second": 27.493,
44
+ "eval_steps_per_second": 0.43,
45
+ "step": 312500
46
+ },
47
+ {
48
+ "epoch": 3.0,
49
+ "grad_norm": 3.1033926010131836,
50
+ "learning_rate": 2e-05,
51
+ "loss": 1.5831,
52
+ "step": 468750
53
+ },
54
+ {
55
+ "epoch": 3.0,
56
+ "eval_bleu": 27.2345,
57
+ "eval_gen_len": 15.5704,
58
+ "eval_loss": 1.490054965019226,
59
+ "eval_meteor": 0.5479,
60
+ "eval_runtime": 274.3255,
61
+ "eval_samples_per_second": 29.162,
62
+ "eval_steps_per_second": 0.456,
63
+ "step": 468750
64
+ },
65
+ {
66
+ "epoch": 4.0,
67
+ "grad_norm": 2.870877742767334,
68
+ "learning_rate": 1e-05,
69
+ "loss": 1.5352,
70
+ "step": 625000
71
+ },
72
+ {
73
+ "epoch": 4.0,
74
+ "eval_bleu": 27.7312,
75
+ "eval_gen_len": 15.528,
76
+ "eval_loss": 1.4695134162902832,
77
+ "eval_meteor": 0.5521,
78
+ "eval_runtime": 247.2387,
79
+ "eval_samples_per_second": 32.357,
80
+ "eval_steps_per_second": 0.506,
81
+ "step": 625000
82
+ },
83
+ {
84
+ "epoch": 5.0,
85
+ "grad_norm": 2.8743324279785156,
86
+ "learning_rate": 0.0,
87
+ "loss": 1.4946,
88
+ "step": 781250
89
+ },
90
+ {
91
+ "epoch": 5.0,
92
+ "eval_bleu": 27.9356,
93
+ "eval_gen_len": 15.548,
94
+ "eval_loss": 1.4556750059127808,
95
+ "eval_meteor": 0.5543,
96
+ "eval_runtime": 242.25,
97
+ "eval_samples_per_second": 33.024,
98
+ "eval_steps_per_second": 0.516,
99
+ "step": 781250
100
+ },
101
+ {
102
+ "epoch": 5.0,
103
+ "step": 781250,
104
+ "total_flos": 6.095033471871222e+17,
105
+ "train_loss": 1.58551646,
106
+ "train_runtime": 202290.4129,
107
+ "train_samples_per_second": 247.169,
108
+ "train_steps_per_second": 3.862
109
+ }
110
+ ],
111
+ "logging_steps": 500,
112
+ "max_steps": 781250,
113
+ "num_input_tokens_seen": 0,
114
+ "num_train_epochs": 5,
115
+ "save_steps": 500,
116
+ "stateful_callbacks": {
117
+ "TrainerControl": {
118
+ "args": {
119
+ "should_epoch_stop": false,
120
+ "should_evaluate": false,
121
+ "should_log": false,
122
+ "should_save": true,
123
+ "should_training_stop": true
124
+ },
125
+ "attributes": {}
126
+ }
127
+ },
128
+ "total_flos": 6.095033471871222e+17,
129
+ "train_batch_size": 64,
130
+ "trial_name": null,
131
+ "trial_params": null
132
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38bb9018f38096365eda4f6b6eefb3c91ad3010caeb8da767c33d5abd58aeb48
3
+ size 5368
vocab.json ADDED
The diff for this file is too large to render. See raw diff