Upload folder using huggingface_hub
Browse files- config.json +2 -2
- generation_config.json +11 -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 +135 -0
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"activation_dropout": 0.0,
|
| 4 |
"activation_function": "relu",
|
| 5 |
"architectures": [
|
|
@@ -30,7 +30,7 @@
|
|
| 30 |
"num_hidden_layers": 12,
|
| 31 |
"pad_token_id": 1,
|
| 32 |
"scale_embedding": true,
|
| 33 |
-
"transformers_version": "4.
|
| 34 |
"use_cache": true,
|
| 35 |
"vocab_size": 128112
|
| 36 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "facebook/m2m100_418M",
|
| 3 |
"activation_dropout": 0.0,
|
| 4 |
"activation_function": "relu",
|
| 5 |
"architectures": [
|
|
|
|
| 30 |
"num_hidden_layers": 12,
|
| 31 |
"pad_token_id": 1,
|
| 32 |
"scale_embedding": true,
|
| 33 |
+
"transformers_version": "4.32.0.dev0",
|
| 34 |
"use_cache": true,
|
| 35 |
"vocab_size": 128112
|
| 36 |
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"decoder_start_token_id": 2,
|
| 5 |
+
"early_stopping": true,
|
| 6 |
+
"eos_token_id": 2,
|
| 7 |
+
"max_length": 200,
|
| 8 |
+
"num_beams": 5,
|
| 9 |
+
"pad_token_id": 1,
|
| 10 |
+
"transformers_version": "4.32.0.dev0"
|
| 11 |
+
}
|
onnx/decoder_model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c46b4b22a8784d1dfcf5a4fb03023c86447aa5000a4ded9628a187537ab2c45a
|
| 3 |
+
size 1860343075
|
onnx/decoder_model_merged.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9a161e2bee0787bcb8df55a3f176f490efe50e8835fc7b423b82063d403a36d6
|
| 3 |
+
size 1865017920
|
onnx/decoder_model_merged_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe603e536c2590223d4fec6e18a94809273cb9998f79db2e623780492891b2d1
|
| 3 |
+
size 475956446
|
onnx/decoder_model_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c21aad0d0fe5553c79190831a1be55427806f67d96a046019157ffd89f9ab77c
|
| 3 |
+
size 471009755
|
onnx/decoder_with_past_model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:64a5bbc8d54b0f27f94bc71b899264b30e629adf08c8fcff1cbd9e40827c731f
|
| 3 |
+
size 1759501391
|
onnx/decoder_with_past_model_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d450287dbd54564a1d3260f4dd583619dd2b60943838d8b1d59e27f81bc5b26a
|
| 3 |
+
size 445490297
|
onnx/encoder_model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:26898af1244d73c2b25481534c44cb5bdc566d04e093525b11ee57eb085a360b
|
| 3 |
+
size 1133698852
|
onnx/encoder_model_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dabfae22dc44c7c5cfbdcd2d85fd7daebf7dc415255645a3454c8554e8fdd137
|
| 3 |
+
size 287856370
|
quantize_config.json
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"per_channel": true,
|
| 3 |
+
"reduce_range": true,
|
| 4 |
+
"per_model_config": {
|
| 5 |
+
"encoder_model": {
|
| 6 |
+
"op_types": [
|
| 7 |
+
"Shape",
|
| 8 |
+
"Pow",
|
| 9 |
+
"CumSum",
|
| 10 |
+
"ConstantOfShape",
|
| 11 |
+
"Expand",
|
| 12 |
+
"Div",
|
| 13 |
+
"MatMul",
|
| 14 |
+
"Sqrt",
|
| 15 |
+
"Mul",
|
| 16 |
+
"Sub",
|
| 17 |
+
"ReduceMean",
|
| 18 |
+
"Equal",
|
| 19 |
+
"Gather",
|
| 20 |
+
"Softmax",
|
| 21 |
+
"Not",
|
| 22 |
+
"Add",
|
| 23 |
+
"Constant",
|
| 24 |
+
"Identity",
|
| 25 |
+
"Cast",
|
| 26 |
+
"Concat",
|
| 27 |
+
"Unsqueeze",
|
| 28 |
+
"Transpose",
|
| 29 |
+
"Relu",
|
| 30 |
+
"Reshape",
|
| 31 |
+
"Where"
|
| 32 |
+
],
|
| 33 |
+
"weight_type": "QInt8"
|
| 34 |
+
},
|
| 35 |
+
"decoder_model_merged": {
|
| 36 |
+
"op_types": [
|
| 37 |
+
"Shape",
|
| 38 |
+
"Pow",
|
| 39 |
+
"ConstantOfShape",
|
| 40 |
+
"Expand",
|
| 41 |
+
"CumSum",
|
| 42 |
+
"Div",
|
| 43 |
+
"MatMul",
|
| 44 |
+
"Sqrt",
|
| 45 |
+
"Mul",
|
| 46 |
+
"Less",
|
| 47 |
+
"Sub",
|
| 48 |
+
"ReduceMean",
|
| 49 |
+
"If",
|
| 50 |
+
"Equal",
|
| 51 |
+
"Gather",
|
| 52 |
+
"Softmax",
|
| 53 |
+
"Slice",
|
| 54 |
+
"Range",
|
| 55 |
+
"Not",
|
| 56 |
+
"Add",
|
| 57 |
+
"Constant",
|
| 58 |
+
"Identity",
|
| 59 |
+
"Cast",
|
| 60 |
+
"Concat",
|
| 61 |
+
"Unsqueeze",
|
| 62 |
+
"Transpose",
|
| 63 |
+
"Relu",
|
| 64 |
+
"Squeeze",
|
| 65 |
+
"Reshape",
|
| 66 |
+
"Where"
|
| 67 |
+
],
|
| 68 |
+
"weight_type": "QInt8"
|
| 69 |
+
},
|
| 70 |
+
"decoder_with_past_model": {
|
| 71 |
+
"op_types": [
|
| 72 |
+
"Shape",
|
| 73 |
+
"Pow",
|
| 74 |
+
"ConstantOfShape",
|
| 75 |
+
"Expand",
|
| 76 |
+
"CumSum",
|
| 77 |
+
"Div",
|
| 78 |
+
"MatMul",
|
| 79 |
+
"Sqrt",
|
| 80 |
+
"Mul",
|
| 81 |
+
"Sub",
|
| 82 |
+
"ReduceMean",
|
| 83 |
+
"Equal",
|
| 84 |
+
"Gather",
|
| 85 |
+
"Softmax",
|
| 86 |
+
"Not",
|
| 87 |
+
"Add",
|
| 88 |
+
"Constant",
|
| 89 |
+
"Identity",
|
| 90 |
+
"Cast",
|
| 91 |
+
"Concat",
|
| 92 |
+
"Unsqueeze",
|
| 93 |
+
"Transpose",
|
| 94 |
+
"Relu",
|
| 95 |
+
"Reshape",
|
| 96 |
+
"Where"
|
| 97 |
+
],
|
| 98 |
+
"weight_type": "QInt8"
|
| 99 |
+
},
|
| 100 |
+
"decoder_model": {
|
| 101 |
+
"op_types": [
|
| 102 |
+
"Shape",
|
| 103 |
+
"Pow",
|
| 104 |
+
"ConstantOfShape",
|
| 105 |
+
"Expand",
|
| 106 |
+
"CumSum",
|
| 107 |
+
"Div",
|
| 108 |
+
"MatMul",
|
| 109 |
+
"Sqrt",
|
| 110 |
+
"Mul",
|
| 111 |
+
"Less",
|
| 112 |
+
"Sub",
|
| 113 |
+
"ReduceMean",
|
| 114 |
+
"Equal",
|
| 115 |
+
"Gather",
|
| 116 |
+
"Softmax",
|
| 117 |
+
"Slice",
|
| 118 |
+
"Range",
|
| 119 |
+
"Not",
|
| 120 |
+
"Add",
|
| 121 |
+
"Constant",
|
| 122 |
+
"Identity",
|
| 123 |
+
"Cast",
|
| 124 |
+
"Concat",
|
| 125 |
+
"Unsqueeze",
|
| 126 |
+
"Transpose",
|
| 127 |
+
"Relu",
|
| 128 |
+
"Squeeze",
|
| 129 |
+
"Reshape",
|
| 130 |
+
"Where"
|
| 131 |
+
],
|
| 132 |
+
"weight_type": "QInt8"
|
| 133 |
+
}
|
| 134 |
+
}
|
| 135 |
+
}
|