diff --git a/vllm_ascend/platform.py b/vllm_ascend/platform.py index 8da897b..8606eb4 100644 --- a/vllm_ascend/platform.py +++ b/vllm_ascend/platform.py @@ -75,7 +75,8 @@ class NPUPlatform(Platform): # and the user can enable quantization using "vllm serve --quantization ascend". if parser is not None: quant_action = parser._option_string_actions.get('--quantization') - if quant_action and hasattr(quant_action, 'choices'): + if quant_action and hasattr(quant_action, + 'choices') and quant_action.choices: if ASCEND_QUATIZATION_METHOD not in quant_action.choices: quant_action.choices.append(ASCEND_QUATIZATION_METHOD)