@@ -44,8 +44,8 @@ def conversations_formatting_function(
4444 tokenizer apply chat template to the dataset along with the schema of the list of functions in the tools list.
4545
4646 .. deprecated:: 0.24.0
47- `conversations_formatting_function` is deprecated and will be removed in version 0.27.
48- Please use `tokenizer.apply_chat_template()` directly instead.
47+ `conversations_formatting_function` is deprecated and will be removed in version 0.27. Please use
48+ `tokenizer.apply_chat_template()` directly instead.
4949 """
5050 warnings .warn (
5151 "`conversations_formatting_function` is deprecated and will be removed in TRL 0.27. "
@@ -74,8 +74,8 @@ def instructions_formatting_function(tokenizer: AutoTokenizer):
7474 tokenizer apply chat template to the dataset
7575
7676 .. deprecated:: 0.24.0
77- `instructions_formatting_function` is deprecated and will be removed in version 0.27.
78- Please use `tokenizer.apply_chat_template()` directly instead.
77+ `instructions_formatting_function` is deprecated and will be removed in version 0.27. Please use
78+ `tokenizer.apply_chat_template()` directly instead.
7979 """
8080 warnings .warn (
8181 "`instructions_formatting_function` is deprecated and will be removed in TRL 0.27. "
@@ -122,8 +122,8 @@ def get_formatting_func_from_dataset(
122122 Callable: Formatting function if the dataset format is supported else None
123123
124124 .. deprecated:: 0.24.0
125- `get_formatting_func_from_dataset` is deprecated and will be removed in version 0.27.
126- Please use `tokenizer.apply_chat_template()` directly instead.
125+ `get_formatting_func_from_dataset` is deprecated and will be removed in version 0.27. Please use
126+ `tokenizer.apply_chat_template()` directly instead.
127127 """
128128 warnings .warn (
129129 "`get_formatting_func_from_dataset` is deprecated and will be removed in TRL 0.27. "
0 commit comments