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 _utils.py

Daniel Han-Chen2771e5042b45
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 8864ebab4b2..32da0a73459 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -153,7 +153,7 @@ def patch_tokenizer(model, tokenizer):
tokenizer.pad_token = tokenizer.unk_token
else:
name = model.config._name_or_path if model is not None else "Model"
- logger.warning_one(
+ logger.warning_once(
f"{name} does not have a padding or unknown token!\n"\
f"Will use the EOS token of id {tokenizer.eos_token_id} as padding."
)