File size: 1,210 Bytes
7f3c6a0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
{
"compression": {
"algorithm": "quantization",
"export_to_onnx_standard_ops": false,
"ignored_scopes": [
"{re}.*Embeddings.*",
"{re}.*__add___[0-1]",
"{re}.*layer_norm_0",
"{re}.*matmul_1",
"{re}.*__truediv__*"
],
"initializer": {
"batchnorm_adaptation": {
"num_bn_adaptation_samples": 0
},
"range": {
"num_init_samples": 300,
"type": "mean_min_max"
}
},
"overflow_fix": "disable",
"preset": "mixed",
"scope_overrides": {
"activations": {
"{re}.*matmul_0": {
"mode": "symmetric"
}
}
}
},
"input_info": [
{
"keyword": "input_ids",
"sample_size": [
64,
128
],
"type": "long"
},
{
"keyword": "token_type_ids",
"sample_size": [
64,
128
],
"type": "long"
},
{
"keyword": "attention_mask",
"sample_size": [
64,
128
],
"type": "long"
}
],
"log_dir": "/tmp/bert-base-uncased-sst2-unstructured-sparsity-80-int8",
"optimum_version": "1.6.3",
"save_onnx_model": false,
"transformers_version": "4.26.0"
}
|