[Misc] Remove redundant imported envs, using envs_ascend instead (#2193)

### What this PR does / why we need it?
Remove redundant imported `envs`, using `envs_ascend` instead.

```python
import vllm.envs as envs_vllm
import vllm_ascend.envs as envs_ascend
```

- vLLM version: v0.10.0
- vLLM main:
https://github.com/vllm-project/vllm/commit/71683ca6f6764f35abe23d612a0d7dbd33babe32

---------

Signed-off-by: shen-shanshan <467638484@qq.com>
This commit is contained in:
Shanshan Shen authored and GitHub committed 2025-08-14 09:33:39 +08:00
1 parent 55d0790597
commit 103654ccd6
14 files changed
+46 -46

No files matched your search

@@ -28,7 +28,7 @@ from vllm.distributed.parallel_state import get_tp_group
from vllm.logger import logger
from vllm.model_executor.layers.linear import RowParallelLinear
from vllm_ascend import envs
import vllm_ascend.envs as envs_ascend
_HCOMM_INFO = None
@@ -142,6 +142,6 @@ class AscendRowParallelLinear(RowParallelLinear):
return output
if envs.VLLM_ASCEND_ENABLE_MATMUL_ALLREDUCE:
if envs_ascend.VLLM_ASCEND_ENABLE_MATMUL_ALLREDUCE:
logger.info("AscendRowParallelLinear: Matmul all-reduce is enabled. ")
vllm.model_executor.layers.linear.RowParallelLinear = AscendRowParallelLinear