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-nl-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 |
+
67027
|
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": 67027,
|
26 |
+
"decoder_vocab_size": 67028,
|
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": 67027,
|
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": 67028
|
60 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bad_words_ids": [
|
4 |
+
[
|
5 |
+
67027
|
6 |
+
]
|
7 |
+
],
|
8 |
+
"bos_token_id": 0,
|
9 |
+
"decoder_start_token_id": 67027,
|
10 |
+
"eos_token_id": 0,
|
11 |
+
"forced_eos_token_id": 0,
|
12 |
+
"max_length": 512,
|
13 |
+
"num_beams": 6,
|
14 |
+
"pad_token_id": 67027,
|
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:01286a6ed817b50f5c4e56b4a2f8856ee61d2bfb793926f6de712b37dd595001
|
3 |
+
size 377036360
|
onnx/decoder_model_merged.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a36561d53736d762ea22c6037472dfa25a0d1043ec5298adde04dabc6c95de4c
|
3 |
+
size 377271842
|
onnx/decoder_model_merged_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b5b9ea9e4fa20a2acc6606f46d98eb2da2b2fe200e69247d0c0c36d98efbbc22
|
3 |
+
size 95913624
|
onnx/decoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6cda797a25a777e5c997f50a78504bc73bec56183de9dc69f3a00179c56c715c
|
3 |
+
size 95542268
|
onnx/decoder_with_past_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6644cf82e92b9344e80401290a8835ad0fe8c50f5c02b45f0bea462f4614095c
|
3 |
+
size 364385851
|
onnx/decoder_with_past_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3030cd58049b8b111bd7a929d9b4d58ed9e3547822f46220c18af62aefba0125
|
3 |
+
size 92270804
|
onnx/encoder_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a52bc3d8940c1304d616ecd9b04a6440aa5ed22e9196ece10f4bdd1046899207
|
3 |
+
size 214089516
|
onnx/encoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7b8b1e9071bed8e2394e3bd2f65b952700b1dd1293d087141134c8bac018653b
|
3 |
+
size 53937566
|
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 |
+
"Pow",
|
8 |
+
"Expand",
|
9 |
+
"Sub",
|
10 |
+
"Sigmoid",
|
11 |
+
"Softmax",
|
12 |
+
"Constant",
|
13 |
+
"ReduceMean",
|
14 |
+
"Transpose",
|
15 |
+
"ConstantOfShape",
|
16 |
+
"Unsqueeze",
|
17 |
+
"Reshape",
|
18 |
+
"Range",
|
19 |
+
"Concat",
|
20 |
+
"MatMul",
|
21 |
+
"Cast",
|
22 |
+
"Equal",
|
23 |
+
"Sqrt",
|
24 |
+
"Div",
|
25 |
+
"Gather",
|
26 |
+
"Mul",
|
27 |
+
"Add",
|
28 |
+
"Where",
|
29 |
+
"Shape"
|
30 |
+
],
|
31 |
+
"weight_type": "QInt8"
|
32 |
+
},
|
33 |
+
"decoder_with_past_model": {
|
34 |
+
"op_types": [
|
35 |
+
"Pow",
|
36 |
+
"Expand",
|
37 |
+
"Sub",
|
38 |
+
"Sigmoid",
|
39 |
+
"Softmax",
|
40 |
+
"Constant",
|
41 |
+
"ReduceMean",
|
42 |
+
"Transpose",
|
43 |
+
"ConstantOfShape",
|
44 |
+
"Unsqueeze",
|
45 |
+
"Reshape",
|
46 |
+
"Range",
|
47 |
+
"Concat",
|
48 |
+
"MatMul",
|
49 |
+
"Cast",
|
50 |
+
"Equal",
|
51 |
+
"Sqrt",
|
52 |
+
"Div",
|
53 |
+
"Gather",
|
54 |
+
"Mul",
|
55 |
+
"Add",
|
56 |
+
"Where",
|
57 |
+
"Shape"
|
58 |
+
],
|
59 |
+
"weight_type": "QInt8"
|
60 |
+
},
|
61 |
+
"decoder_model": {
|
62 |
+
"op_types": [
|
63 |
+
"Pow",
|
64 |
+
"Expand",
|
65 |
+
"Sub",
|
66 |
+
"Sigmoid",
|
67 |
+
"Squeeze",
|
68 |
+
"Softmax",
|
69 |
+
"Slice",
|
70 |
+
"Constant",
|
71 |
+
"ReduceMean",
|
72 |
+
"Transpose",
|
73 |
+
"ConstantOfShape",
|
74 |
+
"Unsqueeze",
|
75 |
+
"Reshape",
|
76 |
+
"Less",
|
77 |
+
"Range",
|
78 |
+
"Concat",
|
79 |
+
"MatMul",
|
80 |
+
"Cast",
|
81 |
+
"Equal",
|
82 |
+
"Sqrt",
|
83 |
+
"Div",
|
84 |
+
"Gather",
|
85 |
+
"Mul",
|
86 |
+
"Add",
|
87 |
+
"Where",
|
88 |
+
"Shape"
|
89 |
+
],
|
90 |
+
"weight_type": "QInt8"
|
91 |
+
},
|
92 |
+
"decoder_model_merged": {
|
93 |
+
"op_types": [
|
94 |
+
"Pow",
|
95 |
+
"Expand",
|
96 |
+
"Sub",
|
97 |
+
"Sigmoid",
|
98 |
+
"Squeeze",
|
99 |
+
"Softmax",
|
100 |
+
"Slice",
|
101 |
+
"Constant",
|
102 |
+
"ReduceMean",
|
103 |
+
"Transpose",
|
104 |
+
"ConstantOfShape",
|
105 |
+
"Unsqueeze",
|
106 |
+
"Reshape",
|
107 |
+
"Less",
|
108 |
+
"Range",
|
109 |
+
"Concat",
|
110 |
+
"Equal",
|
111 |
+
"Cast",
|
112 |
+
"MatMul",
|
113 |
+
"Sqrt",
|
114 |
+
"Div",
|
115 |
+
"Gather",
|
116 |
+
"Mul",
|
117 |
+
"If",
|
118 |
+
"Add",
|
119 |
+
"Where",
|
120 |
+
"Shape"
|
121 |
+
],
|
122 |
+
"weight_type": "QInt8"
|
123 |
+
}
|
124 |
+
}
|
125 |
+
}
|
source.spm
ADDED
Binary file (814 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 (790 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": "nl",
|
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
|
|