Skip to content

Conversation

@wxsIcey
Copy link
Collaborator

@wxsIcey wxsIcey commented Jun 16, 2025

What this PR does / why we need it?

Related to #1232

How was this patch tested?

CI passed with new added test.

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jun 16, 2025
Copy link
Collaborator

@Yikun Yikun left a comment

Choose a reason for hiding this comment

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

# Install vLLM
git clone --depth 1 --branch |vllm_version| https://github.com/vllm-project/vllm
cd vllm
export PIP_EXTRA_INDEX_URL=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.

Suggested change
export PIP_EXTRA_INDEX_URL=https://mirrors.huaweicloud.com/ascend/repos/pypi

This should move to vLLM Ascend

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

modified

pybind11_cmake_path = (subprocess.check_output(
[python_executable, "-m", "pybind11",
"--cmake"]).decode().strip())
"--cmakedir"]).decode().strip())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure why this change is required? How did this work before?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If this is not modified, the following CI exception will be triggered:
https://github.com/vllm-project/vllm-ascend/actions/runs/15676188937/job/44156927753

In the update of pybind11 2.6.0 version, the support for the --cmake parameter was explicitly removed. Instead, it is recommended to use --cmakedir to obtain the CMake configuration file path.
联想截图_20250616190019

@wangxiyuan
Copy link
Collaborator

LGTM. the unit test is merged just now. Please rebase and make it work as well. 69b817e

@Yikun
Copy link
Collaborator

Yikun commented Jun 16, 2025

@MengqingCao
Copy link
Collaborator

Plz backport this to branch 0.9.1-dev, too

@wxsIcey
Copy link
Collaborator Author

wxsIcey commented Jun 16, 2025

BTW, we can add

      - 'setup.py'
      - 'pyproject.toml'
      - 'requirements.txt'
      - 'cmake/**'
      - 'CMakeLists.txt'
      - 'csrc/**'

to https://github.com/vllm-project/vllm-ascend/blob/main/.github/workflows/image_ubuntu.yml#L18 https://github.com/vllm-project/vllm-ascend/blob/main/.github/workflows/image_openeuler.yml#L18

modified

@wxsIcey
Copy link
Collaborator Author

wxsIcey commented Jun 16, 2025

Plz backport this to branch 0.9.1-dev, too

ok

1 similar comment
@wxsIcey
Copy link
Collaborator Author

wxsIcey commented Jun 16, 2025

Plz backport this to branch 0.9.1-dev, too

ok

@github-actions github-actions bot added module:tests module:ops merge-conflicts and removed documentation Improvements or additions to documentation ci/build labels Jun 16, 2025
@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Signed-off-by: Yikun Jiang <yikunkero@gmail.com>
@github-actions github-actions bot added documentation Improvements or additions to documentation ci/build and removed module:tests module:ops merge-conflicts labels Jun 16, 2025
@Yikun Yikun closed this in 96fa7ff Jun 16, 2025
ganyi1996ppo pushed a commit that referenced this pull request Jun 17, 2025
… to 2.5.1.post1.dev20250528 (#1247)

### What this PR does / why we need it?
Cherry-pick form #1235

1. Fix rank set in DP scenario. The new poc version of torch-npu support
setting `ASCEND_RT_VISIBLE_DEVICES` dynamically, thus we could use the
rank set in `DPEngineCoreProc` directly instead of calculating local
rank across dp by hand in the patched `_init_data_parallel`

Closes: #1170

2. Bump torch-npu version to 2.5.1.post1.dev20250528

Closes: #1242
Closes: #1232

### How was this patch tested?
CI passed with new added test.

---------

Signed-off-by: Icey <1790571317@qq.com>
Signed-off-by: MengqingCao <cmq0113@163.com>
Co-authored-by: Icey <1790571317@qq.com>
shiyuan680 pushed a commit to raindaywhu/vllm-ascend that referenced this pull request Jul 7, 2025
…1.post1.dev20250528 (vllm-project#1235)

1. Fix rank set in DP scenario. The new poc version of torch-npu support
setting `ASCEND_RT_VISIBLE_DEVICES` dynamically, thus we could use the
rank set in `DPEngineCoreProc` directly instead of calculating local
rank across dp by hand in the patched `_init_data_parallel`

Closes: vllm-project#1170

2. Bump torch-npu version to 2.5.1.post1.dev20250528

Closes: vllm-project#1242
Closes: vllm-project#1232

CI passed with new added test.

---------

Signed-off-by: MengqingCao <cmq0113@163.com>
Signed-off-by: Icey <1790571317@qq.com>
Co-authored-by: Icey <1790571317@qq.com>
chopper0126 pushed a commit to chopper0126/vllm-ascend that referenced this pull request Oct 16, 2025
…1.post1.dev20250528 (vllm-project#1235)

### What this PR does / why we need it?
1. Fix rank set in DP scenario. The new poc version of torch-npu support
setting `ASCEND_RT_VISIBLE_DEVICES` dynamically, thus we could use the
rank set in `DPEngineCoreProc` directly instead of calculating local
rank across dp by hand in the patched `_init_data_parallel`

Closes: vllm-project#1170

2. Bump torch-npu version to 2.5.1.post1.dev20250528

Closes: vllm-project#1242
Closes: vllm-project#1232


### How was this patch tested?
CI passed with new added test.

---------

Signed-off-by: MengqingCao <cmq0113@163.com>
Signed-off-by: Icey <1790571317@qq.com>
Co-authored-by: Icey <1790571317@qq.com>
Angazenn pushed a commit to Angazenn/vllm-ascend that referenced this pull request Oct 21, 2025
…1.post1.dev20250528 (vllm-project#1235)

### What this PR does / why we need it?
1. Fix rank set in DP scenario. The new poc version of torch-npu support
setting `ASCEND_RT_VISIBLE_DEVICES` dynamically, thus we could use the
rank set in `DPEngineCoreProc` directly instead of calculating local
rank across dp by hand in the patched `_init_data_parallel`

Closes: vllm-project#1170

2. Bump torch-npu version to 2.5.1.post1.dev20250528

Closes: vllm-project#1242
Closes: vllm-project#1232


### How was this patch tested?
CI passed with new added test.

---------

Signed-off-by: MengqingCao <cmq0113@163.com>
Signed-off-by: Icey <1790571317@qq.com>
Co-authored-by: Icey <1790571317@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/build documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants