Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Update tokenizer_utils.py

Daniel Han14144ad6fc60
diff --git a/unsloth/tokenizer_utils.py b/unsloth/tokenizer_utils.py
index e0c89e4516e..7b88b0932fc 100644
--- a/unsloth/tokenizer_utils.py
+++ b/unsloth/tokenizer_utils.py
@@ -498,7 +498,8 @@ def load_correct_tokenizer(
cache_dir = cache_dir,
)
- if tokenizer_name in IGNORED_TOKENIZER_NAMES: pass
+ if tokenizer_name in IGNORED_TOKENIZER_NAMES:
+ return fast_tokenizer
elif slow_tokenizer is not None:
if hasattr(fast_tokenizer, "add_bos_token") and hasattr(slow_tokenizer, "add_bos_token"):
fast_tokenizer.add_bos_token = slow_tokenizer.add_bos_token