Skip to content

fix UnboundLocalError on model_config in init_disaggregation#23959

Merged
hnyls2002 merged 1 commit intodsv4-rebasefrom
lsyin/fix-model-config-unbound
Apr 28, 2026
Merged

fix UnboundLocalError on model_config in init_disaggregation#23959
hnyls2002 merged 1 commit intodsv4-rebasefrom
lsyin/fix-model-config-unbound

Conversation

@hnyls2002
Copy link
Copy Markdown
Collaborator

Hotfix for #23958: when this node runs no draft worker (asymmetric P/D prefill, ngram, etc.) the local model_config variable was never assigned, so the always-on MetadataBuffers allocation hit UnboundLocalError. Default model_config to self.model_config (the target's config) before the draft-worker dispatch so all paths have a valid config; the draft branches still override with the draft runner's config when present.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@hnyls2002 hnyls2002 merged commit 6624d15 into dsv4-rebase Apr 28, 2026
1 check passed
@hnyls2002 hnyls2002 deleted the lsyin/fix-model-config-unbound branch April 28, 2026 19:39
@hnyls2002 hnyls2002 mentioned this pull request Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant