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 Han1ab912d52836
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 23297cc4a85..9dc82f1e52d 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -404,7 +404,6 @@ pass
# =============================================
# Weirdly LoraLayer.update_layer downcasts PEFT layers to float16??
# For mixed precision, we need it to be in float32 not float16.
-from packaging import Version
from peft import __version__
if Version(__version__) < Version("0.12.0"):
from peft.tuners.lora.layer import LoraLayer