[RL] Fix Kimi K3 expert-count lookup for routed-expert capture (#40700)

This commit is contained in:
Byron Hsu
2026-09-23 11:18:04 -07:00
committed by GitHub
parent 7fef014d51
commit f2eebd5533
+2
View File
@@ -9,6 +9,8 @@ from sglang.srt.runtime_context import get_parallel
class KimiLinearConfig(PretrainedConfig):
model_type = "kimi_linear"
# Shared MoE utilities use the abbreviated name; checkpoints keep the original.
attribute_map = {"num_experts_per_tok": "num_experts_per_token"}
keys_to_ignore_at_inference = ["past_key_values"]
def __init__(