diff --git a/vllm_ascend/ascend_config.py b/vllm_ascend/ascend_config.py index 03a407636d3..270959361a7 100644 --- a/vllm_ascend/ascend_config.py +++ b/vllm_ascend/ascend_config.py @@ -52,11 +52,12 @@ def __init__(self, vllm_config: "VllmConfig"): self.dump_config_path = additional_config.get("dump_config_path", None) self._construct_weight_prefetch_config(additional_config) self.layer_sharding = additional_config.get("layer_sharding", None) - logger.info_once( - f"Linear layer sharding enabled with config: {self.layer_sharding}. " - "Note: This feature works optimally with FLASHCOMM2 and DSA-CP enabled; " - "using it without these features may result in significant performance degradation." - ) + if self.layer_sharding: + logger.info_once( + f"Linear layer sharding enabled with config: {self.layer_sharding}. " + "Note: This feature works optimally with FLASHCOMM2 and DSA-CP enabled; " + "using it without these features may result in significant performance degradation." + ) self.enable_shared_expert_dp = ( additional_config.get("enable_shared_expert_dp", False)