Upload model MarianMT - ver 4
Browse files- MarianMT_3/config.json +56 -0
- MarianMT_3/generation_config.json +16 -0
- MarianMT_3/model.safetensors +3 -0
- MarianMT_3/optimizer.pt +3 -0
- MarianMT_3/rng_state.pth +3 -0
- MarianMT_3/scheduler.pt +3 -0
- MarianMT_3/trainer_state.json +142 -0
- MarianMT_3/training_args.bin +3 -0
MarianMT_3/config.json
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "Helsinki-NLP/opus-mt-en-vi",
|
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": 53684,
|
20 |
+
"decoder_vocab_size": 53685,
|
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": 53685,
|
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": 53684,
|
49 |
+
"scale_embedding": true,
|
50 |
+
"share_encoder_decoder_embeddings": true,
|
51 |
+
"static_position_embeddings": true,
|
52 |
+
"torch_dtype": "float32",
|
53 |
+
"transformers_version": "4.46.3",
|
54 |
+
"use_cache": true,
|
55 |
+
"vocab_size": 53685
|
56 |
+
}
|
MarianMT_3/generation_config.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bad_words_ids": [
|
3 |
+
[
|
4 |
+
53684
|
5 |
+
]
|
6 |
+
],
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"decoder_start_token_id": 53684,
|
9 |
+
"eos_token_id": 0,
|
10 |
+
"forced_eos_token_id": 0,
|
11 |
+
"max_length": 512,
|
12 |
+
"num_beams": 4,
|
13 |
+
"pad_token_id": 53684,
|
14 |
+
"renormalize_logits": true,
|
15 |
+
"transformers_version": "4.46.3"
|
16 |
+
}
|
MarianMT_3/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e2c583e8b6dd0e13bf11a6ed122e6f68175ff9ad2931bf1ef5925da294b7200e
|
3 |
+
size 286744660
|
MarianMT_3/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:55f54bee4632ed623e327b2b4d89c766c10b0a30785c70270314e94efa62e206
|
3 |
+
size 573213242
|
MarianMT_3/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ed47d64ad86078c1494ceaa13291d9f6256431656e0061a11844915b94b0563f
|
3 |
+
size 14244
|
MarianMT_3/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:36ee45910ea7238e14e1256c5974992a79e3cb8210c5301ab4ea75fb1738d364
|
3 |
+
size 1064
|
MarianMT_3/trainer_state.json
ADDED
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 1.4858289957046509,
|
3 |
+
"best_model_checkpoint": "./results/checkpoint-6250",
|
4 |
+
"epoch": 2.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 6250,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.16,
|
13 |
+
"grad_norm": 3.800455331802368,
|
14 |
+
"learning_rate": 4.92e-05,
|
15 |
+
"loss": 1.8865,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.32,
|
20 |
+
"grad_norm": 3.2938010692596436,
|
21 |
+
"learning_rate": 4.8400000000000004e-05,
|
22 |
+
"loss": 1.8249,
|
23 |
+
"step": 1000
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.48,
|
27 |
+
"grad_norm": 3.251399517059326,
|
28 |
+
"learning_rate": 4.76e-05,
|
29 |
+
"loss": 1.7717,
|
30 |
+
"step": 1500
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.64,
|
34 |
+
"grad_norm": 3.223798990249634,
|
35 |
+
"learning_rate": 4.6800000000000006e-05,
|
36 |
+
"loss": 1.7477,
|
37 |
+
"step": 2000
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.8,
|
41 |
+
"grad_norm": 3.1936862468719482,
|
42 |
+
"learning_rate": 4.600000000000001e-05,
|
43 |
+
"loss": 1.7458,
|
44 |
+
"step": 2500
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.96,
|
48 |
+
"grad_norm": 3.4300343990325928,
|
49 |
+
"learning_rate": 4.52e-05,
|
50 |
+
"loss": 1.7226,
|
51 |
+
"step": 3000
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 1.0,
|
55 |
+
"eval_loss": 1.5059889554977417,
|
56 |
+
"eval_runtime": 13.9307,
|
57 |
+
"eval_samples_per_second": 335.876,
|
58 |
+
"eval_steps_per_second": 10.552,
|
59 |
+
"step": 3125
|
60 |
+
},
|
61 |
+
{
|
62 |
+
"epoch": 1.12,
|
63 |
+
"grad_norm": 3.277369737625122,
|
64 |
+
"learning_rate": 4.44e-05,
|
65 |
+
"loss": 1.5592,
|
66 |
+
"step": 3500
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"epoch": 1.28,
|
70 |
+
"grad_norm": 2.9364540576934814,
|
71 |
+
"learning_rate": 4.36e-05,
|
72 |
+
"loss": 1.5109,
|
73 |
+
"step": 4000
|
74 |
+
},
|
75 |
+
{
|
76 |
+
"epoch": 1.44,
|
77 |
+
"grad_norm": 2.9026784896850586,
|
78 |
+
"learning_rate": 4.2800000000000004e-05,
|
79 |
+
"loss": 1.5117,
|
80 |
+
"step": 4500
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"epoch": 1.6,
|
84 |
+
"grad_norm": 3.0175607204437256,
|
85 |
+
"learning_rate": 4.2e-05,
|
86 |
+
"loss": 1.5143,
|
87 |
+
"step": 5000
|
88 |
+
},
|
89 |
+
{
|
90 |
+
"epoch": 1.76,
|
91 |
+
"grad_norm": 3.0337491035461426,
|
92 |
+
"learning_rate": 4.12e-05,
|
93 |
+
"loss": 1.5219,
|
94 |
+
"step": 5500
|
95 |
+
},
|
96 |
+
{
|
97 |
+
"epoch": 1.92,
|
98 |
+
"grad_norm": 2.8166635036468506,
|
99 |
+
"learning_rate": 4.0400000000000006e-05,
|
100 |
+
"loss": 1.5017,
|
101 |
+
"step": 6000
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"epoch": 2.0,
|
105 |
+
"eval_loss": 1.4858289957046509,
|
106 |
+
"eval_runtime": 14.2343,
|
107 |
+
"eval_samples_per_second": 328.713,
|
108 |
+
"eval_steps_per_second": 10.327,
|
109 |
+
"step": 6250
|
110 |
+
}
|
111 |
+
],
|
112 |
+
"logging_steps": 500,
|
113 |
+
"max_steps": 31250,
|
114 |
+
"num_input_tokens_seen": 0,
|
115 |
+
"num_train_epochs": 10,
|
116 |
+
"save_steps": 500,
|
117 |
+
"stateful_callbacks": {
|
118 |
+
"EarlyStoppingCallback": {
|
119 |
+
"args": {
|
120 |
+
"early_stopping_patience": 2,
|
121 |
+
"early_stopping_threshold": 0.0
|
122 |
+
},
|
123 |
+
"attributes": {
|
124 |
+
"early_stopping_patience_counter": 0
|
125 |
+
}
|
126 |
+
},
|
127 |
+
"TrainerControl": {
|
128 |
+
"args": {
|
129 |
+
"should_epoch_stop": false,
|
130 |
+
"should_evaluate": false,
|
131 |
+
"should_log": false,
|
132 |
+
"should_save": true,
|
133 |
+
"should_training_stop": false
|
134 |
+
},
|
135 |
+
"attributes": {}
|
136 |
+
}
|
137 |
+
},
|
138 |
+
"total_flos": 3389836492800000.0,
|
139 |
+
"train_batch_size": 32,
|
140 |
+
"trial_name": null,
|
141 |
+
"trial_params": null
|
142 |
+
}
|
MarianMT_3/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c560ad2d03f1b7128a182181a6042117448b304f7c1f01512264b775d5199afa
|
3 |
+
size 5432
|