You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix tokenizer_class incompatibility with transformers 5.0 (#2403)
On transformers 5.0, save_pretrained() writes "TokenizersBackend" as the
tokenizer_class. The existing fixup code appends "Fast" to any non-Fast
class name, producing "TokenizersBackendFast" which doesn't exist in any
transformers version, breaking all downstream consumers (vLLM, evalplus).
Fix: read tokenizer_class from the source model instead of from the
save_pretrained output, preserving a backwards-compatible model-specific
class name (e.g. LlamaTokenizerFast) regardless of which transformers
version does the saving.
0 commit comments