diff --git a/recipes/ppo_full_finetune_single_device.py b/recipes/ppo_full_finetune_single_device.py index c89521ccfc..71395527ee 100644 --- a/recipes/ppo_full_finetune_single_device.py +++ b/recipes/ppo_full_finetune_single_device.py @@ -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." )