Skip to content

Modify installation.md for adding pip extra index of torch-npu #1272

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 4 commits into
base: main
Choose a base branch
from

Conversation

wxsIcey
Copy link
Contributor

@wxsIcey wxsIcey commented Jun 18, 2025

What this PR does / why we need it?

Modify installation.md for adding pip extra index of torch-npu

How was this patch tested?

No need

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jun 18, 2025
@wxsIcey wxsIcey force-pushed the wxs_0618 branch 2 times, most recently from 522ea50 to 4396bcd Compare June 18, 2025 07:17
Comment on lines 126 to 135
**[Optional]**

for **x86** machine:

```bash
pip config set global.extra-index-url https://download.pytorch.org/whl/cpu/
```

for torch-npu **dev** version:

```bash
pip config set global.extra-index-url https://mirrors.huaweicloud.com/ascend/repos/pypi
```

for torch-npu **dev** version and **x86** machine:

```bash
pip config set global.extra-index-url https://download.pytorch.org/whl/cpu/
pip config set global.extra-index-url "https://download.pytorch.org/whl/cpu/ https://mirrors.huaweicloud.com/ascend/repos/pypi"
```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Optional) Then config the extra-index of pip if you are working on a x86 machine or using torch-npu dev version:

# For x86 machine
pip config set global.extra-index-url https://download.pytorch.org/whl/cpu/
# For torch-npu dev version
pip config set global.extra-index-url https://mirrors.huaweicloud.com/ascend/repos/pypi
# For x86 torch-npu dev version
pip config set global.extra-index-url "https://download.pytorch.org/whl/cpu/ https://mirrors.huaweicloud.com/ascend/repos/pypi"

wxsIcey added 4 commits June 20, 2025 17:08
Signed-off-by: Icey <[email protected]>
Signed-off-by: Icey <[email protected]>
Signed-off-by: Icey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants