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