Skip to content

PEFT MoE conversion snapshot: add beam, which transformers main now fuses as qwen2_moe - #14005

Merged
danielhanchen merged 1 commit into
mainfrom
dh/ci-peft-moe-beam
Oct 16, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
dh/ci-peft-moe-beam

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

pinned-symbol matrix (vLLM, TRL, PEFT, ST, bitsandbytes, transformers) fails on PRs based on current main (for example #13986):

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

The test is the canary for this case. It reads transformers main's conversion_mapping.py, and huggingface/transformers#49664 (today) added "beam": "qwen2_moe" there. _PEFT_MOE_CONVERSION_PATTERNS in unsloth/import_fixes.py is the snapshot our PEFT MoE config handling falls back on. Without the entry, a beam model's LoRA config would miss the fused-expert conversion, because the name says nothing about MoE. The snapshot is behind; the test is right.

Change

Add "beam": "qwen2_moe" to the snapshot, in alphabetical order with the other qwen2_moe-family entries.

Testing

  • tests/version_compat/test_peft_conversion_symbol_backfill.py: 68 passed on transformers 5.18, 5.20 and 4.57.6.
  • Without the entry, test_the_fused_snapshot_matches_upstream fails with the CI message above.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
🔒 Security Review 🔄 Running since 2026-10-16T13:30:30.667875Z 7bea398 PR opened
ℹ️ 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

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T13:31:22.515782Z 7bea398 Manual request
🔒 Security Review ⚠️ Failed 2026-10-16T13:30:33.950775Z 7bea398 PR opened
ℹ️ 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. Can't wait for the next one!

Reviewed commit: 7bea39880e

ℹ️ 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 955e2eb into main Oct 16, 2026
@danielhanchen
danielhanchen deleted the dh/ci-peft-moe-beam branch October 16, 2026 13:37
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