Update chat_templates.py
This commit is contained in:
parent
60eccec650
commit
b63cafd329
1 changed files with 5 additions and 0 deletions
|
|
@ -1940,6 +1940,11 @@ extra_eos_tokens = None,
|
|||
tokenizer._ollama_modelfile = modelfile
|
||||
tokenizer._unsloth_input_part = input_part
|
||||
tokenizer._unsloth_output_part = output_part
|
||||
if hasattr(tokenizer, "tokenizer"):
|
||||
tokenizer.tokenizer.chat_template = jinja_template
|
||||
tokenizer.tokenizer._ollama_modelfile = modelfile
|
||||
tokenizer.tokenizer._unsloth_input_part = input_part
|
||||
tokenizer.tokenizer._unsloth_output_part = output_part
|
||||
|
||||
return dataset.map(formatting_prompts_func, batched = True,)
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue