We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does this support quantized models by any chance?
The text was updated successfully, but these errors were encountered:
@marsupialtail yes, I tried , you can quantize the onnx models like this, then use quantized model for inference
from onnxruntime.quantization import quantize_dynamic, QuantType #quantize encoder model_input = "temp1/t5-own--encoder.onnx" model_output = "temp1_compressed_onnxruntime/t5-own--encoder.onnx" quantize_dynamic(model_input, model_output, weight_type=QuantType.QInt8) #quantize decoder model_input = "temp1/t5-own--decoder-with-lm-head.onnx" model_output = "temp1_compressed_onnxruntime/t5-own--decoder-with-lm-head.onnx" quantize_dynamic(model_input, model_output, weight_type=QuantType.QInt8)
Sorry, something went wrong.
No branches or pull requests
Does this support quantized models by any chance?
The text was updated successfully, but these errors were encountered: