Skip to content

[Integrate] Update torch-mlir to 528d3dcb - #24908

Merged
ziereis merged 1 commit into
mainfrom
users/ziereis/update-torch-mlir
Oct 6, 2026
Merged

ziereis merged 1 commit into
mainfrom
users/ziereis/update-torch-mlir

Conversation

@ziereis

@ziereis ziereis commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Updates torch-mlir from its July 7 upstream baseline to llvm/torch-mlir@528d3dcb, using iree-org/torch-mlir@137b8fb8 (sm-iree-integrates/torch-20261002) 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. The DenseMapInfo and RegionSuccessor adaptations from the previous pin are now upstream and were dropped.

ONNX op test expectations:

  • Now passing, removed from expected_run_failures in the CI-exercised configs: averagepool_3d_dilations_large_count_include_pad_is_0_ceil_mode_is_True, nonmaxsuppression_flipped_coordinates, reduce_{max,min}_bool_inputs.

  • test_reversesequence_time now fails to compile on llvm-cpu and is marked as an expected compile failure. ReverseSequence now lowers to an scf.for over the time axis, so each dispatch reverses a column picked by a dynamic offset. The resulting vector.gather reads a strided column subview with a dynamic offset, which neither RemoveStrideFromGatherSource (bails on dynamic offsets) nor Gather1DToConditionalLoads (rejects non-unit inner stride) handles, so the gather reaches LLVM conversion unlowered. The proper fix is dynamic-offset support in the upstream MLIR gather lowering.

🤖 Generated with Claude Code

@ziereis
ziereis force-pushed the users/ziereis/update-torch-mlir branch 2 times, most recently from e4dfcdd to 0e59756 Compare September 10, 2026 08:48
@ziereis
ziereis marked this pull request as ready for review September 10, 2026 08:51
@ziereis
ziereis marked this pull request as draft September 10, 2026 09:23
@ziereis

ziereis commented Sep 10, 2026

Copy link
Copy Markdown
Contributor Author

noticed some onnx op failures that are probably related. will put it back into draft until i have this triaged.

@ziereis

ziereis commented Sep 11, 2026

Copy link
Copy Markdown
Contributor Author

there are some old XFAILs that now pass and two new failures, for the failures there exist PRs to fix them here:

llvm/torch-mlir#4756

and llvm/torch-mlir#4754.

After they are merged the base commit should be updated and it should be good 2 go.

roberto-laudani added a commit to roberto-laudani/iree-test-suites that referenced this pull request Oct 1, 2026
Adds end-to-end CPU quality regressions for MobileNetV2: the
float32 model, and an int8 variant quantized with PT2E and the ExecuTorch
XNNPACKQuantizer (int8 weights symmetric per channel, int8 activations
asymmetric per tensor). IREE compiles the committed
MLIR, fetches the externalized parameters and references from the Hugging Face
Hub (pinned by revision), and compares the output logits against PyTorch.

The PT2E test depends on iree-org/iree#24908 (torch-mlir update with typed
quantized_decomposed ops) and iree-org/iree#24918 (PT2E quantization as
LinalgExt ops).

Signed-off-by: Roberto Laudani <[email protected]>
roberto-laudani added a commit to roberto-laudani/iree-test-suites that referenced this pull request Oct 1, 2026
Adds end-to-end CPU quality regressions for MobileNetV2: the
float32 model, and an int8 variant quantized with PT2E and the ExecuTorch
XNNPACKQuantizer (int8 weights symmetric per channel, int8 activations
asymmetric per tensor). IREE compiles the committed
MLIR, fetches the externalized parameters and references from the Hugging Face
Hub (pinned by revision), and compares the output logits against PyTorch.

The PT2E test depends on iree-org/iree#24908 (torch-mlir update with typed
quantized_decomposed ops) and iree-org/iree#24918 (PT2E quantization as
LinalgExt ops).

Signed-off-by: Roberto Laudani <[email protected]>
@ziereis
ziereis force-pushed the users/ziereis/update-torch-mlir branch from 0e59756 to 8372778 Compare October 2, 2026 09:33
@ziereis ziereis changed the title [Integrate] Update torch-mlir to e447c3fa [Integrate] Update torch-mlir to 528d3dcb Oct 2, 2026
@ziereis
ziereis marked this pull request as ready for review October 2, 2026 12:28
Update to upstream torch-mlir through 528d3dcb, using the IREE
integration revision adapted to the current LLVM pin.

The new range fixes several ONNX op tests, so drop them from the
expected run failures of the CI-exercised configs:
averagepool_3d_dilations_large_count_include_pad_is_0_ceil_mode_is_True,
nonmaxsuppression_flipped_coordinates, and
reduce_{max,min}_bool_inputs.

test_reversesequence_time now fails to compile on llvm-cpu.
ReverseSequence lowers to an scf.for over the time axis, so each
dispatch reverses a column selected by a dynamic offset. The resulting
vector.gather reads a strided column subview with a dynamic offset:
RemoveStrideFromGatherSource bails on the dynamic offset and
Gather1DToConditionalLoads rejects the non-unit inner stride, leaving
the gather for LLVM conversion. Mark it as an expected compile failure
until the MLIR gather lowering handles dynamic subview offsets.

Signed-off-by: Thomas Ziereis <[email protected]>
@ziereis
ziereis force-pushed the users/ziereis/update-torch-mlir branch from 8372778 to 5994bd8 Compare October 6, 2026 08:20
@ziereis
ziereis merged commit 8823fe6 into main Oct 6, 2026
53 of 59 checks passed
@ziereis
ziereis deleted the users/ziereis/update-torch-mlir branch October 6, 2026 11:07
roberto-laudani added a commit to roberto-laudani/iree-test-suites that referenced this pull request Oct 12, 2026
Adds end-to-end CPU quality regressions for MobileNetV2: the
float32 model, and an int8 variant quantized with PT2E and the ExecuTorch
XNNPACKQuantizer (int8 weights symmetric per channel, int8 activations
asymmetric per tensor). IREE compiles the committed
MLIR, fetches the externalized parameters and references from the Hugging Face
Hub (pinned by revision), and compares the output logits against PyTorch.

The PT2E test depends on iree-org/iree#24908 (torch-mlir update with typed
quantized_decomposed ops).

Signed-off-by: Roberto Laudani <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
roberto-laudani added a commit to roberto-laudani/iree-test-suites that referenced this pull request Oct 13, 2026
Adds end-to-end CPU quality regressions for MobileNetV2: the
float32 model, and an int8 variant quantized with PT2E and the ExecuTorch
XNNPACKQuantizer (int8 weights symmetric per channel, int8 activations
asymmetric per tensor). IREE compiles the committed
MLIR, fetches the externalized parameters and references from the Hugging Face
Hub (pinned by revision), and compares the output logits against PyTorch.

The PT2E test depends on iree-org/iree#24908 (torch-mlir update with typed
quantized_decomposed ops).

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