From d892beb0e742a3d2bcc6e2d6e4f20b595b6b5d65 Mon Sep 17 00:00:00 2001 From: Qingru Zhang Date: Wed, 5 Apr 2023 16:31:58 -0400 Subject: [PATCH] Update src/peft/mapping.py Co-authored-by: Sourab Mangrulkar <13534540+pacman100@users.noreply.github.com> --- src/peft/mapping.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/peft/mapping.py b/src/peft/mapping.py index d9ca4fa..7d10f0f 100644 --- a/src/peft/mapping.py +++ b/src/peft/mapping.py @@ -150,9 +150,6 @@ def _prepare_adalora_config(peft_config, model_config): if model_config["model_type"] not in TRANSFORMERS_MODELS_TO_ADALORA_TARGET_MODULES_MAPPING: raise ValueError("Please specify `target_modules` in `peft_config`") peft_config.target_modules = TRANSFORMERS_MODELS_TO_ADALORA_TARGET_MODULES_MAPPING[model_config["model_type"]] - if len(peft_config.target_modules) == 1: - peft_config.fan_in_fan_out = True - # peft_config.enable_lora = [True, False, True] if peft_config.inference_mode: peft_config.merge_weights = True return peft_config