We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 974e17b commit df64341Copy full SHA for df64341
mlx_lm/tuner/datasets.py
@@ -105,7 +105,7 @@ def process(self, d):
105
{"role": "user", "content": d[self.prompt_key]},
106
{"role": "assistant", "content": d[self.completion_key]},
107
]
108
- tokens = _apply_chat_template_safe(self.tokenizer, messages, tools=tools)
+ tokens = self.tokenizer.apply_chat_template(messages, tools=tools)
109
if self.mask_prompt:
110
offset = len(
111
self.tokenizer.apply_chat_template(
0 commit comments