Keep EAGLE diagnostics from breaking disagg startup
The C32 startup audit was diagnostic-only, but it incorrectly read spec_algorithm from helper queue objects. PrefillBootstrapQueue and DecodePreallocQueue keep scheduler-owned runtime state instead, so the debug path failed before KV manager initialization could complete.\n\nUse scheduler.spec_algorithm for both startup audits and record the ownership rule in the page-aligned cache ledger.\n\nConstraint: Queue helpers do not copy every scheduler field onto self.\nRejected: Disable EAGLE accept diagnostics | would lose the draft-transfer evidence needed for the accept-len investigation.\nConfidence: high\nScope-risk: narrow\nDirective: Disaggregation helper diagnostics should read scheduler-owned runtime state unless the constructor explicitly copied the field.\nTested: Local py_compile for prefill.py and decode.py.\nTested: Local git diff --check.\nTested: Synced prefill.py/decode.py to g0034 and remote container py_compile passed.\nNot-tested: Full disaggregated startup and ETE traffic after this fix; user controls runtime launch and load generation.
This commit is contained in:
@@ -509,7 +509,7 @@ class DecodePreallocQueue:
|
||||
len(kv_args.state_data_ptrs),
|
||||
)
|
||||
|
||||
if envs.SGLANG_EAGLE_ACCEPT_DEBUG.get() and self.spec_algorithm.is_eagle():
|
||||
if envs.SGLANG_EAGLE_ACCEPT_DEBUG.get() and self.scheduler.spec_algorithm.is_eagle():
|
||||
logger.info(
|
||||
"[EAGLE_ACCEPT_DEBUG] decode_kv_manager cp_rank=%s "
|
||||
"target_kv_bufs=%s draft_kv_bufs=%s total_kv_bufs=%s "
|
||||
|
||||
@@ -350,7 +350,7 @@ class PrefillBootstrapQueue:
|
||||
len(kv_args.state_data_ptrs),
|
||||
)
|
||||
|
||||
if envs.SGLANG_EAGLE_ACCEPT_DEBUG.get() and self.spec_algorithm.is_eagle():
|
||||
if envs.SGLANG_EAGLE_ACCEPT_DEBUG.get() and self.scheduler.spec_algorithm.is_eagle():
|
||||
logger.info(
|
||||
"[EAGLE_ACCEPT_DEBUG] prefill_kv_manager cp_rank=%s "
|
||||
"target_kv_bufs=%s draft_kv_bufs=%s total_kv_bufs=%s "
|
||||
|
||||
Reference in New Issue
Block a user