Upload folder using huggingface_hub
Browse files- 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 +0 -0
- special_tokens_map.json +5 -0
- target.spm +0 -0
- tokenizer.json +0 -0
- tokenizer_config.json +12 -0
- vocab.json +0 -0
config.json
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "Helsinki-NLP/opus-mt-hu-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 |
+
62521
|
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": 62521,
|
26 |
+
"decoder_vocab_size": 62522,
|
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": 62521,
|
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": 62522
|
60 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bad_words_ids": [
|
3 |
+
[
|
4 |
+
62521
|
5 |
+
]
|
6 |
+
],
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"decoder_start_token_id": 62521,
|
9 |
+
"eos_token_id": 0,
|
10 |
+
"forced_eos_token_id": 0,
|
11 |
+
"max_length": 512,
|
12 |
+
"num_beams": 6,
|
13 |
+
"pad_token_id": 62521,
|
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:0b0b9744684faa01d62df9e028fe2bce880651f2a3a73f283526d810ec6ccfbd
|
3 |
+
size 230516761
|
onnx/decoder_model_merged.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c72b7dc31823470334257012bd0279b081a47ca7403a8c056a41848b7cf3d3f2
|
3 |
+
size 230752328
|
onnx/decoder_model_merged_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c8d9338328feecf6b21ca74a075a8fa6484c45b2fece2b96d2cf65c4cc7c31dd
|
3 |
+
size 58933640
|
onnx/decoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bec30ea95c7331e4fb33ee61a9812d2a4a234fbcd116a21a86b114aa8b7fb2c5
|
3 |
+
size 58562938
|
onnx/decoder_with_past_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2c18c6166328cac622f5c859db4d5b7e7463a4faf129c5e904b22838e5dc70a9
|
3 |
+
size 217866252
|
onnx/decoder_with_past_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:811f4d4e394f828bc15af2927ab14b6ed608cbc0ac547989094db19bdc3b7adc
|
3 |
+
size 55291474
|
onnx/encoder_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:09973bd780b38e4ddbd16a160179359f968d3b8787cb3491f511805d7f7cfce1
|
3 |
+
size 204861228
|
onnx/encoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f0dce998a12ce35d4880d5f6ac153807be88bb50691244e512e9605b2cabd6fe
|
3 |
+
size 51630494
|
quantize_config.json
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": true,
|
3 |
+
"reduce_range": true,
|
4 |
+
"per_model_config": {
|
5 |
+
"decoder_model": {
|
6 |
+
"op_types": [
|
7 |
+
"Add",
|
8 |
+
"Cast",
|
9 |
+
"Less",
|
10 |
+
"Squeeze",
|
11 |
+
"Equal",
|
12 |
+
"Unsqueeze",
|
13 |
+
"Expand",
|
14 |
+
"Range",
|
15 |
+
"Sigmoid",
|
16 |
+
"ReduceMean",
|
17 |
+
"Where",
|
18 |
+
"Shape",
|
19 |
+
"Mul",
|
20 |
+
"ConstantOfShape",
|
21 |
+
"Constant",
|
22 |
+
"Sub",
|
23 |
+
"Transpose",
|
24 |
+
"Concat",
|
25 |
+
"MatMul",
|
26 |
+
"Reshape",
|
27 |
+
"Pow",
|
28 |
+
"Softmax",
|
29 |
+
"Gather",
|
30 |
+
"Sqrt",
|
31 |
+
"Div",
|
32 |
+
"Slice"
|
33 |
+
],
|
34 |
+
"weight_type": "QInt8"
|
35 |
+
},
|
36 |
+
"encoder_model": {
|
37 |
+
"op_types": [
|
38 |
+
"Add",
|
39 |
+
"Cast",
|
40 |
+
"Equal",
|
41 |
+
"Unsqueeze",
|
42 |
+
"Expand",
|
43 |
+
"Range",
|
44 |
+
"Sigmoid",
|
45 |
+
"ReduceMean",
|
46 |
+
"Where",
|
47 |
+
"Shape",
|
48 |
+
"Mul",
|
49 |
+
"ConstantOfShape",
|
50 |
+
"Constant",
|
51 |
+
"Sub",
|
52 |
+
"Transpose",
|
53 |
+
"Concat",
|
54 |
+
"MatMul",
|
55 |
+
"Reshape",
|
56 |
+
"Pow",
|
57 |
+
"Softmax",
|
58 |
+
"Gather",
|
59 |
+
"Sqrt",
|
60 |
+
"Div"
|
61 |
+
],
|
62 |
+
"weight_type": "QInt8"
|
63 |
+
},
|
64 |
+
"decoder_model_merged": {
|
65 |
+
"op_types": [
|
66 |
+
"If",
|
67 |
+
"Add",
|
68 |
+
"Cast",
|
69 |
+
"Less",
|
70 |
+
"Squeeze",
|
71 |
+
"Equal",
|
72 |
+
"Unsqueeze",
|
73 |
+
"Expand",
|
74 |
+
"Range",
|
75 |
+
"Sigmoid",
|
76 |
+
"ReduceMean",
|
77 |
+
"Where",
|
78 |
+
"Shape",
|
79 |
+
"Mul",
|
80 |
+
"ConstantOfShape",
|
81 |
+
"Constant",
|
82 |
+
"Sub",
|
83 |
+
"Transpose",
|
84 |
+
"Concat",
|
85 |
+
"MatMul",
|
86 |
+
"Reshape",
|
87 |
+
"Pow",
|
88 |
+
"Softmax",
|
89 |
+
"Gather",
|
90 |
+
"Sqrt",
|
91 |
+
"Div",
|
92 |
+
"Slice"
|
93 |
+
],
|
94 |
+
"weight_type": "QInt8"
|
95 |
+
},
|
96 |
+
"decoder_with_past_model": {
|
97 |
+
"op_types": [
|
98 |
+
"Add",
|
99 |
+
"Cast",
|
100 |
+
"Equal",
|
101 |
+
"Unsqueeze",
|
102 |
+
"Expand",
|
103 |
+
"Range",
|
104 |
+
"Sigmoid",
|
105 |
+
"ReduceMean",
|
106 |
+
"Where",
|
107 |
+
"Shape",
|
108 |
+
"Mul",
|
109 |
+
"ConstantOfShape",
|
110 |
+
"Constant",
|
111 |
+
"Sub",
|
112 |
+
"Transpose",
|
113 |
+
"Concat",
|
114 |
+
"MatMul",
|
115 |
+
"Reshape",
|
116 |
+
"Pow",
|
117 |
+
"Softmax",
|
118 |
+
"Gather",
|
119 |
+
"Sqrt",
|
120 |
+
"Div"
|
121 |
+
],
|
122 |
+
"weight_type": "QInt8"
|
123 |
+
}
|
124 |
+
}
|
125 |
+
}
|
source.spm
ADDED
Binary file (850 kB). View file
|
|
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 (792 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": "hu",
|
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
|
|