Skip to content

Commit ec1211e

Browse files
committed
fmt
Signed-off-by: Will Johnson <mwjohnson728@gmail.com>
1 parent 61a17fa commit ec1211e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tuning/sft_trainer.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,11 @@ def train(
188188
"modules when using `--fast_moe` with LoRA."
189189
)
190190
# If other common non-linear modules, raise warning
191-
if peft_config is not None and hasattr(peft_config, "target_modules") and fast_moe_config.fast_moe is not None:
191+
if (
192+
peft_config is not None
193+
and hasattr(peft_config, "target_modules")
194+
and fast_moe_config.fast_moe is not None
195+
):
192196
logger.warning(
193197
"You are running lora with the ScatterMoE plugin, please note that "
194198
"passing target modules that are part of the moe module can cause unexpected "

0 commit comments

Comments
 (0)