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.

Add support for modules_to_save in FastModel.get_peft_model (#3317)

lightsource67d918b00b2a
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py
index 7a07a8d0fd7..1451ed92cdc 100644
--- a/unsloth/models/vision.py
+++ b/unsloth/models/vision.py
@@ -646,6 +646,7 @@ class FastBaseModel:
"lora_dropout" : lora_dropout,
"bias" : bias,
"task_type" : task_type,
+ "modules_to_save" : modules_to_save,
"use_rslora" : use_rslora,
"init_lora_weights" : init_lora_weights,
"loftq_config" : loftq_config,