config: six more runtime readers ask the bags (#36973)

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Cheng Wan
2026-08-29 04:19:14 -07:00
committed by GitHub
co-authored by Claude Opus 5
parent b65e677e48
commit 1a3e152f03
20 changed files with 106 additions and 152 deletions
+18
View File
@@ -1819,6 +1819,24 @@ def process_model_config():
return model_config_of(get_server_args())
def reports_expert_balancedness() -> bool:
"""Whether the expert-balancedness report is on at all.
`overrides.should_report_expert_balancedness` is the pre-publish equivalent.
"""
return get_exec().moe.expert_balancedness_report_mode != "off"
def logs_expert_balancedness_to_server_log() -> bool:
"""Whether the balancedness report goes to the server log."""
return get_exec().moe.expert_balancedness_report_mode in ("server_log", "both")
def exports_expert_balancedness_to_prometheus() -> bool:
"""Whether the balancedness report goes to Prometheus."""
return get_exec().moe.expert_balancedness_report_mode in ("prometheus", "both")
def cutedsl_moe_max_num_tokens() -> int:
"""The CuteDSL A2A per-rank token budget.