diff --git a/scripts/data_prep/convert_dataset_hf.py b/scripts/data_prep/convert_dataset_hf.py index f33f24e478..69d4684eac 100644 --- a/scripts/data_prep/convert_dataset_hf.py +++ b/scripts/data_prep/convert_dataset_hf.py @@ -232,7 +232,7 @@ def build_hf_dataset( else: if not isinstance(tokenizer, PreTrainedTokenizerBase): raise ValueError( - f'{tokenizer=} must be of type PreTrainedTokenizerBase') + f'{tokenizer} must be of type PreTrainedTokenizerBase') if max_length is None: raise ValueError(f'max_length must be set.') if bos_text + eos_text == '':