Skip to content

Commit 31a2c09

Browse files
845473182白永斌
andauthored
[Bugfix] fix patch typo (#4351)
### What this PR does / why we need it? Fix a bug caused by this pr: #4223 The bug makes vllm-ascend/vllm_ascend/patch/platform/patch_multiproc_executor.py patch in a wrong way ### How was this patch tested? Tested in a single node. When the environment DYNAMIC_EPLB is set to true, the patch works correctly. When it's set to false, the patch do not patch - vLLM version: v0.11.0 - vLLM main: vllm-project/vllm@2918c1b Signed-off-by: 白永斌 <[email protected]> Co-authored-by: 白永斌 <[email protected]>
1 parent e945e91 commit 31a2c09

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vllm_ascend/patch/platform/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@
1616

1717
import os
1818

19-
import vllm_ascend.envs as envs_ascend
2019
import vllm_ascend.patch.platform.patch_config # noqa
2120
import vllm_ascend.patch.platform.patch_distributed # noqa
2221
import vllm_ascend.patch.platform.patch_mamba_config # noqa
2322
import vllm_ascend.patch.platform.patch_sched_yield # noqa
2423

25-
if envs_ascend.DYNAMIC_EPLB not in ("true", "1") or os.getenv(
24+
if os.getenv("DYNAMIC_EPLB", "false").lower() in ("true", "1") or os.getenv(
2625
"EXPERT_MAP_RECORD", "false") == "true":
2726
import vllm_ascend.patch.platform.patch_multiproc_executor # noqa

0 commit comments

Comments
 (0)