Skip to content
New issue

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

Test and support PyTorch 2.6 #348

Open
3 tasks
ScottTodd opened this issue Dec 18, 2024 · 0 comments
Open
3 tasks

Test and support PyTorch 2.6 #348

ScottTodd opened this issue Dec 18, 2024 · 0 comments

Comments

@ScottTodd
Copy link
Member

ScottTodd commented Dec 18, 2024

The PyTorch 2.6 release branch has been cut and test wheels are now available: https://dev-discuss.pytorch.org/t/pytorch-2-6-release-branch-cut-for-pytorch-core-is-completed/2656

We were pulling in the latest test wheels prior to #347, which revealed some test failures: https://github.com/iree-org/iree-turbine/actions/runs/12399117695?pr=346

=========================== short test summary info ============================
FAILED tests/aot/globals_test.py::BufferTest::testMutableBuffer - iree.compiler._mlir_libs._site_initialize.<locals>.MLIRError: Verification failed:
error: "/home/runner/work/iree-turbine/iree-turbine/tests/aot/globals_test.py":438:0: 'torch.aten.index_put_' op operand #0 must be Multi-dimensional array modeling Torch's Tensor type, but got '!torch.vtensor<[10],f32>'
 note: "/home/runner/work/iree-turbine/iree-turbine/tests/aot/globals_test.py":438:0: see current operation: %3 = "torch.aten.index_put_"(%0, %1, %arg1, %2) : (!torch.vtensor<[10],f32>, !torch.list<optional<vtensor>>, !torch.vtensor<[3],f32>, !torch.bool) -> !torch.vtensor<[10],f32>
FAILED tests/aot/globals_test.py::BufferTest::testReadWriteReadMutableBuffer - iree.compiler._mlir_libs._site_initialize.<locals>.MLIRError: Verification failed:
error: "/home/runner/work/iree-turbine/iree-turbine/tests/aot/globals_test.py":453:0: 'torch.aten.index_put_' op operand #0 must be Multi-dimensional array modeling Torch's Tensor type, but got '!torch.vtensor<[10],f32>'
 note: "/home/runner/work/iree-turbine/iree-turbine/tests/aot/globals_test.py":453:0: see current operation: %8 = "torch.aten.index_put_"(%0, %6, %arg1, %7) : (!torch.vtensor<[10],f32>, !torch.list<optional<vtensor>>, !torch.vtensor<[3],f32>, !torch.bool) -> !torch.vtensor<[10],f32>
FAILED tests/aot/compiled_exported_program_test.py::TorchExportTests::testBuffersAsGlobals - iree.compiler._mlir_libs._site_initialize.<locals>.MLIRError: Verification failed:
error: "/home/runner/work/iree-turbine/iree-turbine/iree/turbine/aot/fx_programs.py":226:0: operand and result must have the same size and dtype
 note: "/home/runner/work/iree-turbine/iree-turbine/iree/turbine/aot/fx_programs.py":226:0: see current operation: %2 = "torch_c.to_builtin_tensor"(%1) : (!torch.vtensor<[],f32>) -> tensor<1xf32>
===== 3 failed, 290 passed, 529 skipped, 9 xfailed, 22 warnings in 52.99s ======

Tasks:

@ScottTodd ScottTodd changed the title Test and support PyTorch 2.6+ Test and support PyTorch 2.6 Dec 18, 2024
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

No branches or pull requests

1 participant