Skip to content

Update install script and building from source docs #10652

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

keyprocedure
Copy link
Contributor

@keyprocedure keyprocedure commented May 2, 2025

Summary

  • Updated install_requirements.sh to improve compatibility with source-built PyTorch and Intel macOS systems.
  • Added checks to prevent install commands from altering existing PyTorch builds by adding the --no-deps flag.
  • Removed torchaudio and torchvision dependencies for Intel macOS systems to avoid compatibility issues.

Fixes #9772

Test plan

Tested executorch installations with source-built PyTorch on:

  • Intel-macOS with PyTorch 2.7.0, Python 3.12.9
  • ARM64 macOS with PyTorch 2.8.0a0, Python 3.12.9

Validated by exporting and running the MobileNet V2 image classification model, following the examples on the Getting Started with ExecuTorch page.

cc @larryliu0820 @jathu

Copy link

pytorch-bot bot commented May 2, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/10652

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 35ecca2 with merge base 9ea9313 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 2, 2025
@keyprocedure
Copy link
Contributor Author

@pytorchbot label "module: build/install"

@pytorch-bot pytorch-bot bot added the module: build/install Issues related to the cmake and buck2 builds, and to installing ExecuTorch label May 2, 2025
@keyprocedure keyprocedure marked this pull request as ready for review May 10, 2025 01:15
@keyprocedure
Copy link
Contributor Author

@pytorchbot label "release notes: build"

@pytorch-bot pytorch-bot bot added the release notes: build Changes related to build, including dependency upgrades, build flags, optimizations, etc. label May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: build/install Issues related to the cmake and buck2 builds, and to installing ExecuTorch release notes: build Changes related to build, including dependency upgrades, build flags, optimizations, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return "platform not supported" when using PyTorch on intel-based Macbooks
2 participants