grammar-synthesis-small / quantize_config.json
Xenova's picture
Xenova HF staff
Upload folder using huggingface_hub
27380e6 verified
{
"fp16": {},
"q8": {
"per_model_config": {
"encoder_model": {
"op_types": [
"Abs",
"Add",
"Cast",
"Concat",
"Constant",
"ConstantOfShape",
"Div",
"Gather",
"Greater",
"Less",
"Log",
"MatMul",
"Min",
"Mul",
"Pow",
"Range",
"ReduceMean",
"Reshape",
"Shape",
"Softmax",
"Sqrt",
"Sub",
"Tanh",
"Transpose",
"Unsqueeze",
"Where"
],
"weight_type": "QInt8"
},
"decoder_with_past_model": {
"op_types": [
"Add",
"Cast",
"Concat",
"Constant",
"ConstantOfShape",
"Div",
"Expand",
"Gather",
"Less",
"LessOrEqual",
"Log",
"MatMul",
"Min",
"Mul",
"Neg",
"Pow",
"Range",
"ReduceMean",
"Reshape",
"Shape",
"Slice",
"Softmax",
"Sqrt",
"Sub",
"Tanh",
"Tile",
"Transpose",
"Unsqueeze",
"Where"
],
"weight_type": "QInt8"
},
"decoder_model": {
"op_types": [
"Add",
"Cast",
"Concat",
"Constant",
"ConstantOfShape",
"Div",
"Expand",
"Gather",
"Less",
"LessOrEqual",
"Log",
"MatMul",
"Min",
"Mul",
"Neg",
"Pow",
"Range",
"ReduceMean",
"Reshape",
"Shape",
"Softmax",
"Sqrt",
"Sub",
"Tanh",
"Tile",
"Transpose",
"Unsqueeze",
"Where"
],
"weight_type": "QInt8"
},
"decoder_model_merged": {
"op_types": [
"Add",
"Cast",
"Concat",
"Constant",
"ConstantOfShape",
"Div",
"Expand",
"Gather",
"If",
"Less",
"LessOrEqual",
"Log",
"MatMul",
"Min",
"Mul",
"Neg",
"Pow",
"Range",
"ReduceMean",
"Reshape",
"Shape",
"Slice",
"Softmax",
"Sqrt",
"Sub",
"Tanh",
"Tile",
"Transpose",
"Unsqueeze",
"Where"
],
"weight_type": "QInt8"
}
},
"per_channel": true,
"reduce_range": true
},
"int8": {
"per_model_config": {
"encoder_model": {
"op_types": [
"Abs",
"Add",
"Cast",
"Concat",
"Constant",
"ConstantOfShape",
"Div",
"Gather",
"Greater",
"Less",
"Log",
"MatMul",
"Min",
"Mul",
"Pow",
"Range",
"ReduceMean",
"Reshape",
"Shape",
"Softmax",
"Sqrt",
"Sub",
"Tanh",
"Transpose",
"Unsqueeze",
"Where"
],
"weight_type": "QInt8"
},
"decoder_with_past_model": {
"op_types": [
"Add",
"Cast",
"Concat",
"Constant",
"ConstantOfShape",
"Div",
"Expand",
"Gather",
"Less",
"LessOrEqual",
"Log",
"MatMul",
"Min",
"Mul",
"Neg",
"Pow",
"Range",
"ReduceMean",
"Reshape",
"Shape",
"Slice",
"Softmax",
"Sqrt",
"Sub",
"Tanh",
"Tile",
"Transpose",
"Unsqueeze",
"Where"
],
"weight_type": "QInt8"
},
"decoder_model": {
"op_types": [
"Add",
"Cast",
"Concat",
"Constant",
"ConstantOfShape",
"Div",
"Expand",
"Gather",
"Less",
"LessOrEqual",
"Log",
"MatMul",
"Min",
"Mul",
"Neg",
"Pow",
"Range",
"ReduceMean",
"Reshape",
"Shape",
"Softmax",
"Sqrt",
"Sub",
"Tanh",
"Tile",
"Transpose",
"Unsqueeze",
"Where"
],
"weight_type": "QInt8"
},
"decoder_model_merged": {
"op_types": [
"Add",
"Cast",
"Concat",
"Constant",
"ConstantOfShape",
"Div",
"Expand",
"Gather",
"If",
"Less",
"LessOrEqual",
"Log",
"MatMul",
"Min",
"Mul",
"Neg",
"Pow",
"Range",
"ReduceMean",
"Reshape",
"Shape",
"Slice",
"Softmax",
"Sqrt",
"Sub",
"Tanh",
"Tile",
"Transpose",
"Unsqueeze",
"Where"
],
"weight_type": "QInt8"
}
},
"per_channel": true,
"reduce_range": true
},
"uint8": {
"per_model_config": {
"encoder_model": {
"op_types": [
"Abs",
"Add",
"Cast",
"Concat",
"Constant",
"ConstantOfShape",
"Div",
"Gather",
"Greater",
"Less",
"Log",
"MatMul",
"Min",
"Mul",
"Pow",
"Range",
"ReduceMean",
"Reshape",
"Shape",
"Softmax",
"Sqrt",
"Sub",
"Tanh",
"Transpose",
"Unsqueeze",
"Where"
],
"weight_type": "QUInt8"
},
"decoder_with_past_model": {
"op_types": [
"Add",
"Cast",
"Concat",
"Constant",
"ConstantOfShape",
"Div",
"Expand",
"Gather",
"Less",
"LessOrEqual",
"Log",
"MatMul",
"Min",
"Mul",
"Neg",
"Pow",
"Range",
"ReduceMean",
"Reshape",
"Shape",
"Slice",
"Softmax",
"Sqrt",
"Sub",
"Tanh",
"Tile",
"Transpose",
"Unsqueeze",
"Where"
],
"weight_type": "QUInt8"
},
"decoder_model": {
"op_types": [
"Add",
"Cast",
"Concat",
"Constant",
"ConstantOfShape",
"Div",
"Expand",
"Gather",
"Less",
"LessOrEqual",
"Log",
"MatMul",
"Min",
"Mul",
"Neg",
"Pow",
"Range",
"ReduceMean",
"Reshape",
"Shape",
"Softmax",
"Sqrt",
"Sub",
"Tanh",
"Tile",
"Transpose",
"Unsqueeze",
"Where"
],
"weight_type": "QUInt8"
},
"decoder_model_merged": {
"op_types": [
"Add",
"Cast",
"Concat",
"Constant",
"ConstantOfShape",
"Div",
"Expand",
"Gather",
"If",
"Less",
"LessOrEqual",
"Log",
"MatMul",
"Min",
"Mul",
"Neg",
"Pow",
"Range",
"ReduceMean",
"Reshape",
"Shape",
"Slice",
"Softmax",
"Sqrt",
"Sub",
"Tanh",
"Tile",
"Transpose",
"Unsqueeze",
"Where"
],
"weight_type": "QUInt8"
}
},
"per_channel": true,
"reduce_range": true
},
"q4": {
"block_size": 32,
"is_symmetric": true,
"accuracy_level": null
},
"bnb4": {
"block_size": 64,
"quant_type": 1
}
}