Skip to content

PEFT MoE conversion snapshot: add sarvam_mla - #18489

Merged
danielhanchen merged 1 commit into
mainfrom
ci/peft-snapshot-sarvam-mla
Nov 19, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci/peft-snapshot-sarvam-mla

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

pinned-symbol matrix (vLLM, TRL, PEFT, ST, bitsandbytes, transformers) fails on main for every PR (seen on #18488, which only touches attention dispatch):

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: ['sarvam_mla']

Root cause

Not a change in this repo. transformers main added "sarvam_mla": "qwen2_moe" to src/transformers/conversion_mapping.py. unsloth/import_fixes.py keeps a snapshot of that map (_PEFT_MOE_CONVERSION_PATTERNS) for PEFT versions where the live map is gone, and test_the_fused_snapshot_matches_upstream is the canary that fetches the upstream file and fails when a fused MoE alias is missing from the snapshot. It did its job: sarvam_mla has no "moe" in its name, so without the entry the stand-in would silently miss it.

Changes

  • unsloth/import_fixes.py: add "sarvam_mla": "qwen2_moe" to _PEFT_MOE_CONVERSION_PATTERNS, next to the other upstream aliases, with a dated note like the existing ones.

Testing

  • pytest tests/version_compat/test_peft_conversion_symbol_backfill.py: 69 passed.
  • The canary fetched the live upstream map in both arms (not skipped): passes with this change, fails without it with the error above.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 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-19T15:28:56.497340Z bd2ce6e 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.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: bd2ce6ed90

ℹ️ 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 6ab77f8 into main Nov 19, 2026
@danielhanchen
danielhanchen deleted the ci/peft-snapshot-sarvam-mla branch November 19, 2026 15:30
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