Skip to content

Commit

Permalink
✒️ Fix typo in formatting_func's documentation in `ConstantLengthDa…
Browse files Browse the repository at this point in the history
…taset` (#2549)
  • Loading branch information
SamuelLarkin authored Jan 7, 2025
1 parent a50124d commit 2f25f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trl/trainer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ class ConstantLengthDataset(IterableDataset):
Name of the field in the dataset that contains the text. Only one of `dataset_text_field` and
`formatting_func` should be provided.
formatting_func (`Callable`, *optional*):
Function that formats the text before tokenization. Usually it is recommended to have follows a certain
Function that formats the text before tokenization. Usually it is recommended to follow a certain
pattern such as `"### Question: {question} ### Answer: {answer}"`. Only one of `dataset_text_field` and
`formatting_func` should be provided.
infinite (`bool`, *optional*, defaults to `False`):
Expand Down

0 comments on commit 2f25f54

Please sign in to comment.