Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- config.json +60 -0
- generation_config.json +16 -0
- onnx/decoder_model.onnx +3 -0
- onnx/decoder_model_merged.onnx +3 -0
- onnx/decoder_model_merged_quantized.onnx +3 -0
- onnx/decoder_model_quantized.onnx +3 -0
- onnx/decoder_with_past_model.onnx +3 -0
- onnx/decoder_with_past_model_quantized.onnx +3 -0
- onnx/encoder_model.onnx +3 -0
- onnx/encoder_model_quantized.onnx +3 -0
- quantize_config.json +125 -0
- source.spm +3 -0
- special_tokens_map.json +5 -0
- target.spm +0 -0
- tokenizer.json +0 -0
- tokenizer_config.json +12 -0
- vocab.json +0 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
source.spm filter=lfs diff=lfs merge=lfs -text
|
config.json
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "Helsinki-NLP/opus-mt-jap-en",
|
3 |
+
"_num_labels": 3,
|
4 |
+
"activation_dropout": 0.0,
|
5 |
+
"activation_function": "swish",
|
6 |
+
"add_bias_logits": false,
|
7 |
+
"add_final_layer_norm": false,
|
8 |
+
"architectures": [
|
9 |
+
"MarianMTModel"
|
10 |
+
],
|
11 |
+
"attention_dropout": 0.0,
|
12 |
+
"bad_words_ids": [
|
13 |
+
[
|
14 |
+
46275
|
15 |
+
]
|
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,
|
23 |
+
"decoder_layerdrop": 0.0,
|
24 |
+
"decoder_layers": 6,
|
25 |
+
"decoder_start_token_id": 46275,
|
26 |
+
"decoder_vocab_size": 46276,
|
27 |
+
"dropout": 0.1,
|
28 |
+
"encoder_attention_heads": 8,
|
29 |
+
"encoder_ffn_dim": 2048,
|
30 |
+
"encoder_layerdrop": 0.0,
|
31 |
+
"encoder_layers": 6,
|
32 |
+
"eos_token_id": 0,
|
33 |
+
"forced_eos_token_id": 0,
|
34 |
+
"id2label": {
|
35 |
+
"0": "LABEL_0",
|
36 |
+
"1": "LABEL_1",
|
37 |
+
"2": "LABEL_2"
|
38 |
+
},
|
39 |
+
"init_std": 0.02,
|
40 |
+
"is_encoder_decoder": true,
|
41 |
+
"label2id": {
|
42 |
+
"LABEL_0": 0,
|
43 |
+
"LABEL_1": 1,
|
44 |
+
"LABEL_2": 2
|
45 |
+
},
|
46 |
+
"max_length": 512,
|
47 |
+
"max_position_embeddings": 512,
|
48 |
+
"model_type": "marian",
|
49 |
+
"normalize_before": false,
|
50 |
+
"normalize_embedding": false,
|
51 |
+
"num_beams": 6,
|
52 |
+
"num_hidden_layers": 6,
|
53 |
+
"pad_token_id": 46275,
|
54 |
+
"scale_embedding": true,
|
55 |
+
"share_encoder_decoder_embeddings": true,
|
56 |
+
"static_position_embeddings": true,
|
57 |
+
"transformers_version": "4.34.0.dev0",
|
58 |
+
"use_cache": true,
|
59 |
+
"vocab_size": 46276
|
60 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bad_words_ids": [
|
3 |
+
[
|
4 |
+
46275
|
5 |
+
]
|
6 |
+
],
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"decoder_start_token_id": 46275,
|
9 |
+
"eos_token_id": 0,
|
10 |
+
"forced_eos_token_id": 0,
|
11 |
+
"max_length": 512,
|
12 |
+
"num_beams": 6,
|
13 |
+
"pad_token_id": 46275,
|
14 |
+
"renormalize_logits": true,
|
15 |
+
"transformers_version": "4.34.0.dev0"
|
16 |
+
}
|
onnx/decoder_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:60539970c1a924e74845b6f007cbf11fce432fc161423d306bc6e499de709886
|
3 |
+
size 197179969
|
onnx/decoder_model_merged.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f35129f638f609115ea0c046289793d7bdb0084d4182b60139591a133bc42628
|
3 |
+
size 197415536
|
onnx/decoder_model_merged_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:65895b7f5576bc71ddab2fb64b97c42ac21999d19c38a9b2dfa33317df701720
|
3 |
+
size 50550704
|
onnx/decoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c3ad25f9cb754d86532b83f78dda0b387f240c2c54d6b3a3bd0b61455f4704fb
|
3 |
+
size 50180002
|
onnx/decoder_with_past_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fa0f67706c688c071844a9e5ba255afa0e14d90bc605ef6e2e3eb4dfba069774
|
3 |
+
size 184529460
|
onnx/decoder_with_past_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:94e8ca5eb02298e0153d83b90bd758057029db8078bd0bccfef222d5edc91479
|
3 |
+
size 46908538
|
onnx/encoder_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:356c5f1f6b8fee1c1da238da53a652710f4d67d2b460cc125f13658a5733cf62
|
3 |
+
size 171589420
|
onnx/encoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cd2b38cf4665f1ebad54dc3628cf0e9186ee951171a988644fcc25ef2d74822c
|
3 |
+
size 43312542
|
quantize_config.json
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": true,
|
3 |
+
"reduce_range": true,
|
4 |
+
"per_model_config": {
|
5 |
+
"encoder_model": {
|
6 |
+
"op_types": [
|
7 |
+
"Concat",
|
8 |
+
"Equal",
|
9 |
+
"Unsqueeze",
|
10 |
+
"Sigmoid",
|
11 |
+
"Add",
|
12 |
+
"Where",
|
13 |
+
"Constant",
|
14 |
+
"Reshape",
|
15 |
+
"Pow",
|
16 |
+
"Expand",
|
17 |
+
"MatMul",
|
18 |
+
"Shape",
|
19 |
+
"Softmax",
|
20 |
+
"Sqrt",
|
21 |
+
"Cast",
|
22 |
+
"ConstantOfShape",
|
23 |
+
"Div",
|
24 |
+
"Gather",
|
25 |
+
"Transpose",
|
26 |
+
"Sub",
|
27 |
+
"ReduceMean",
|
28 |
+
"Mul",
|
29 |
+
"Range"
|
30 |
+
],
|
31 |
+
"weight_type": "QInt8"
|
32 |
+
},
|
33 |
+
"decoder_with_past_model": {
|
34 |
+
"op_types": [
|
35 |
+
"Concat",
|
36 |
+
"Equal",
|
37 |
+
"Unsqueeze",
|
38 |
+
"Sigmoid",
|
39 |
+
"Add",
|
40 |
+
"Where",
|
41 |
+
"Constant",
|
42 |
+
"Reshape",
|
43 |
+
"Pow",
|
44 |
+
"Expand",
|
45 |
+
"MatMul",
|
46 |
+
"Shape",
|
47 |
+
"Softmax",
|
48 |
+
"Sqrt",
|
49 |
+
"Cast",
|
50 |
+
"ConstantOfShape",
|
51 |
+
"Div",
|
52 |
+
"Gather",
|
53 |
+
"Transpose",
|
54 |
+
"Sub",
|
55 |
+
"ReduceMean",
|
56 |
+
"Mul",
|
57 |
+
"Range"
|
58 |
+
],
|
59 |
+
"weight_type": "QInt8"
|
60 |
+
},
|
61 |
+
"decoder_model_merged": {
|
62 |
+
"op_types": [
|
63 |
+
"Concat",
|
64 |
+
"Equal",
|
65 |
+
"Unsqueeze",
|
66 |
+
"If",
|
67 |
+
"Sigmoid",
|
68 |
+
"Add",
|
69 |
+
"Where",
|
70 |
+
"Squeeze",
|
71 |
+
"Constant",
|
72 |
+
"Reshape",
|
73 |
+
"Pow",
|
74 |
+
"Expand",
|
75 |
+
"Slice",
|
76 |
+
"MatMul",
|
77 |
+
"Shape",
|
78 |
+
"Softmax",
|
79 |
+
"Sqrt",
|
80 |
+
"Cast",
|
81 |
+
"ConstantOfShape",
|
82 |
+
"Div",
|
83 |
+
"Gather",
|
84 |
+
"Transpose",
|
85 |
+
"Less",
|
86 |
+
"Sub",
|
87 |
+
"ReduceMean",
|
88 |
+
"Mul",
|
89 |
+
"Range"
|
90 |
+
],
|
91 |
+
"weight_type": "QInt8"
|
92 |
+
},
|
93 |
+
"decoder_model": {
|
94 |
+
"op_types": [
|
95 |
+
"Concat",
|
96 |
+
"Equal",
|
97 |
+
"Unsqueeze",
|
98 |
+
"Sigmoid",
|
99 |
+
"Add",
|
100 |
+
"Where",
|
101 |
+
"Squeeze",
|
102 |
+
"Constant",
|
103 |
+
"Reshape",
|
104 |
+
"Pow",
|
105 |
+
"Expand",
|
106 |
+
"Slice",
|
107 |
+
"MatMul",
|
108 |
+
"Shape",
|
109 |
+
"Softmax",
|
110 |
+
"Sqrt",
|
111 |
+
"Cast",
|
112 |
+
"ConstantOfShape",
|
113 |
+
"Div",
|
114 |
+
"Gather",
|
115 |
+
"Transpose",
|
116 |
+
"Less",
|
117 |
+
"Sub",
|
118 |
+
"ReduceMean",
|
119 |
+
"Mul",
|
120 |
+
"Range"
|
121 |
+
],
|
122 |
+
"weight_type": "QInt8"
|
123 |
+
}
|
124 |
+
}
|
125 |
+
}
|
source.spm
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7d5ec21daca7dccb7a9df371b699def40ddd9d0c24cef855e44e31a39b96af55
|
3 |
+
size 1021944
|
special_tokens_map.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"eos_token": "</s>",
|
3 |
+
"pad_token": "<pad>",
|
4 |
+
"unk_token": "<unk>"
|
5 |
+
}
|
target.spm
ADDED
Binary file (509 kB). View file
|
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"clean_up_tokenization_spaces": true,
|
3 |
+
"eos_token": "</s>",
|
4 |
+
"model_max_length": 512,
|
5 |
+
"pad_token": "<pad>",
|
6 |
+
"separate_vocabs": false,
|
7 |
+
"source_lang": "jap",
|
8 |
+
"sp_model_kwargs": {},
|
9 |
+
"target_lang": "en",
|
10 |
+
"tokenizer_class": "MarianTokenizer",
|
11 |
+
"unk_token": "<unk>"
|
12 |
+
}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|