first execution
Browse files- .gitattributes +1 -0
- README.md +53 -23
- config.json +7 -1
- pytorch_model.bin +2 -2
- runs/Feb22_18-58-37_22d008391efc/1645557026.79138/events.out.tfevents.1645557026.22d008391efc.125.1 +3 -0
- runs/Feb22_18-58-37_22d008391efc/events.out.tfevents.1645556822.22d008391efc.125.0 +3 -0
- special_tokens_map.json +1 -0
- tokenizer_config.json +1 -1
- training_args.bin +3 -0
- vocab.json +0 -0
.gitattributes
CHANGED
@@ -25,3 +25,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
25 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
25 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.spm filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,32 +1,62 @@
|
|
1 |
---
|
2 |
-
tags:
|
3 |
-
- translation
|
4 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
---
|
6 |
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
-
|
10 |
-
* target languages: ru
|
11 |
-
* OPUS readme: [en-ru](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/en-ru/README.md)
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
* test set scores: [opus-2020-02-11.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/en-ru/opus-2020-02-11.eval.txt)
|
19 |
|
20 |
-
## Benchmarks
|
21 |
|
22 |
-
|
23 |
-
|-----------------------|-------|-------|
|
24 |
-
| newstest2012.en.ru | 31.1 | 0.581 |
|
25 |
-
| newstest2013.en.ru | 23.5 | 0.513 |
|
26 |
-
| newstest2015-enru.en.ru | 27.5 | 0.564 |
|
27 |
-
| newstest2016-enru.en.ru | 26.4 | 0.548 |
|
28 |
-
| newstest2017-enru.en.ru | 29.1 | 0.572 |
|
29 |
-
| newstest2018-enru.en.ru | 25.4 | 0.554 |
|
30 |
-
| newstest2019-enru.en.ru | 27.1 | 0.533 |
|
31 |
-
| Tatoeba.en.ru | 48.4 | 0.669 |
|
32 |
|
|
|
|
|
|
|
|
|
|
1 |
---
|
|
|
|
|
2 |
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- bleu
|
7 |
+
model-index:
|
8 |
+
- name: opus-mt-en-ru-finetuned
|
9 |
+
results: []
|
10 |
---
|
11 |
|
12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
13 |
+
should probably proofread and complete it, then remove this comment. -->
|
14 |
+
|
15 |
+
# opus-mt-en-ru-finetuned
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [kazandaev/opus-mt-en-ru-finetuned](https://huggingface.co/kazandaev/opus-mt-en-ru-finetuned) on the None dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 1.0442
|
20 |
+
- Bleu: 32.1889
|
21 |
+
- Gen Len: 29.6331
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Intended uses & limitations
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training and evaluation data
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training procedure
|
36 |
+
|
37 |
+
### Training hyperparameters
|
38 |
+
|
39 |
+
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 0.0001
|
41 |
+
- train_batch_size: 49
|
42 |
+
- eval_batch_size: 24
|
43 |
+
- seed: 42
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: linear
|
46 |
+
- num_epochs: 3
|
47 |
|
48 |
+
### Training results
|
|
|
|
|
49 |
|
50 |
+
| Training Loss | Epoch | Step | Validation Loss | Bleu | Gen Len |
|
51 |
+
|:-------------:|:-----:|:------:|:---------------:|:-------:|:-------:|
|
52 |
+
| 1.346 | 1.0 | 35147 | 1.2394 | 28.3953 | 29.3971 |
|
53 |
+
| 1.2061 | 2.0 | 70294 | 1.1150 | 30.8643 | 29.6302 |
|
54 |
+
| 1.0891 | 3.0 | 105441 | 1.0442 | 32.1889 | 29.6331 |
|
|
|
55 |
|
|
|
56 |
|
57 |
+
### Framework versions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
|
59 |
+
- Transformers 4.16.2
|
60 |
+
- Pytorch 1.10.0+cu111
|
61 |
+
- Datasets 1.18.3
|
62 |
+
- Tokenizers 0.11.0
|
config.json
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
{
|
|
|
2 |
"_num_labels": 3,
|
3 |
"activation_dropout": 0.0,
|
4 |
"activation_function": "swish",
|
@@ -15,6 +16,7 @@
|
|
15 |
],
|
16 |
"bos_token_id": 0,
|
17 |
"classif_dropout": 0.0,
|
|
|
18 |
"d_model": 512,
|
19 |
"decoder_attention_heads": 8,
|
20 |
"decoder_ffn_dim": 2048,
|
@@ -27,6 +29,7 @@
|
|
27 |
"encoder_layerdrop": 0.0,
|
28 |
"encoder_layers": 6,
|
29 |
"eos_token_id": 0,
|
|
|
30 |
"id2label": {
|
31 |
"0": "LABEL_0",
|
32 |
"1": "LABEL_1",
|
@@ -49,5 +52,8 @@
|
|
49 |
"pad_token_id": 62517,
|
50 |
"scale_embedding": true,
|
51 |
"static_position_embeddings": true,
|
|
|
|
|
|
|
52 |
"vocab_size": 62518
|
53 |
-
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "kazandaev/opus-mt-en-ru-finetuned",
|
3 |
"_num_labels": 3,
|
4 |
"activation_dropout": 0.0,
|
5 |
"activation_function": "swish",
|
|
|
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,
|
|
|
29 |
"encoder_layerdrop": 0.0,
|
30 |
"encoder_layers": 6,
|
31 |
"eos_token_id": 0,
|
32 |
+
"forced_eos_token_id": 0,
|
33 |
"id2label": {
|
34 |
"0": "LABEL_0",
|
35 |
"1": "LABEL_1",
|
|
|
52 |
"pad_token_id": 62517,
|
53 |
"scale_embedding": true,
|
54 |
"static_position_embeddings": true,
|
55 |
+
"torch_dtype": "float32",
|
56 |
+
"transformers_version": "4.16.2",
|
57 |
+
"use_cache": true,
|
58 |
"vocab_size": 62518
|
59 |
+
}
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:04a34a88460093340bc0fe832b0551b0a9076df5c71a5305486cfa629b07dc78
|
3 |
+
size 304935301
|
runs/Feb22_18-58-37_22d008391efc/1645557026.79138/events.out.tfevents.1645557026.22d008391efc.125.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:224edd778c06ded1fea8a3fb5933a516a3ed7187173aa3eb7dfbc4fac3bb5966
|
3 |
+
size 5040
|
runs/Feb22_18-58-37_22d008391efc/events.out.tfevents.1645556822.22d008391efc.125.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c06040d2aebac088f396ba016775c518d58e93d87609f2135fba7b2445bb52a9
|
3 |
+
size 39427
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"eos_token": "</s>", "unk_token": "<unk>", "pad_token": "<pad>"}
|
tokenizer_config.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"target_lang": "ru", "
|
|
|
1 |
+
{"source_lang": "en", "target_lang": "ru", "unk_token": "<unk>", "eos_token": "</s>", "pad_token": "<pad>", "model_max_length": 512, "sp_model_kwargs": {}, "special_tokens_map_file": null, "tokenizer_file": null, "name_or_path": "kazandaev/opus-mt-en-ru-finetuned", "tokenizer_class": "MarianTokenizer"}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5a9ba672e106773190f00ca940461221e5097283d86cb81cb1da57b567e78b65
|
3 |
+
size 3183
|
vocab.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|