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

Update install_requirements to install --pybind xnnpack by default. #7473

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

mergennachin
Copy link
Contributor

@mergennachin mergennachin commented Jan 2, 2025

Summary:

Regular ./install_requirements.sh will install pybind xnnpack by default. It is necessary for Llama for instance.

It is still backwards compatible with './install_requirements.sh --pybind xnnpack'

One can also turn off explicitly by calling './install_requirement.sh --pybind off'

Test Plan:

Test valid options:

./install_requirements.sh
./install_requirements.sh --pybind xnnpack
./install_requirements.sh --pybind coreml
./install_requirements.sh --pybind coreml xnnpack
./install_requirements.sh --pybind off

Invalid options:

./install_requirements.sh xnnpack
./install_requirements.sh --pybind coreml off
./install_requirements.sh --pybind coreml xnnpack off
./install_requirements.sh off

Partially fixes #7460

Copy link

pytorch-bot bot commented Jan 2, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit fe5d231 with merge base a861294 (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 Jan 2, 2025
@mergennachin mergennachin added the release notes: build Changes related to build, including dependency upgrades, build flags, optimizations, etc. label Jan 2, 2025
@mergennachin mergennachin force-pushed the install_xnnpack_by_default branch from a9fd5ce to 683142c Compare January 2, 2025 19:45
@mergennachin mergennachin force-pushed the install_xnnpack_by_default branch from 683142c to f951b54 Compare January 2, 2025 20:07
Summary:

Regular ./install_requirements.sh will install pybind xnnpack by default. It is necessary for Llama for instance.

It is still backwards compatible with './install_requirements.sh --pybind xnnpack'

One can also turn off explicitly by calling './install_requirement.sh --pybind off'

Test Plan:

Test valid options:

./install_requirements.sh
./install_requirements.sh --pybind xnnpack
./install_requirements.sh --pybind coreml
./install_requirements.sh --pybind coreml xnnpack
./install_requirements.sh --pybind off

Invalid options:

./install_requirements.sh xnnpack
./install_requirements.sh --pybind coreml off
./install_requirements.sh --pybind coreml xnnpack off
./install_requirements.sh off
@mergennachin mergennachin force-pushed the install_xnnpack_by_default branch from f951b54 to fe5d231 Compare January 2, 2025 20:18
@facebook-github-bot
Copy link
Contributor

@mergennachin has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@mergennachin mergennachin merged commit 9dc5152 into main Jan 3, 2025
109 checks passed
@mergennachin mergennachin deleted the install_xnnpack_by_default branch January 3, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. 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.

A simple install command gives everything a user need
3 participants