Mellowpont
commited on
Commit
·
450ecec
1
Parent(s):
2bb0500
Mellowpont/modelfornametranslate
Browse files- README.md +58 -0
- config.json +48 -0
- generation_config.json +11 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- runs/Nov10_14-05-50_635c2182b73f/events.out.tfevents.1699625500.635c2182b73f.3300.0 +3 -0
- runs/Nov10_14-05-50_635c2182b73f/events.out.tfevents.1699628252.635c2182b73f.3300.1 +3 -0
- special_tokens_map.json +6 -0
- tokenizer_config.json +48 -0
- training_args.bin +3 -0
- vocab-src.json +0 -0
- vocab-tgt.json +0 -0
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: facebook/wmt19-en-ru
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- bleu
|
8 |
+
model-index:
|
9 |
+
- name: finetuned-model
|
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 |
+
# finetuned-model
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [facebook/wmt19-en-ru](https://huggingface.co/facebook/wmt19-en-ru) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 4.2608
|
21 |
+
- Bleu: 0.9992
|
22 |
+
- Bert Score: 0.5747
|
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: 32
|
43 |
+
- eval_batch_size: 64
|
44 |
+
- seed: 42
|
45 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
46 |
+
- lr_scheduler_type: linear
|
47 |
+
- num_epochs: 3
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
### Framework versions
|
54 |
+
|
55 |
+
- Transformers 4.35.0
|
56 |
+
- Pytorch 2.1.0+cu118
|
57 |
+
- Datasets 2.14.6
|
58 |
+
- Tokenizers 0.14.1
|
config.json
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/wmt19-en-ru",
|
3 |
+
"activation_dropout": 0.0,
|
4 |
+
"activation_function": "relu",
|
5 |
+
"architectures": [
|
6 |
+
"FSMTForConditionalGeneration"
|
7 |
+
],
|
8 |
+
"attention_dropout": 0.1,
|
9 |
+
"bos_token_id": 0,
|
10 |
+
"d_model": 1024,
|
11 |
+
"decoder": {
|
12 |
+
"bos_token_id": 2,
|
13 |
+
"model_type": "fsmt_decoder",
|
14 |
+
"vocab_size": 31232
|
15 |
+
},
|
16 |
+
"decoder_attention_heads": 16,
|
17 |
+
"decoder_ffn_dim": 4096,
|
18 |
+
"decoder_layerdrop": 0,
|
19 |
+
"decoder_layers": 6,
|
20 |
+
"decoder_start_token_id": 2,
|
21 |
+
"dropout": 0.2,
|
22 |
+
"encoder_attention_heads": 16,
|
23 |
+
"encoder_ffn_dim": 8192,
|
24 |
+
"encoder_layerdrop": 0,
|
25 |
+
"encoder_layers": 6,
|
26 |
+
"eos_token_id": 2,
|
27 |
+
"forced_eos_token_id": 2,
|
28 |
+
"init_std": 0.02,
|
29 |
+
"is_encoder_decoder": true,
|
30 |
+
"langs": [
|
31 |
+
"en",
|
32 |
+
"ru"
|
33 |
+
],
|
34 |
+
"length_penalty": 1.15,
|
35 |
+
"max_length": 200,
|
36 |
+
"max_position_embeddings": 1024,
|
37 |
+
"model_type": "fsmt",
|
38 |
+
"num_beams": 5,
|
39 |
+
"num_hidden_layers": 6,
|
40 |
+
"pad_token_id": 1,
|
41 |
+
"scale_embedding": true,
|
42 |
+
"src_vocab_size": 31640,
|
43 |
+
"tgt_vocab_size": 31232,
|
44 |
+
"tie_word_embeddings": false,
|
45 |
+
"torch_dtype": "float32",
|
46 |
+
"transformers_version": "4.35.0",
|
47 |
+
"use_cache": true
|
48 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 0,
|
3 |
+
"decoder_start_token_id": 2,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"forced_eos_token_id": 2,
|
6 |
+
"length_penalty": 1.15,
|
7 |
+
"max_length": 200,
|
8 |
+
"num_beams": 5,
|
9 |
+
"pad_token_id": 1,
|
10 |
+
"transformers_version": "4.35.0"
|
11 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7e62ab11859da4ef0c68732bb1c87d8613efc3043308eda8f072a674bb6223e7
|
3 |
+
size 1172813064
|
runs/Nov10_14-05-50_635c2182b73f/events.out.tfevents.1699625500.635c2182b73f.3300.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:48a72a5285358dfc21daafd01b0af1020d12b1d5185525b98148552166ffb488
|
3 |
+
size 5450
|
runs/Nov10_14-05-50_635c2182b73f/events.out.tfevents.1699628252.635c2182b73f.3300.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8ea33eaa75b4ec42c825e28ca1b085d99248aa00ef9757510fcc0634a4ed3ba6
|
3 |
+
size 454
|
special_tokens_map.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"pad_token": "<pad>",
|
4 |
+
"sep_token": "</s>",
|
5 |
+
"unk_token": "<unk>"
|
6 |
+
}
|
tokenizer_config.json
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "<pad>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "</s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"3": {
|
28 |
+
"content": "<unk>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
}
|
35 |
+
},
|
36 |
+
"bos_token": "<s>",
|
37 |
+
"clean_up_tokenization_spaces": true,
|
38 |
+
"do_lower_case": false,
|
39 |
+
"langs": [
|
40 |
+
"en",
|
41 |
+
"ru"
|
42 |
+
],
|
43 |
+
"model_max_length": 1024,
|
44 |
+
"pad_token": "<pad>",
|
45 |
+
"sep_token": "</s>",
|
46 |
+
"tokenizer_class": "FSMTTokenizer",
|
47 |
+
"unk_token": "<unk>"
|
48 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b04eb21bdd5579830bff016c53d18519903e1c7a797653d2838ee22dcd4e64d1
|
3 |
+
size 4728
|
vocab-src.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
vocab-tgt.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|