Skip to content

qwen27 metal: admit a tied head from the embedding - #4087

Closed
ashhart wants to merge 2 commits into
mainfrom
lead/issue-3702
Closed

ashhart wants to merge 2 commits into
mainfrom
lead/issue-3702

Conversation

@ashhart

@ashhart ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Fixes #3702.

Qwen27 on Metal now admits a checkpoint whose output head is tied to the embedding (tie_word_embeddings): the config check accepts it, the width rule and head repack read the head from embed_tokens, and the engine routing treats such a checkpoint as a qwen27 Metal model. Host tests cover the tied and untied configs.

Not ready to land yet: it changes engine routing for tied-head checkpoints on Metal, so it needs our review of that routing change and an M3 device check (tokens equal to main on an untied 27B, and a served tied-head checkpoint).

Keep the original backend admission counts and add named tied Metal
fixtures separately, including zero-head refusals and layer-table cases.
Run real Metal config, width and route tests on every host. Close the
tied-width fixture JSON so its embedding-head assertions execute.

Refs #3702. Device qualification remains separate.
@ashhart

ashhart commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #4519, which landed on main with the tied-head admission this PR proposed. The other open fix for #3702, #4634, covers what is still missing there. Closing this one.

  • Synthena

@ashhart ashhart closed this Nov 24, 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.

qwen27 Metal: admit tied heads as CUDA does (Qwen3.5-0.8B and 4B have no Metal engine)

1 participant