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-de-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 |
+
58100
|
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": 58100,
|
26 |
+
"decoder_vocab_size": 58101,
|
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": 4,
|
52 |
+
"num_hidden_layers": 6,
|
53 |
+
"pad_token_id": 58100,
|
54 |
+
"scale_embedding": true,
|
55 |
+
"share_encoder_decoder_embeddings": true,
|
56 |
+
"static_position_embeddings": true,
|
57 |
+
"transformers_version": "4.32.0.dev0",
|
58 |
+
"use_cache": true,
|
59 |
+
"vocab_size": 58101
|
60 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bad_words_ids": [
|
4 |
+
[
|
5 |
+
58100
|
6 |
+
]
|
7 |
+
],
|
8 |
+
"bos_token_id": 0,
|
9 |
+
"decoder_start_token_id": 58100,
|
10 |
+
"eos_token_id": 0,
|
11 |
+
"forced_eos_token_id": 0,
|
12 |
+
"max_length": 512,
|
13 |
+
"num_beams": 4,
|
14 |
+
"pad_token_id": 58100,
|
15 |
+
"transformers_version": "4.32.0.dev0"
|
16 |
+
}
|
onnx/decoder_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:426566f247bed99401fbf8260a35f61bf6bfb36ac3aea831919cdf724752f61f
|
3 |
+
size 340435660
|
onnx/decoder_model_merged.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b7a1d3d99e78835f4ff68d1ce559f190ef5b538eb5055e77690aac34e587ff3e
|
3 |
+
size 340671142
|
onnx/decoder_model_merged_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a8faafdd7532118635dc143ce4bdbfd2f56384fb35a8c13699c84b7e5abd5595
|
3 |
+
size 86692033
|
onnx/decoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cef6a30562f0c89095772d02a9b5e273fcae200512c9e8c25bdb60eaf00369de
|
3 |
+
size 86320677
|
onnx/decoder_with_past_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4f13568ec0e52fc5ab603602061da9cfcf147912f7936327581ea3d5927b9ac1
|
3 |
+
size 327785151
|
onnx/decoder_with_past_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:413945019dad89cda9f03564880ed6fce2efe8209db95792a025b48c4248d3c6
|
3 |
+
size 83049213
|
onnx/encoder_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:53dfa5f4acb6a933396191376b9b7ef4e27c5b7f0d344de8af44444f34b0c2d1
|
3 |
+
size 195807020
|
onnx/encoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4cedda8f8c89b72a42b3c6cd1e7a27f2de24457093e3bf80cb3e46829641fcd8
|
3 |
+
size 49366942
|
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 |
+
"ReduceMean",
|
8 |
+
"Reshape",
|
9 |
+
"Div",
|
10 |
+
"Add",
|
11 |
+
"Sub",
|
12 |
+
"MatMul",
|
13 |
+
"Constant",
|
14 |
+
"Mul",
|
15 |
+
"Range",
|
16 |
+
"Gather",
|
17 |
+
"Expand",
|
18 |
+
"Sigmoid",
|
19 |
+
"ConstantOfShape",
|
20 |
+
"Equal",
|
21 |
+
"Sqrt",
|
22 |
+
"Cast",
|
23 |
+
"Where",
|
24 |
+
"Unsqueeze",
|
25 |
+
"Softmax",
|
26 |
+
"Pow",
|
27 |
+
"Transpose",
|
28 |
+
"Concat",
|
29 |
+
"Shape"
|
30 |
+
],
|
31 |
+
"weight_type": "QInt8"
|
32 |
+
},
|
33 |
+
"decoder_with_past_model": {
|
34 |
+
"op_types": [
|
35 |
+
"ReduceMean",
|
36 |
+
"Reshape",
|
37 |
+
"Div",
|
38 |
+
"Sub",
|
39 |
+
"Add",
|
40 |
+
"MatMul",
|
41 |
+
"Constant",
|
42 |
+
"Mul",
|
43 |
+
"Range",
|
44 |
+
"Gather",
|
45 |
+
"Expand",
|
46 |
+
"Sigmoid",
|
47 |
+
"ConstantOfShape",
|
48 |
+
"Equal",
|
49 |
+
"Sqrt",
|
50 |
+
"Cast",
|
51 |
+
"Where",
|
52 |
+
"Unsqueeze",
|
53 |
+
"Softmax",
|
54 |
+
"Pow",
|
55 |
+
"Transpose",
|
56 |
+
"Concat",
|
57 |
+
"Shape"
|
58 |
+
],
|
59 |
+
"weight_type": "QInt8"
|
60 |
+
},
|
61 |
+
"decoder_model": {
|
62 |
+
"op_types": [
|
63 |
+
"ReduceMean",
|
64 |
+
"Reshape",
|
65 |
+
"Div",
|
66 |
+
"Slice",
|
67 |
+
"Add",
|
68 |
+
"Sub",
|
69 |
+
"MatMul",
|
70 |
+
"Constant",
|
71 |
+
"Mul",
|
72 |
+
"Range",
|
73 |
+
"Less",
|
74 |
+
"Gather",
|
75 |
+
"Expand",
|
76 |
+
"Sigmoid",
|
77 |
+
"ConstantOfShape",
|
78 |
+
"Equal",
|
79 |
+
"Sqrt",
|
80 |
+
"Cast",
|
81 |
+
"Where",
|
82 |
+
"Unsqueeze",
|
83 |
+
"Softmax",
|
84 |
+
"Pow",
|
85 |
+
"Transpose",
|
86 |
+
"Concat",
|
87 |
+
"Shape",
|
88 |
+
"Squeeze"
|
89 |
+
],
|
90 |
+
"weight_type": "QInt8"
|
91 |
+
},
|
92 |
+
"decoder_model_merged": {
|
93 |
+
"op_types": [
|
94 |
+
"ReduceMean",
|
95 |
+
"Reshape",
|
96 |
+
"Div",
|
97 |
+
"Slice",
|
98 |
+
"Add",
|
99 |
+
"Sub",
|
100 |
+
"MatMul",
|
101 |
+
"Constant",
|
102 |
+
"Mul",
|
103 |
+
"Range",
|
104 |
+
"Less",
|
105 |
+
"Gather",
|
106 |
+
"Expand",
|
107 |
+
"Sigmoid",
|
108 |
+
"ConstantOfShape",
|
109 |
+
"Equal",
|
110 |
+
"Sqrt",
|
111 |
+
"Cast",
|
112 |
+
"Where",
|
113 |
+
"If",
|
114 |
+
"Unsqueeze",
|
115 |
+
"Softmax",
|
116 |
+
"Pow",
|
117 |
+
"Transpose",
|
118 |
+
"Concat",
|
119 |
+
"Shape",
|
120 |
+
"Squeeze"
|
121 |
+
],
|
122 |
+
"weight_type": "QInt8"
|
123 |
+
}
|
124 |
+
}
|
125 |
+
}
|
source.spm
ADDED
Binary file (797 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 (768 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": "de",
|
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
|
|