Skip to content

Commit 9666738

Browse files
committed
fix lint, and config check
Signed-off-by: wangxiyuan <[email protected]>
1 parent c3120ba commit 9666738

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

vllm_ascend/ascend_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class AscendConfig:
3434

3535
def __init__(self, vllm_config):
3636
additional_config = vllm_config.additional_config if vllm_config.additional_config is not None else {}
37-
self.is_deepseek_sfa = vllm_config.model_config.is_deepseek_mla and hasattr(
37+
self.is_deepseek_sfa = vllm_config.model_config is not None and vllm_config.model_config.is_deepseek_mla and hasattr(
3838
vllm_config.model_config.hf_text_config, 'attn_module_list_cfg')
3939
self.use_sfa = self.is_deepseek_sfa
4040

vllm_ascend/patch/worker/patch_common/patch_attention_selector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def _cached_get_attn_backend(
7373
# use the placeholder NO_ATTENTION
7474
if is_attention_free:
7575
from vllm.attention.backends.placeholder_attn import \
76-
PlaceholderAttentionBackend # type: ignore[import-untyped]
77-
return PlaceholderAttentionBackend # type: ignore[import-untyped]
76+
PlaceholderAttentionBackend # type: ignore
77+
return PlaceholderAttentionBackend # type: ignore
7878

7979
# Check whether a particular choice of backend was
8080
# previously forced.

0 commit comments

Comments
 (0)