This commit is contained in:
hiyouga 2023-12-03 21:40:40 +08:00
parent 747db40172
commit 8b681ee273
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class CustomPPOTrainer(PPOTrainer, Trainer):
if self.args.max_steps > 0:
logger.info("max_steps is given, it will override any value given in num_train_epochs")
if reward_model is not None:
if finetuning_args.reward_model_type == "full":
if self.is_deepspeed_enabled:
if not (
getattr(reward_model.pretrained_model, "is_loaded_in_8bit", False)