From 1ab912d528367d5192cc549fc02eb9165705fa17 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Thu, 25 Jul 2024 00:29:12 -0700 Subject: [PATCH] Update _utils.py --- unsloth/models/_utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py index 23297cc4a8..9dc82f1e52 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