[Bugfix] Fix GLM-4 MoE router logits dtype for data parallel chunking (#31055)

Signed-off-by: ReinforcedKnowledge <reinforced.knowledge@gmail.com>
This commit is contained in:
Yakine Tahtah
2026-01-06 17:57:56 +00:00
committed by GitHub
parent 142c4d1738
commit 4e67a8f616
3 changed files with 13 additions and 1 deletions
@@ -1006,6 +1006,9 @@ class FusedMoEConfig:
# The activation type.
in_dtype: torch.dtype
# Defaults to in_dtype if not specified.
router_logits_dtype: torch.dtype | None = None
max_num_tokens: int = envs.VLLM_MOE_DP_CHUNK_SIZE
has_bias: bool = False
@@ -1022,6 +1025,9 @@ class FusedMoEConfig:
assert self.max_num_tokens > 0
if self.router_logits_dtype is None:
self.router_logits_dtype = self.in_dtype
@property
def tp_size(self):
return self.moe_parallel_config.tp_size