Add torch macos universal whl files to release assets and package-index
I'm using Apple M2 with MacOS 13 and when trying to install torch-mlir and torch from package-index pip can't install torch-mlir as it couldn't find the correct torch version
ERROR: Cannot install torch-mlir==20221021.633, torch-mlir==20221022.634, torch-mlir==20221023.635, torch-mlir==20221024.636, torch-mlir==20221025.63, torch-mlir==20221025.64, torch-mlir==20221026.638, torch-mlir==20221027.639, torch-mlir==20221028.640, torch-mlir==20221029.641, torch-mlir==20221030.642 and torch-mlir==20221030.65 because these package versions have conflicting dependencies.
Currently we only list torch..macosx_10_9_x86_64.whl which pip doesn't pick up as dependency for torch-mlir..macosx_11_0_universal2.whl
Can we add the corresponding torch..macosx_11_0_universal2.whl file to release assets and package-index for easier dependency resolution?
@powderluv, PTAL
We have to wait for GHA to update the latest macos. I would like us to get SDK 11 support too but for now we have to probably wait (unless anyone else has a way to generate SDK11 packages on older macOS SDKs).
$ pip install ~/Downloads/torch_mlir-20221206.71-cp310-cp310-macosx_11_0_universal2.whl
ERROR: torch_mlir-20221206.71-cp310-cp310-macosx_11_0_universal2.whl is not a supported wheel on this platform.
As a data point, I'm on macOS Monterey (21.6.0) , with an Apple M1 Max and I can't install the pre-release version.
This is with the universal binary. I'm using python 3.9, maybe that cp310 in the file name means it needs to be used with python 3.10.
Yeah you need to be in 3.10
Thanks, I’ll give it a try again with 3.10.
On Dec 6, 2022, at 11:08 PM, powderluv @.***> wrote:
Yeah you need to be in 3.10
— Reply to this email directly, view it on GitHub https://github.com/llvm/torch-mlir/issues/1544#issuecomment-1340492777, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2O6UN5DKE3SSNJ3I6HMPDWMAZW5ANCNFSM6AAAAAARUGKYNQ. You are receiving this because you commented.
I'm trying to install the latest release snapshot, and the issue remains the same:
ERROR: Could not find a version that satisfies the requirement torch==2.3.0.dev20240122 (from torch-mlir) (from versions: 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.6.0, 2.7.0, 2.7.1)
ERROR: No matching distribution found for torch==2.3.0.dev20240122
And there is no such wheel for MacOS Arm, only a x86 pre-built.