We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61a17fa commit ec1211eCopy full SHA for ec1211e
1 file changed
tuning/sft_trainer.py
@@ -188,7 +188,11 @@ def train(
188
"modules when using `--fast_moe` with LoRA."
189
)
190
# 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:
+ 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
+ ):
196
logger.warning(
197
"You are running lora with the ScatterMoE plugin, please note that "
198
"passing target modules that are part of the moe module can cause unexpected "
0 commit comments