Skip to content

PEFT MoE snapshot: add transformers' Dots3NoteTextModel alias - #17606

Merged
danielhanchen merged 1 commit into
mainfrom
peft-moe-snapshot-dots3-note
Nov 12, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
peft-moe-snapshot-dots3-note

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

The pinned-symbol matrix (vLLM, TRL, PEFT, ST, bitsandbytes, transformers) job fails on any PR that runs it (seen in the staging run for #17597):

FAILED tests/version_compat/test_peft_conversion_symbol_backfill.py::test_the_fused_snapshot_matches_upstream
E   AssertionError: fused MoE types missing from the snapshot: ['Dots3NoteTextModel']

That test is a canary. It reads transformers' conversion_mapping.py on main and checks that every fused MoE alias in it is also in _PEFT_MOE_CONVERSION_PATTERNS in unsloth/import_fixes.py, the snapshot used when the live map is not available. transformers added a new alias today in huggingface/transformers#47844 (dots3-note Preview support):

"Dots3NoteTextModel": "qwen2_moe",

Like the UnlimitedOcrTextModel entry already in the snapshot, it is keyed by class name rather than model type. The canary is right: without the entry, the stand-in map would let a fused dots3-note checkpoint fall through without its MoE conversion.

Change

unsloth/import_fixes.py: "Dots3NoteTextModel": "qwen2_moe" added to _PEFT_MOE_CONVERSION_PATTERNS, next to the other class-keyed alias, with a comment saying where it comes from.

Testing

  • tests/version_compat/test_peft_conversion_symbol_backfill.py against the live upstream map: 69 passed.
  • With main's import_fixes.py, test_the_fused_snapshot_matches_upstream fails with the error above.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T17:54:51.866252Z 6b31b63 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 6b31b635ca

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit d9827dc into main Nov 12, 2026
@danielhanchen
danielhanchen deleted the peft-moe-snapshot-dots3-note branch November 12, 2026 17:57
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