Skip to content

Commit

Permalink
Fix stop tokens in PPO (#2304)
Browse files Browse the repository at this point in the history
  • Loading branch information
RedTachyon authored Jan 31, 2025
1 parent afd5bc4 commit 6487029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/ppo_full_finetune_single_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def _setup_training_hyperparameters(self, cfg) -> None:
"This may lead to unexpected behaviour."
)
else:
if not hasattr(self._tokenizer.stop_tokens):
if not hasattr(self._tokenizer, "stop_tokens"):
warn(
"No stop tokens defined in tokenizer, and no stop_token_ids provided. This may lead to unexpected behaviour."
)
Expand Down

0 comments on commit 6487029

Please sign in to comment.