Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions python/sglang/srt/managers/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,10 @@ def init_disaggregation(self):
self.server_args.disaggregation_transfer_backend
)

# Default to the target model_config so the MetadataBuffers branches
# below can always access it; overridden by the draft model_config
# when this node runs a spec module.
model_config = self.model_config
if self.draft_worker is None or self.spec_algorithm.is_ngram():
draft_token_to_kv_pool = None
elif self.spec_algorithm.supports_spec_v2() and self.enable_overlap:
Expand Down
Loading