[refactor] Resolve config declarations onto server_args at the end of __post_init__ (#30297)

This commit is contained in:
Cheng Wan
2026-07-06 18:04:44 -07:00
committed by GitHub
parent cf4edda956
commit c861896721
11 changed files with 722 additions and 393 deletions
@@ -102,6 +102,10 @@ def _make_model_runner(
sa = SimpleNamespace()
sa.swa_full_tokens_ratio = swa_full_tokens_ratio
# The configurator reads the resolved ratio from the flags tier.
from sglang.srt.runtime_context import get_flags
get_flags().swa_full_tokens_ratio = swa_full_tokens_ratio
sa.page_size = page_size
sa.disable_radix_cache = disable_radix_cache
sa.chunked_prefill_size = chunked_prefill_size