-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[CI] main2mian v0.24.0 #11227
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
Merged
MengqingCao
merged 28 commits into
vllm-project:main
from
zhangxinyuehfad:zxy_main2main_v0.24.0
Jul 5, 2026
Merged
[CI] main2mian v0.24.0 #11227
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
e1bce00
upgrade main2main0612
zhangxinyuehfad 5b230b4
upgrade main2main0612
zhangxinyuehfad 436f751
upgrade main2main0612
zhangxinyuehfad cd05dbc
upgrade vllm 0619
zhangxinyuehfad d007b3d
fix lint
zhangxinyuehfad a252718
upgrade vllm 0619
zhangxinyuehfad b2331b3
upgrade vllm 0619
zhangxinyuehfad f62648a
fix
zhangxinyuehfad 8cc9568
set VLLM_USE_V2_MODEL_RUNNER = 0
zhangxinyuehfad 6eae03b
fix lint
zhangxinyuehfad 1875fc3
upgrade vllm v0.24.0
zhangxinyuehfad 6bf00a0
fix: resolve compatibility issues with vllm dev builds post-0.23.0
zhangxinyuehfad 519339f
fix: resolve compatibility issues with vllm dev builds post-0.23.0
zhangxinyuehfad 8a03bda
fix: resolve compatibility issues with vllm dev builds post-0.23.0
zhangxinyuehfad 719ddd1
fix: resolve compatibility issues with vllm dev builds post-0.23.0
zhangxinyuehfad 3d5316b
fix: resolve compatibility issues with vllm dev builds post-0.23.0
zhangxinyuehfad ac7d542
fix: resolve compatibility issues with vllm dev builds post-0.23.0
zhangxinyuehfad 5517336
fix lint
zhangxinyuehfad 54bcff5
fix lint
zhangxinyuehfad 0b42f51
fix lint
zhangxinyuehfad 9350c64
fix: patch _get_kv_cache_config_packed to fix OOM with vllm v0.24.0
zhangxinyuehfad e0bd116
fix:isolate NPU devices for application-level DP when ASCEND_RT_VISIB…
zhangxinyuehfad f13be37
fix: isolate NPU devices for application-level DP when ASCEND_RT_VISI…
zhangxinyuehfad a0702cc
use _build_device_ids from vllm no-v0.23.0
zhangxinyuehfad cd7600a
revert test_process_weights_transposes_weights
zhangxinyuehfad 663eeed
replace unit64 to int64 by MambaCopyBuffers
zhangxinyuehfad ec74a26
align _init_device with upstream gpu_worker.py init_device
zhangxinyuehfad 954d773
fix
zhangxinyuehfad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| b9a7cd464c9ae9b1b450f8982b76d7be4de73724 | ||
| ee0da84ab9e04ac7610e28580af62c365e898389 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,8 +15,6 @@ | |
| # This file is a part of the vllm-ascend project. | ||
| # | ||
|
|
||
| import vllm_ascend.logger # noqa: F401 | ||
|
|
||
| _GLOBAL_PATCH_APPLIED = False | ||
|
|
||
|
|
||
|
|
@@ -75,3 +73,6 @@ def register_model(): | |
| from .models import register_model | ||
|
|
||
| register_model() | ||
|
|
||
|
|
||
| import vllm_ascend.logger # noqa: E402, F401 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why moving this here?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To avoid circular imports when vLLM's plugin chain triggers during logger loading. |
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| # | ||
| # Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved. | ||
| # This file is a part of the vllm-ascend project. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
| # Patch vLLM v0.24.0+ ``get_physical_gpu_ids_for_local_dp_rank`` so that it | ||
| # tolerates a pre-sharded ASCEND_RT_VISIBLE_DEVICES env var (one slice per | ||
| # DP rank), instead of unconditionally applying ``local_dp_rank * world_size`` | ||
| # as an offset into it. | ||
| # | ||
| # Background: | ||
| # PR #45026 removed the per-process device isolation that older vLLM | ||
| # versions performed internally. Application-level DP (e.g. | ||
| # ``offline_data_parallel.py``) now has to slice ASCEND_RT_VISIBLE_DEVICES | ||
| # per rank itself, but the upstream helper still expects the env var to | ||
| # contain ALL devices for ALL ranks and tries to read it with the | ||
| # ``local_dp_rank * world_size`` offset. With a sharded env var, that | ||
| # offset is out of range and the helper raises ``IndexError`` (wrapped in | ||
| # the user-facing "Error computing device indices for ..." message). | ||
|
|
||
| from vllm_ascend.utils import vllm_version_is | ||
|
|
||
| if not vllm_version_is("0.23.0"): | ||
| import os | ||
|
|
||
| from vllm.platforms import current_platform | ||
| from vllm.v1.engine import utils as _engine_utils | ||
|
|
||
| _original_get_physical_gpu_ids = _engine_utils.get_physical_gpu_ids_for_local_dp_rank | ||
|
|
||
| def _patched_get_physical_gpu_ids_for_local_dp_rank( | ||
| device_control_env_var, | ||
| local_dp_rank, | ||
| world_size, | ||
| local_world_size=None, | ||
| user_assigned_gpu_ids=None, | ||
| ): | ||
| if local_world_size is None: | ||
| local_world_size = world_size | ||
|
|
||
| # If the caller did not pass --device-ids and the env var has | ||
| # fewer devices than the full DP range expects, the env var has | ||
| # already been pre-sharded per rank by the caller. Use it | ||
| # directly from index 0 instead of applying the DP offset again. | ||
| if user_assigned_gpu_ids is None and device_control_env_var in os.environ: | ||
| visible = [d for d in os.environ[device_control_env_var].split(",") if d] | ||
| if local_dp_rank * world_size + local_world_size > len(visible): | ||
| return [ | ||
| current_platform.device_control_id_to_physical_device_id(visible[device_id]) | ||
| for device_id in range(local_world_size) | ||
| ] | ||
|
|
||
| return _original_get_physical_gpu_ids( | ||
| device_control_env_var, | ||
| local_dp_rank, | ||
| world_size, | ||
| local_world_size, | ||
| user_assigned_gpu_ids, | ||
| ) | ||
|
|
||
| _engine_utils.get_physical_gpu_ids_for_local_dp_rank = _patched_get_physical_gpu_ids_for_local_dp_rank |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.