[Metax] support ENABLE_V1_KVCACHE_SCHEDULER (#5163)

This commit is contained in:
xiaozude
2025-11-24 19:19:49 +08:00
committed by GitHub
parent e150a418d4
commit d5bd64336a
5 changed files with 24 additions and 14 deletions

View File

@@ -937,7 +937,7 @@ def initialize_fd_config(args, ranks: int = 1, local_rank: int = 0) -> FDConfig:
logger.info(f"- Dynamic load weight: {load_config.dynamic_load_weight}")
logger.info(f"- Load strategy: {load_config.load_strategy}")
if not current_platform.is_cuda() and not current_platform.is_xpu():
if not (current_platform.is_cuda() or current_platform.is_xpu() or current_platform.is_maca()):
logger.info("Set ENABLE_V1_KVCACHE_SCHEDULER to 0 due to not supported.")
envs.ENABLE_V1_KVCACHE_SCHEDULER = 0
if structured_outputs_config.guided_decoding_backend != "off":