From 026638f5cc62e1fc06c63c0904775bc69e728bf0 Mon Sep 17 00:00:00 2001 From: lightsource <142080508+l1ghtsource@users.noreply.github.com> Date: Tue, 16 Sep 2025 08:41:34 +0300 Subject: [PATCH] Add support for modules_to_save in FastModel.get_peft_model (#3317) * patch modules_to_save * Update vision.py --------- Co-authored-by: Daniel Han --- unsloth/models/vision.py | 1 + 1 file changed, 1 insertion(+) diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py index 7a07a8d0fd..1451ed92cd 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,