Upload FSMTForConditionalGeneration
Browse files- config.json +47 -0
- generation_config.json +11 -0
- pytorch_model.bin +3 -0
config.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "/Users/dew/Desktop/OpenThai/language-image-pretraining/outputs/fsmt_scb/SCB_1M+TBASE_en-th_moses-spm_130000-16000_v1.0_pytorch",
|
| 3 |
+
"activation_dropout": 0.0,
|
| 4 |
+
"activation_function": "relu",
|
| 5 |
+
"architectures": [
|
| 6 |
+
"FSMTForConditionalGeneration"
|
| 7 |
+
],
|
| 8 |
+
"attention_dropout": 0.0,
|
| 9 |
+
"bos_token_id": 0,
|
| 10 |
+
"d_model": 512,
|
| 11 |
+
"decoder": {
|
| 12 |
+
"bos_token_id": 2,
|
| 13 |
+
"model_type": "fsmt_decoder",
|
| 14 |
+
"vocab_size": 16000
|
| 15 |
+
},
|
| 16 |
+
"decoder_attention_heads": 8,
|
| 17 |
+
"decoder_ffn_dim": 2048,
|
| 18 |
+
"decoder_layerdrop": 0,
|
| 19 |
+
"decoder_layers": 6,
|
| 20 |
+
"decoder_start_token_id": 2,
|
| 21 |
+
"dropout": 0.3,
|
| 22 |
+
"encoder_attention_heads": 8,
|
| 23 |
+
"encoder_ffn_dim": 2048,
|
| 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 |
+
"th"
|
| 33 |
+
],
|
| 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": 130000,
|
| 42 |
+
"tgt_vocab_size": 16000,
|
| 43 |
+
"tie_word_embeddings": false,
|
| 44 |
+
"torch_dtype": "float32",
|
| 45 |
+
"transformers_version": "4.32.0",
|
| 46 |
+
"use_cache": true
|
| 47 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"decoder_start_token_id": 2,
|
| 5 |
+
"eos_token_id": 2,
|
| 6 |
+
"forced_eos_token_id": 2,
|
| 7 |
+
"max_length": 200,
|
| 8 |
+
"num_beams": 5,
|
| 9 |
+
"pad_token_id": 1,
|
| 10 |
+
"transformers_version": "4.32.0"
|
| 11 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dbe4e0a87c8aaf52b3557c24ac59c693ac25b3449a466e7a592bfb60f07443bc
|
| 3 |
+
size 479847885
|