Skip to content

Commit

Permalink
Fix ORTConfig loading (#1879)
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-sarthakgupta authored May 28, 2024
1 parent e81bd73 commit 6d56c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/commands/onnxruntime/quantize.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def run(self):
"TensorRT quantization relies on static quantization that requires calibration, which is currently not supported through optimum-cli. Please adapt Optimum static quantization examples to run static quantization for TensorRT: https://github.com/huggingface/optimum/tree/main/examples/onnxruntime/quantization"
)
else:
qconfig = ORTConfig.from_pretained(self.args.config).quantization
qconfig = ORTConfig.from_pretrained(self.args.config).quantization

for q in quantizers:
q.quantize(save_dir=save_dir, quantization_config=qconfig)

0 comments on commit 6d56c5f

Please sign in to comment.