Skip to content

Commit 0f7796e

Browse files
committed
comment
Signed-off-by: Will Johnson <mwjohnson728@gmail.com>
1 parent d7c2d15 commit 0f7796e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tuning/sft_trainer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ def train(
397397
# For LoRa ScatterMoE, disable grad for ScatterMoE
398398
if peft_config is not None:
399399
for module in model.modules():
400+
# Use string comparison to check if ScatterMoE module
400401
if module.__class__.__name__ == "ScatterMoE":
401402
for param in module.parameters():
402403
param.requires_grad = False

0 commit comments

Comments
 (0)