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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Update tokenizer_utils.py
Daniel Hana8f9f177b333
diff --git a/unsloth/tokenizer_utils.py b/unsloth/tokenizer_utils.pyindex 38d5949f4bb..7316656b2a2 100644--- a/unsloth/tokenizer_utils.py+++ b/unsloth/tokenizer_utils.py@@ -834,7 +834,7 @@ def fix_untrained_tokens(model, tokenizer, train_dataset, eps = 1e-16):# We instead check for repeated vectorslm_head_where = torch.where(indicator_untrained1)[0]lm_head_bad = lm_head_matrix[lm_head_where]- lm_head_bad = lm_head_bad.cpu().to(torch.float32).numpy().round(3)+ lm_head_bad = lm_head_bad.cpu().float().numpy().round(3)from collections import Countercounter = Counter()for row in lm_head_bad: counter[hash(row.data.tobytes())] += 1