Skip to content

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

Done

Description

@Qubitium

Summary

tests/test_moe_reload_meta_e2e_4400.py::test_meta_expert_shell_reloads_bitwise_identically fails on origin/main (c649fcb):

ValueError: Tokenizer files are missing from `.../dense`: expected `tokenizer.json`, `tokenizer_config.json`, or `vocab.json` ...

Cause (stale fixture)

#6386 made GPTQModel.load reject checkpoints that ship no tokenizer files, instead of letting Transformers 5 build a one-token tokenizer. It updated the synthetic fixtures it found with tests/tiny_tokenizer.write_tiny_tokenizer, but this GPU-only test saves a bare OlmoeForCausalLM without a tokenizer, so the guard (correctly) rejects it.

Fix

Write the tiny tokenizer next to the synthetic dense checkpoint: write_tiny_tokenizer(dense, vocab_size=config.vocab_size).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions