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-fr",
|
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 |
+
57641
|
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": 57641,
|
26 |
+
"decoder_vocab_size": 57642,
|
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": 57641,
|
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": 57642
|
60 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bad_words_ids": [
|
4 |
+
[
|
5 |
+
57641
|
6 |
+
]
|
7 |
+
],
|
8 |
+
"bos_token_id": 0,
|
9 |
+
"decoder_start_token_id": 57641,
|
10 |
+
"eos_token_id": 0,
|
11 |
+
"forced_eos_token_id": 0,
|
12 |
+
"max_length": 512,
|
13 |
+
"num_beams": 6,
|
14 |
+
"pad_token_id": 57641,
|
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:e1693efe660470bd8adbfe3296b37b0bc1d9be33d8d6e369528c1e5f8308a23a
|
3 |
+
size 338553760
|
onnx/decoder_model_merged.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6ac5a1d5e1401574c835a1c0acdac5074f57b72cb25160c0c84a5caac97d6ef3
|
3 |
+
size 338789242
|
onnx/decoder_model_merged_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d9c4fba6ac26690f6325dde5643a68b9d96bc214b44dbe85f5f9cd4c5903ed8d
|
3 |
+
size 86217886
|
onnx/decoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3139e0482d113a31a14514cf48b734121ab07fa252bfd42e97a8f784bbe75aa7
|
3 |
+
size 85846530
|
onnx/decoder_with_past_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1684ed2ead95e4346e0d082dd77ef54eccd589c37125eae1ac4432b71bd8976e
|
3 |
+
size 325903251
|
onnx/decoder_with_past_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:645dd32b8c1dd06dd1c5149405a2b3963bb72d99915723d5d030f074b67baf23
|
3 |
+
size 82575066
|
onnx/encoder_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:50f50605bcbd98051cda9b5ef0596d7f726130d79640e58d12b8d08083f71147
|
3 |
+
size 194866988
|
onnx/encoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:357de84fa0df0fe4b8e95adb9d0061118a2a9a4602863390e5e7c2ff505b1b7c
|
3 |
+
size 49131934
|
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 |
+
"Sqrt",
|
8 |
+
"Unsqueeze",
|
9 |
+
"Range",
|
10 |
+
"Equal",
|
11 |
+
"Sub",
|
12 |
+
"ConstantOfShape",
|
13 |
+
"Pow",
|
14 |
+
"Constant",
|
15 |
+
"Sigmoid",
|
16 |
+
"Reshape",
|
17 |
+
"MatMul",
|
18 |
+
"Div",
|
19 |
+
"Shape",
|
20 |
+
"ReduceMean",
|
21 |
+
"Cast",
|
22 |
+
"Gather",
|
23 |
+
"Where",
|
24 |
+
"Add",
|
25 |
+
"Expand",
|
26 |
+
"Transpose",
|
27 |
+
"Concat",
|
28 |
+
"Softmax",
|
29 |
+
"Mul"
|
30 |
+
],
|
31 |
+
"weight_type": "QInt8"
|
32 |
+
},
|
33 |
+
"decoder_with_past_model": {
|
34 |
+
"op_types": [
|
35 |
+
"Sqrt",
|
36 |
+
"Unsqueeze",
|
37 |
+
"Equal",
|
38 |
+
"Sub",
|
39 |
+
"Range",
|
40 |
+
"ConstantOfShape",
|
41 |
+
"Pow",
|
42 |
+
"Constant",
|
43 |
+
"Sigmoid",
|
44 |
+
"Reshape",
|
45 |
+
"MatMul",
|
46 |
+
"Div",
|
47 |
+
"Shape",
|
48 |
+
"ReduceMean",
|
49 |
+
"Cast",
|
50 |
+
"Gather",
|
51 |
+
"Where",
|
52 |
+
"Add",
|
53 |
+
"Expand",
|
54 |
+
"Transpose",
|
55 |
+
"Concat",
|
56 |
+
"Softmax",
|
57 |
+
"Mul"
|
58 |
+
],
|
59 |
+
"weight_type": "QInt8"
|
60 |
+
},
|
61 |
+
"decoder_model": {
|
62 |
+
"op_types": [
|
63 |
+
"Slice",
|
64 |
+
"Sqrt",
|
65 |
+
"Unsqueeze",
|
66 |
+
"Range",
|
67 |
+
"Equal",
|
68 |
+
"Sub",
|
69 |
+
"ConstantOfShape",
|
70 |
+
"Pow",
|
71 |
+
"Constant",
|
72 |
+
"Sigmoid",
|
73 |
+
"Reshape",
|
74 |
+
"Less",
|
75 |
+
"MatMul",
|
76 |
+
"Div",
|
77 |
+
"Shape",
|
78 |
+
"ReduceMean",
|
79 |
+
"Cast",
|
80 |
+
"Gather",
|
81 |
+
"Where",
|
82 |
+
"Add",
|
83 |
+
"Expand",
|
84 |
+
"Transpose",
|
85 |
+
"Concat",
|
86 |
+
"Softmax",
|
87 |
+
"Mul",
|
88 |
+
"Squeeze"
|
89 |
+
],
|
90 |
+
"weight_type": "QInt8"
|
91 |
+
},
|
92 |
+
"decoder_model_merged": {
|
93 |
+
"op_types": [
|
94 |
+
"Slice",
|
95 |
+
"Sqrt",
|
96 |
+
"Unsqueeze",
|
97 |
+
"Range",
|
98 |
+
"Equal",
|
99 |
+
"Sub",
|
100 |
+
"ConstantOfShape",
|
101 |
+
"Pow",
|
102 |
+
"Constant",
|
103 |
+
"Sigmoid",
|
104 |
+
"Reshape",
|
105 |
+
"Less",
|
106 |
+
"MatMul",
|
107 |
+
"Div",
|
108 |
+
"Shape",
|
109 |
+
"ReduceMean",
|
110 |
+
"Cast",
|
111 |
+
"Gather",
|
112 |
+
"If",
|
113 |
+
"Where",
|
114 |
+
"Add",
|
115 |
+
"Expand",
|
116 |
+
"Transpose",
|
117 |
+
"Concat",
|
118 |
+
"Softmax",
|
119 |
+
"Mul",
|
120 |
+
"Squeeze"
|
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 (813 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": "fr",
|
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
|
|