Skip to content

Commit 2b59871

Browse files
author
刘哲续
committed
bugfix
1 parent 18bd5fc commit 2b59871

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

vllm_ascend/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,8 @@ def is_enable_nz(dtype: Optional[torch.dtype] = torch.int8,
7979
raise ValueError(
8080
"vllm_config must be provided when _ENABLE_NZ is None")
8181
_ENABLE_NZ = envs_ascend.VLLM_ASCEND_ENABLE_NZ and vllm_config.model_config.hf_config.model_type != "qwen3_next"
82-
8382
if dtype in [torch.float16, torch.bfloat16]:
84-
_ENABLE_NZ = False
85-
83+
return False
8684
return _ENABLE_NZ
8785

8886

0 commit comments

Comments
 (0)