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 Haned45bd9cd3b3
diff --git a/unsloth/kernels/utils.py b/unsloth/kernels/utils.py
index 7cd51e9ff0a..1d4b494dd73 100644
--- a/unsloth/kernels/utils.py
+++ b/unsloth/kernels/utils.py
@@ -451,7 +451,7 @@ pass
def matmul_lora(X, W, W_quant, A, B, s, out = None):
dtype = X.dtype
- W = fast_dequantize(W.t(), W_quant, use_global_buffer = True)
+ W = fast_dequantize(W.t(), W_quant, use_global_buffer = False)
if X.dim() == 3:
batch, seq_len, d = X.shape
@@ -461,6 +461,7 @@ def matmul_lora(X, W, W_quant, A, B, s, out = None):
reshape = False
pass
+ print(X.device, W.device, torch.cuda.current_device())
out = torch_matmul(X, W, out = out)
if W_quant is not None: del W