Bump Transformers version to 5.10.4 (#41359)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2026-07-07 05:13:28 -07:00
committed by GitHub
parent 7ff656cc8b
commit dd94484577
51 changed files with 271 additions and 234 deletions
@@ -195,7 +195,7 @@ class Moondream3Processor(ProcessorMixin):
The moondream3 model uses a custom tokenizer from 'moondream/starmie-v1'
instead of having tokenizer files in the model repo.
"""
from transformers import AutoTokenizer, PreTrainedTokenizerFast
from transformers import AutoTokenizer, TokenizersBackend
from transformers.utils import cached_file
tokenizer = kwargs.pop("tokenizer", None)
@@ -237,7 +237,7 @@ class Moondream3Processor(ProcessorMixin):
"tokenizer.json",
**cached_file_kwargs,
)
return PreTrainedTokenizerFast(
return TokenizersBackend(
tokenizer_file=tokenizer_file,
clean_up_tokenization_spaces=False,
)