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 Han54ed0fa410cf
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index bd40fbd2eba..692f48488ce 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -691,8 +691,8 @@ def patch_compiling_bitsandbytes():
import peft.tuners.lora.bnb
peft.tuners.lora.bnb.Linear4bit.forward = \
torch._disable_dynamo(peft.tuners.lora.bnb.Linear4bit.forward)
- peft.tuners.lora.bnb.Linear8bit.forward = \
- torch._disable_dynamo(peft.tuners.lora.bnb.Linear8bit.forward)
+ peft.tuners.lora.bnb.Linear8bitLt.forward = \
+ torch._disable_dynamo(peft.tuners.lora.bnb.Linear8bitLt.forward)
return
pass
# =============================================