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.

1 more bug (#138)

Daniel Hanaf332245543b
diff --git a/unsloth/save.py b/unsloth/save.py
index 471897c0ad9..744ec48327d 100644
--- a/unsloth/save.py
+++ b/unsloth/save.py
@@ -80,7 +80,8 @@ def _merge_lora(layer, name):
if quant_state is not None:
dtype = quant_state.dtype if type(quant_state) is not list else quant_state[2]
W = fast_dequantize(W, quant_state)
- pass
+ else:
+ dtype = W.dtype
W = W.to(torch.float32).t()
if A is not None: