hf-transformers-bot
commited on
Commit
•
c9bbc40
1
Parent(s):
cb89d8f
Upload tiny models for FSMTModel
Browse files- config.json +108 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +6 -0
- tokenizer_config.json +15 -0
- vocab-src.json +0 -0
- vocab-tgt.json +0 -0
config.json
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_commit_hash": null,
|
3 |
+
"activation_dropout": 0.0,
|
4 |
+
"activation_function": "relu",
|
5 |
+
"architectures": [
|
6 |
+
"FSMTModel"
|
7 |
+
],
|
8 |
+
"attention_dropout": 0.1,
|
9 |
+
"bos_token_id": 0,
|
10 |
+
"d_model": 16,
|
11 |
+
"decoder": {
|
12 |
+
"_name_or_path": "",
|
13 |
+
"add_cross_attention": false,
|
14 |
+
"architectures": null,
|
15 |
+
"bad_words_ids": null,
|
16 |
+
"begin_suppress_tokens": null,
|
17 |
+
"bos_token_id": 2,
|
18 |
+
"chunk_size_feed_forward": 0,
|
19 |
+
"cross_attention_hidden_size": null,
|
20 |
+
"decoder_start_token_id": null,
|
21 |
+
"diversity_penalty": 0.0,
|
22 |
+
"do_sample": false,
|
23 |
+
"early_stopping": false,
|
24 |
+
"encoder_no_repeat_ngram_size": 0,
|
25 |
+
"eos_token_id": null,
|
26 |
+
"exponential_decay_length_penalty": null,
|
27 |
+
"finetuning_task": null,
|
28 |
+
"forced_bos_token_id": null,
|
29 |
+
"forced_eos_token_id": null,
|
30 |
+
"id2label": {
|
31 |
+
"0": "LABEL_0",
|
32 |
+
"1": "LABEL_1"
|
33 |
+
},
|
34 |
+
"is_decoder": false,
|
35 |
+
"is_encoder_decoder": false,
|
36 |
+
"label2id": {
|
37 |
+
"LABEL_0": 0,
|
38 |
+
"LABEL_1": 1
|
39 |
+
},
|
40 |
+
"length_penalty": 1.0,
|
41 |
+
"max_length": 20,
|
42 |
+
"min_length": 0,
|
43 |
+
"model_type": "fsmt_decoder",
|
44 |
+
"no_repeat_ngram_size": 0,
|
45 |
+
"num_beam_groups": 1,
|
46 |
+
"num_beams": 1,
|
47 |
+
"num_return_sequences": 1,
|
48 |
+
"output_attentions": false,
|
49 |
+
"output_hidden_states": false,
|
50 |
+
"output_scores": false,
|
51 |
+
"pad_token_id": null,
|
52 |
+
"prefix": null,
|
53 |
+
"problem_type": null,
|
54 |
+
"pruned_heads": {},
|
55 |
+
"remove_invalid_values": false,
|
56 |
+
"repetition_penalty": 1.0,
|
57 |
+
"return_dict": true,
|
58 |
+
"return_dict_in_generate": false,
|
59 |
+
"sep_token_id": null,
|
60 |
+
"suppress_tokens": null,
|
61 |
+
"task_specific_params": null,
|
62 |
+
"temperature": 1.0,
|
63 |
+
"tf_legacy_loss": false,
|
64 |
+
"tie_encoder_decoder": false,
|
65 |
+
"tie_word_embeddings": true,
|
66 |
+
"tokenizer_class": null,
|
67 |
+
"top_k": 50,
|
68 |
+
"top_p": 1.0,
|
69 |
+
"torch_dtype": null,
|
70 |
+
"torchscript": false,
|
71 |
+
"transformers_version": "4.28.0.dev0",
|
72 |
+
"typical_p": 1.0,
|
73 |
+
"use_bfloat16": false,
|
74 |
+
"vocab_size": 31232
|
75 |
+
},
|
76 |
+
"decoder_attention_heads": 4,
|
77 |
+
"decoder_ffn_dim": 4,
|
78 |
+
"decoder_layerdrop": 0.0,
|
79 |
+
"decoder_layers": 2,
|
80 |
+
"decoder_start_token_id": 2,
|
81 |
+
"dropout": 0.1,
|
82 |
+
"encoder_attention_heads": 4,
|
83 |
+
"encoder_ffn_dim": 4,
|
84 |
+
"encoder_layerdrop": 0.0,
|
85 |
+
"encoder_layers": 2,
|
86 |
+
"eos_token_id": 2,
|
87 |
+
"forced_eos_token_id": 2,
|
88 |
+
"init_std": 0.02,
|
89 |
+
"is_encoder_decoder": true,
|
90 |
+
"langs": [
|
91 |
+
"ru",
|
92 |
+
"en"
|
93 |
+
],
|
94 |
+
"max_length": 200,
|
95 |
+
"max_position_embeddings": 20,
|
96 |
+
"model_type": "fsmt",
|
97 |
+
"num_beams": 5,
|
98 |
+
"num_hidden_layers": 2,
|
99 |
+
"pad_token_id": 1,
|
100 |
+
"scale_embedding": true,
|
101 |
+
"src_vocab_size": 31640,
|
102 |
+
"tgt_vocab_size": 31232,
|
103 |
+
"tie_word_embeddings": false,
|
104 |
+
"torch_dtype": "float32",
|
105 |
+
"transformers_version": null,
|
106 |
+
"use_cache": true,
|
107 |
+
"vocab_size": 31640
|
108 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8dc59b3518a69ac953e14c64ac17c679d50ac1e58b7f84f4418636c0f6ce2565
|
3 |
+
size 4083961
|
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,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"clean_up_tokenization_spaces": true,
|
4 |
+
"do_lower_case": false,
|
5 |
+
"langs": [
|
6 |
+
"en",
|
7 |
+
"ru"
|
8 |
+
],
|
9 |
+
"model_max_length": 20,
|
10 |
+
"pad_token": "<pad>",
|
11 |
+
"sep_token": "</s>",
|
12 |
+
"special_tokens_map_file": null,
|
13 |
+
"tokenizer_class": "FSMTTokenizer",
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
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
|
|