Skip to content

Commit

Permalink
fix: update value error
Browse files Browse the repository at this point in the history
Signed-off-by: Mehant Kammakomati <[email protected]>
  • Loading branch information
kmehant committed Jan 9, 2025
1 parent 9612ac4 commit 108180d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tuning/data/setup_dataprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,15 @@ def _get_dataset_formatting_handlers(data_args, packing, is_padding_free=False):
if packing is False:
if is_padding_free:
logger.debug(
"Assuming extended pretraining scenario because, packing is false,"
"Assuming pretraining scenario (loss over all tokens) "
+ "because, packing is false,"
+ " padding_free plugin is used and no response template was provided."
)
else:
raise ValueError(
"Since dataset_text_field or data_formatter_template \
is provided and packing is disabled, \
needs a corresponding response template for masking"
"Since response_template is not provided for masking, \
either use packing or padding_free to enable \
pretraining scenario (loss over all tokens)."
)

if data_args.response_template:
Expand Down

0 comments on commit 108180d

Please sign in to comment.