Skip to content

refactor: resolve model and speculative capture configuration at construction. - #2940

Draft
wai-bao wants to merge 1 commit into
xLLM-AI:mainfrom
wai-bao:refactor/model-construction-config
Draft

wai-bao wants to merge 1 commit into
xLLM-AI:mainfrom
wai-bao:refactor/model-construction-config

Conversation

@wai-bao

@wai-bao wai-bao commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Description

Separate checkpoint model settings, parallel topology, device placement, and runtime options when constructing Python models. Apply the resolved dtype to the model config before constructing the model.

Resolve the target's auxiliary hidden-state capture layers through the model-argument override shared by the engines and speculative workers. Clear capture layers on the draft and derive its projection width from the configured auxiliary states across speculative algorithms.

Change Type

  • Refactor

@wai-bao
wai-bao force-pushed the refactor/model-construction-config branch 23 times, most recently from f62cfac to 3e8afb2 Compare December 3, 2026 09:41
@wai-bao
wai-bao force-pushed the refactor/model-construction-config branch from 3e8afb2 to 721ac14 Compare December 4, 2026 10:05

This branch has not been deployed

No deployments
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