[tokenizer] Qwen3.5+ 使用固定转换器的泰语/印度语文本分词错误==5.12.1 (transformers#49066)
作者: dengoswei创建于 2026年9月27日更新于 2026年9月28日
This is a transformers bug, not a verl bug, but verl's pin makes every Qwen3.5+ run inherit it with no way to avoid it by version choice, so filing here for visibility. In transformers v5, `Qwen2Tokenizer` overwrites the pre-tokenizer from the checkpoint's `tokenizer.json` with a built-in regex that lacks `\p{M}` (combining marks). Qwen3.5+ checkpoints ship a pre-tokenizer that includes `\p{M}`, so text in scripts that rely on combining marks (Thai, Hindi/Devanagari, ...) is split into more, different token ids than the model was trained with. There is no error or warning. Upstream: huggingface/transformers#49066, fix huggingface/transformers#49077 (open, not in a release yet).
内容来源: verl-project/verl