Skip to content

test(moe): ship a tiny tokenizer with the #4400 reload fixture (#6556) - #6557

Merged
Qubitium merged 1 commit into
mainfrom
test/stale-tokenizer-fixtures-6386
Dec 1, 2026
Merged

Qubitium merged 1 commit into
mainfrom
test/stale-tokenizer-fixtures-6386

Conversation

@Qubitium

@Qubitium Qubitium commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes #6556

#6386 made GPTQModel.load reject 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 bare OlmoeForCausalLM and 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: one write_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.
  • No product code change.

Tests

  • Executed and passed.
  • Not applicable (new test): stale fixture; the test itself is the regression.
# RED: origin/main c649fcb5f
pytest -q tests/test_moe_reload_meta_e2e_4400.py
1 failed   # ValueError: Tokenizer files are missing from `.../dense`
# GREEN: this branch (RTX 4090)
pytest -q tests/test_moe_reload_meta_e2e_4400.py
1 passed

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

  • Reviewed; reuses the shared tiny-tokenizer helper; minimal surface.

Kernel Accuracy Requirements

Not applicable.

Notes

Found by the release-readiness sweep on origin/main c649fcb.

🤖 Generated with Claude Code

#6386 rejects checkpoints without tokenizer files; the synthetic OLMoE
fixture saved none.

Fixes #6556

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Qubitium
Qubitium marked this pull request as ready for review December 1, 2026 02:47
@Qubitium
Qubitium merged commit e2e05d2 into main Dec 1, 2026
2 checks passed
@Qubitium
Qubitium deleted the test/stale-tokenizer-fixtures-6386 branch December 1, 2026 02:47
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.

[TEST] moe_reload_meta_e2e_4400 fixture saves a checkpoint without tokenizer files (rejected since #6386)

1 participant