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

Return "platform not supported" when using PyTorch on intel-based Macbooks #9772

Open
nil-is-all opened this issue Mar 31, 2025 · 5 comments · May be fixed by #9865
Open

Return "platform not supported" when using PyTorch on intel-based Macbooks #9772

nil-is-all opened this issue Mar 31, 2025 · 5 comments · May be fixed by #9865
Labels
good first issue Good for newcomers module: build/install Issues related to the cmake and buck2 builds, and to installing ExecuTorch triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@nil-is-all
Copy link

nil-is-all commented Mar 31, 2025

🚀 The feature, motivation and pitch

Currently, when a user installs requirements for ExecuTorch on their Intel-chip Macbook by running the ./install_requirements.sh after git-cloning the ExecuTorch repo, the installation fails for torch versions, throwing an error and a stack trace.

ERROR: Could not find a version that satisfies the requirement torch==2.7.0.dev20250310 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2) ERROR: No matching distribution found for torch==2.7.0.dev20250310

Image

Alternatives

  1. Return a message stating "this platform is not supported" while running PyTorch on Intel Macbooks
  2. Updating documentation to add a disclaimer or in pre-requisites that PyTorch does not work anymore on Intel Macbooks.

Additional context

No response

RFC (Optional)

No response

cc @larryliu0820 @jathu @lucylq

@GregoryComer GregoryComer added good first issue Good for newcomers module: build/install Issues related to the cmake and buck2 builds, and to installing ExecuTorch triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Mar 31, 2025
@swolchok
Copy link
Contributor

See #6691 (comment) . In short, PyTorch officially deprecated Intel Macs back in January 2024. ExecuTorch is PyTorch, so I imagine we will follow suit.

@ali-khosh
Copy link

Right. I don't think the goal is to add support. But instead to make documentation/errors more human readable, as suggested in the Alternative section above:

  • Return a message stating "this platform is not supported" while running PyTorch on Intel Macbooks
  • Updating documentation to add a disclaimer or in pre-requisites that PyTorch does not work anymore on Intel Macbooks.

@keyprocedure
Copy link
Contributor

I’d be down to work on this!

@keyprocedure keyprocedure linked a pull request Apr 3, 2025 that will close this issue
@mergennachin
Copy link
Contributor

@swolchok @keyprocedure @ali-khosh

ExecuTorch itself actually works with Intel Macs -- as in users should be able to install ExecuTorch from source. The reason it is "not working" is that torch package is not available on Intel Mac via pypi. However, we should be able to compile torch from source and install on Intel Mac first.

Instead of upright saying, "we don't support Intel Macs", what's your thought on adding a documentation on how-to do compile torch and ExecuTorch from source on Intel Macs.

@keyprocedure
Copy link
Contributor

I’d be happy to help with documentation for building from source if that’s the direction we move in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers module: build/install Issues related to the cmake and buck2 builds, and to installing ExecuTorch triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
Development

Successfully merging a pull request may close this issue.

6 participants