mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-13 05:01:44 +00:00
[chatgpt]fix train_rm bug with lora (#2741)
This commit is contained in:
@@ -43,7 +43,7 @@ class RewardModelTrainer(ABC):
|
||||
# train
|
||||
if use_lora > 0:
|
||||
print("Using Lora")
|
||||
lora.mark_only_lora_as_trainable(self.model)
|
||||
lora.mark_only_lora_as_trainable(self.model.model)
|
||||
else:
|
||||
self.model.train()
|
||||
for chosen_ids, c_mask, reject_ids, r_mask in self.train_dataloader:
|
||||
|
Reference in New Issue
Block a user