transformersjs-support
#1
by
edpoulain
- opened
- README.md +3 -0
- config.json +1 -1
- onnx/model.onnx → model.onnx +2 -2
- onnx/model_quantized.onnx → model_quantized.onnx +2 -2
- onnx/model_bnb4.onnx +0 -3
- onnx/model_fp16.onnx +0 -3
- onnx/model_int8.onnx +0 -3
- onnx/model_q4.onnx +0 -3
- onnx/model_q4f16.onnx +0 -3
- onnx/model_uint8.onnx +0 -3
- ort_config.json +33 -0
- quantize_config.json +0 -17
README.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
"RobertaForSequenceClassification"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "/content/roberta_spam_onnx",
|
| 3 |
"architectures": [
|
| 4 |
"RobertaForSequenceClassification"
|
| 5 |
],
|
onnx/model.onnx → model.onnx
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc1caec77e221ec39fe677b7836d67cc3d1791da7b275da2957fe8e06fc507b8
|
| 3 |
+
size 125560622
|
onnx/model_quantized.onnx → model_quantized.onnx
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86293e47c297202d38d98dd78e172dfc2ac2b65456c35fa090c90119d45fe406
|
| 3 |
+
size 125528143
|
onnx/model_bnb4.onnx
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:26ce7a8751f305708280b70d2fbbc6143aeceee68b39daf202c7064d1c08f20f
|
| 3 |
-
size 206977448
|
|
|
|
|
|
|
|
|
|
|
|
onnx/model_fp16.onnx
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:28e5e0b08fee7828d01f5206d2c4133e17a59d22af83c825f5cee67c54f862b2
|
| 3 |
-
size 249634581
|
|
|
|
|
|
|
|
|
|
|
|
onnx/model_int8.onnx
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b2a458427ec6698a6bbb97178179d533d3b109b79fdaf6bcdfb042db1d322798
|
| 3 |
-
size 125871653
|
|
|
|
|
|
|
|
|
|
|
|
onnx/model_q4.onnx
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:07eb1ec785cdf605a91342afcbd7d4c352295929f078f3961e1fa3478f8b1fcf
|
| 3 |
-
size 212285336
|
|
|
|
|
|
|
|
|
|
|
|
onnx/model_q4f16.onnx
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a7cbcccccd763e14239b982405fd5b2897533557ae3e42919e98e7075386f767
|
| 3 |
-
size 127551784
|
|
|
|
|
|
|
|
|
|
|
|
onnx/model_uint8.onnx
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:361dffbe10a45dc8bc1c2678560eee86b1f76b86a9d2880d79ff856d5fa5869a
|
| 3 |
-
size 125871652
|
|
|
|
|
|
|
|
|
|
|
|
ort_config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"one_external_file": true,
|
| 3 |
+
"opset": null,
|
| 4 |
+
"optimization": {},
|
| 5 |
+
"quantization": {
|
| 6 |
+
"activations_dtype": "QUInt8",
|
| 7 |
+
"activations_symmetric": false,
|
| 8 |
+
"format": "QOperator",
|
| 9 |
+
"is_static": false,
|
| 10 |
+
"mode": "IntegerOps",
|
| 11 |
+
"nodes_to_exclude": [],
|
| 12 |
+
"nodes_to_quantize": [],
|
| 13 |
+
"operators_to_quantize": [
|
| 14 |
+
"Conv",
|
| 15 |
+
"MatMul",
|
| 16 |
+
"Attention",
|
| 17 |
+
"LSTM",
|
| 18 |
+
"Gather",
|
| 19 |
+
"Transpose",
|
| 20 |
+
"EmbedLayerNormalization"
|
| 21 |
+
],
|
| 22 |
+
"per_channel": false,
|
| 23 |
+
"qdq_add_pair_to_weight": false,
|
| 24 |
+
"qdq_dedicated_pair": false,
|
| 25 |
+
"qdq_op_type_per_channel_support_to_axis": {
|
| 26 |
+
"MatMul": 1
|
| 27 |
+
},
|
| 28 |
+
"reduce_range": false,
|
| 29 |
+
"weights_dtype": "QInt8",
|
| 30 |
+
"weights_symmetric": true
|
| 31 |
+
},
|
| 32 |
+
"use_external_data_format": false
|
| 33 |
+
}
|
quantize_config.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"modes": [
|
| 3 |
-
"fp16",
|
| 4 |
-
"q8",
|
| 5 |
-
"int8",
|
| 6 |
-
"uint8",
|
| 7 |
-
"q4",
|
| 8 |
-
"q4f16",
|
| 9 |
-
"bnb4"
|
| 10 |
-
],
|
| 11 |
-
"per_channel": true,
|
| 12 |
-
"reduce_range": true,
|
| 13 |
-
"block_size": null,
|
| 14 |
-
"is_symmetric": true,
|
| 15 |
-
"accuracy_level": null,
|
| 16 |
-
"quant_type": 1
|
| 17 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|