Commit af466ea
fix(test): pin ONNX IR version 8 in ort quantize test
modelopt[onnx] pulls in onnxruntime-gpu~=1.22.0 as a dependency on all
Python versions. Newer ONNX packages (1.19+) default model.ir_version
to 12, but onnxruntime-gpu 1.22.0 only supports up to IR version 10,
causing test_ort_quantize_int8_produces_output_file to fail on the GPU
CI for py3.11, py3.12, and py3.13.
Pin model.ir_version = 8 (the minimum required for opset 17) before
saving the test model so the calibration InferenceSession succeeds with
any onnxruntime version that supports IR ≤ 10.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e24274c commit af466ea
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
240 | 243 | | |
241 | 244 | | |
242 | 245 | | |
| |||
0 commit comments