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 Han4eca9215a2a1
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 2b8410032f6..b021e89e9d5 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -863,11 +863,9 @@ def patch_llama_rope_scaling(
"self.rotary_emb = .+?\)", function,
flags = re.DOTALL | re.MULTILINE,
)
- print(rotary_emb)
if len(rotary_emb) == 0: return None, function
rotary_emb = rotary_emb[0]
function = function.replace(rotary_emb, fix_rope_function, 1)
- print(function)
function = exec_code + "\n\n" + function
return init_name, function
pass