Skip to content

[Integrate] Update torch-mlir to 201b80fb - #25046

Merged
roberto-laudani merged 1 commit into
mainfrom
users/roberto-laudani/update-torch-mlir
Oct 15, 2026
Merged

roberto-laudani merged 1 commit into
mainfrom
users/roberto-laudani/update-torch-mlir

Conversation

@roberto-laudani

@roberto-laudani roberto-laudani commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Updates torch-mlir from its October 2 upstream baseline to llvm/torch-mlir@201b80fb, using iree-org/torch-mlir@52f5c1c4 (sm-iree-integrates/torch-20261014) adapted to IREE's current LLVM revision.

On top of canonical torch-mlir, the integration branch carries the adaptation patches already on IREE's current pin that upstream does not have yet: the LLVM submodule bump, SymbolOpInterface for ClassTypeOp/GlobalSlotOp, and the TMTensor strict-properties assembly fix.

ONNX op test expectations:

  • Now passing, removed from expected_compile_failures in the CI-exercised configs: quantizelinear_axis.

  • test_dequantizelinear_uint16 now fails to compile and is marked as an expected compile failure, since the new DequantizeLinear conversion does not support uint16 yet.

Update to upstream torch-mlir through 201b80fb, using the IREE
integration revision adapted to the current LLVM pin.

The new range lowers ONNX QuantizeLinear and DequantizeLinear to
quantized_decomposed ops, which fixes test_quantizelinear_axis, so drop
it from the expected compile failures of the CI-exercised configs.

test_dequantizelinear_uint16 now fails to compile. The new
DequantizeLinear conversion accepts only a fixed list of storage dtypes,
which excludes uint16 until Torch::getScalarTypeForType can map it, so
onnx.DequantizeLinear stays unconverted. Mark it as an expected compile
failure until the conversion supports uint16.

Signed-off-by: Roberto Laudani <[email protected]>

@jschuhmacher jschuhmacher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@roberto-laudani
roberto-laudani merged commit 697057d into main Oct 15, 2026
85 of 87 checks passed
@roberto-laudani
roberto-laudani deleted the users/roberto-laudani/update-torch-mlir branch October 15, 2026 14:42
roberto-laudani added a commit that referenced this pull request Oct 15, 2026
Extends `ConvertTorchQuantizationToLinalgExt` (#24918) to
`quantized_decomposed.quantize_per_token` and `dequantize_per_token`.

Depends on #25008 and #25046.

Part of #24862.

Signed-off-by: Roberto Laudani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants