Skip to content

Commit 53b16bd

Browse files
committed
Consolidate Intel-macOS instructions into building-from-source
1 parent ce62ba9 commit 53b16bd

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

docs/source/using-executorch-building-from-source.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,19 @@ Or alternatively, [install conda on your machine](https://conda.io/projects/cond
6565
./install_executorch.sh
6666
```
6767

68-
Use the [`--use-pt-pinned-commit` flag](https://github.com/pytorch/executorch/blob/main/install_executorch.sh) to install Executorch with an existing PyTorch build.
69-
See the [PyTorch instructions](https://github.com/pytorch/pytorch#installation) on how to build PyTorch from source.
68+
See the [PyTorch instructions](https://github.com/pytorch/pytorch#installation) on how to build PyTorch from source.
69+
70+
Use the [`--use-pt-pinned-commit` flag](../../install_executorch.py) to install ExecuTorch with an existing PyTorch build:
7071

7172
```bash
7273
./install_executorch.sh --use-pt-pinned-commit
7374
```
7475

76+
For Intel-based macOS systems, use the [`--use-pt-pinned-commit --minimal` flags](../../install_executorch.py):
77+
```bash
78+
./install_executorch.sh --use-pt-pinned-commit --minimal
79+
```
80+
7581
Not all backends are built into the pip wheel by default. You can link these missing/experimental backends by turning on the corresponding cmake flag. For example, to include the MPS backend:
7682

7783
```bash

docs/source/using-executorch-ios.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,6 @@ python3 -m venv .venv && source .venv/bin/activate && pip install --upgrade pip
114114
./backends/apple/coreml/scripts/install_requirements.sh
115115
```
116116

117-
- **Intel-based macOS** systems require building PyTorch, Torchvision, and Torchaudio from source:
118-
- Use the [`--use-pt-pinned-commit --minimal` flags](https://github.com/pytorch/executorch/blob/main/install_executorch.py) to install Executorch with an existing PyTorch build.
119-
See the [PyTorch instructions](https://github.com/pytorch/pytorch#installation) on how to build PyTorch from source.
120-
```bash
121-
./install_executorch.sh --use-pt-pinned-commit --minimal
122-
```
123-
124117
5. Install [CMake](https://cmake.org):
125118

126119
Download the macOS binary distribution from the [CMake website](https://cmake.org/download), open the `.dmg` file, move `CMake.app` to the `/Applications` directory, and then run the following command to install the CMake command-line tools:

install_requirements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def install_optional_example_requirements(use_pytorch_nightly):
175175
# Prebuilt binaries for Intel-based macOS are no longer available on PyPI; users must compile from source.
176176
# PyTorch stopped building macOS x86_64 binaries since version 2.3.0 (January 2024).
177177
def is_intel_mac_os():
178-
# Returns True if running on Intel macOS
178+
# Returns True if running on Intel macOS.
179179
return platform.system().lower() == "darwin" and platform.machine().lower() in (
180180
"x86",
181181
"x86_64",

0 commit comments

Comments
 (0)