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.

fix: use peft.utils.other for ModulesToSaveWrapper import

danielhanchen3ffc8b1a5b64
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.py
index cfd900c4600..39f2ba1460a 100644
--- a/unsloth/models/llama.py
+++ b/unsloth/models/llama.py
@@ -146,7 +146,7 @@ torch_nn_functional_softmax = torch.nn.functional.softmax
# SDPA has GQA internally
SDPA_HAS_GQA = "enable_gqa" in scaled_dot_product_attention.__doc__
-from peft.tuners.tuners_utils import ModulesToSaveWrapper
+from peft.utils.other import ModulesToSaveWrapper
def _offload_frozen_module_for_training(