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 Han883d793607b9
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 76edb3ff019..279064b5eb9 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -801,6 +801,7 @@ def patch_linear_scaling(
f"{model_name.title()}Attention, {model_name.title()}Config"
print(exec_code)
+ print(inspect.getsource(attention_module.__init__))
try:
function = inspect.getsource(attention_module.__init__)
except: