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 Hanc0b4d640f245
diff --git a/unsloth/tokenizer_utils.py b/unsloth/tokenizer_utils.py
index 477d993e69d..04690d3566f 100644
--- a/unsloth/tokenizer_utils.py
+++ b/unsloth/tokenizer_utils.py
@@ -1180,11 +1180,6 @@ def patch_sft_trainer_tokenizer():
check_text = \
"\n"\
- "if self._inner_training_loop.__name__ != '_fast_inner_training_loop':\n"\
- " raise RuntimeError(\n"\
- " 'Please do not edit specific areas of the Unsloth codebase or you will get CUDA segfaults.'\n"\
- " )\n"\
- "pass\n"\
"import subprocess, re, gc, numpy as np\n"\
"a = np.array([0,])\n"\
"try:\n"\