mirror of https://github.com/hpcaitech/ColossalAI
[chatgpt]fix train_rm bug with lora (#2741)
parent
b6e3b955c3
commit
648183a960
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue