Upload FSMTForConditionalGeneration
Browse files- .gitattributes +1 -0
- README.md +1 -1
- config.json +32 -22
- generation_config.json +1 -1
- model.safetensors +3 -0
.gitattributes
CHANGED
|
@@ -6,3 +6,4 @@
|
|
| 6 |
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 8 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 6 |
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 8 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
model.safetensors filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
language:
|
| 3 |
- en
|
| 4 |
- ru
|
| 5 |
tags:
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
- en
|
| 4 |
- ru
|
| 5 |
tags:
|
config.json
CHANGED
|
@@ -1,37 +1,47 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"FSMTForConditionalGeneration"
|
| 4 |
],
|
| 5 |
-
"model_type": "fsmt",
|
| 6 |
-
"activation_dropout": 0.0,
|
| 7 |
-
"activation_function": "relu",
|
| 8 |
"attention_dropout": 0.1,
|
|
|
|
| 9 |
"d_model": 1024,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
"dropout": 0.2,
|
| 11 |
-
"init_std": 0.02,
|
| 12 |
-
"max_position_embeddings": 1024,
|
| 13 |
-
"num_hidden_layers": 6,
|
| 14 |
-
"src_vocab_size": 31640,
|
| 15 |
-
"tgt_vocab_size": 31232,
|
| 16 |
-
"langs": [
|
| 17 |
-
"en",
|
| 18 |
-
"ru"
|
| 19 |
-
],
|
| 20 |
"encoder_attention_heads": 16,
|
| 21 |
"encoder_ffn_dim": 8192,
|
| 22 |
"encoder_layerdrop": 0,
|
| 23 |
"encoder_layers": 6,
|
| 24 |
-
"decoder_attention_heads": 16,
|
| 25 |
-
"decoder_ffn_dim": 4096,
|
| 26 |
-
"decoder_layerdrop": 0,
|
| 27 |
-
"decoder_layers": 6,
|
| 28 |
-
"bos_token_id": 0,
|
| 29 |
-
"pad_token_id": 1,
|
| 30 |
"eos_token_id": 2,
|
|
|
|
|
|
|
| 31 |
"is_encoder_decoder": true,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
"scale_embedding": true,
|
|
|
|
|
|
|
| 33 |
"tie_word_embeddings": false,
|
| 34 |
-
"
|
| 35 |
-
"
|
| 36 |
-
"
|
| 37 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"activation_dropout": 0.0,
|
| 3 |
+
"activation_function": "relu",
|
| 4 |
"architectures": [
|
| 5 |
"FSMTForConditionalGeneration"
|
| 6 |
],
|
|
|
|
|
|
|
|
|
|
| 7 |
"attention_dropout": 0.1,
|
| 8 |
+
"bos_token_id": 0,
|
| 9 |
"d_model": 1024,
|
| 10 |
+
"decoder": {
|
| 11 |
+
"bos_token_id": 2,
|
| 12 |
+
"model_type": "fsmt_decoder",
|
| 13 |
+
"vocab_size": 31232
|
| 14 |
+
},
|
| 15 |
+
"decoder_attention_heads": 16,
|
| 16 |
+
"decoder_ffn_dim": 4096,
|
| 17 |
+
"decoder_layerdrop": 0,
|
| 18 |
+
"decoder_layers": 6,
|
| 19 |
+
"decoder_start_token_id": 2,
|
| 20 |
"dropout": 0.2,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
"encoder_attention_heads": 16,
|
| 22 |
"encoder_ffn_dim": 8192,
|
| 23 |
"encoder_layerdrop": 0,
|
| 24 |
"encoder_layers": 6,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
"eos_token_id": 2,
|
| 26 |
+
"forced_eos_token_id": 2,
|
| 27 |
+
"init_std": 0.02,
|
| 28 |
"is_encoder_decoder": true,
|
| 29 |
+
"langs": [
|
| 30 |
+
"en",
|
| 31 |
+
"ru"
|
| 32 |
+
],
|
| 33 |
+
"length_penalty": null,
|
| 34 |
+
"max_length": 200,
|
| 35 |
+
"max_position_embeddings": 1024,
|
| 36 |
+
"model_type": "fsmt",
|
| 37 |
+
"num_beams": 5,
|
| 38 |
+
"num_hidden_layers": 6,
|
| 39 |
+
"pad_token_id": 1,
|
| 40 |
"scale_embedding": true,
|
| 41 |
+
"src_vocab_size": 31640,
|
| 42 |
+
"tgt_vocab_size": 31232,
|
| 43 |
"tie_word_embeddings": false,
|
| 44 |
+
"torch_dtype": "float32",
|
| 45 |
+
"transformers_version": "4.53.0.dev0",
|
| 46 |
+
"use_cache": true
|
| 47 |
+
}
|
generation_config.json
CHANGED
|
@@ -8,5 +8,5 @@
|
|
| 8 |
"max_length": 200,
|
| 9 |
"num_beams": 5,
|
| 10 |
"pad_token_id": 1,
|
| 11 |
-
"transformers_version": "4.
|
| 12 |
}
|
|
|
|
| 8 |
"max_length": 200,
|
| 9 |
"num_beams": 5,
|
| 10 |
"pad_token_id": 1,
|
| 11 |
+
"transformers_version": "4.53.0.dev0"
|
| 12 |
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6520cd7bef8837a0fd69c5f1f1a6805ef03d2eec3919370011b4c26244f999af
|
| 3 |
+
size 1172813064
|