Repository navigation
test(moe): ship a tiny tokenizer with the #4400 reload fixture (#6556) - #6557
Merged
Merged
Conversation
#6386 rejects checkpoints without tokenizer files; the synthetic OLMoE fixture saved none. Fixes #6556 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #6556
#6386 made
GPTQModel.loadreject checkpoints that ship no tokenizer files.tests/test_moe_reload_meta_e2e_4400.py(GPU-only, so missed by #6386's fixture sweep) saves a bareOlmoeForCausalLMand now fails at load. The fixture now writes the shared tiny tokenizer (tests/tiny_tokenizer.write_tiny_tokenizer) next to the dense checkpoint, matching the other fixtures #6386 updated.What Changed
tests/test_moe_reload_meta_e2e_4400.py: onewrite_tiny_tokenizer(dense, vocab_size=config.vocab_size)call plus its import. The test's assertions (bitwise-identical reload of the meta expert shell) are unchanged.Tests
Lint:
uvx [email protected] check ... tests ...: All checks passed. Environment: torch 2.15.0+cu132, transformers 5.23.0, Python 3.14, 1x RTX 4090.Measured Impact
Not applicable (tests only).
Model Support / Module Plan
Not applicable.
AWQ onboarding safety
Not applicable.
Logic Flow Documentation
Not applicable.
Review Requirements
Kernel Accuracy Requirements
Not applicable.
Notes
Found by the release-readiness sweep on
origin/mainc649fcb.🤖 Generated with Claude Code