Open rodrigomeireles opened 2 months ago
i am not sure what you are trying to do , but if its mimicking a flow of conversation then you can use this -> `from unsloth import to_sharegpt dataset = to_sharegpt( dataset, merged_prompt = "{instruction}[[\nYour input is:\n{input}]]", output_column_name = "output", conversation_extension = 2, # Select more to handle longer conversations )
from unsloth import standardize_sharegpt dataset = standardize_sharegpt(dataset)
`
Simply adding a newline to the default template in
chat_templates.construct_chat_template
causes a RuntimeError:The template:
causes
This was using Unsloth's Llama 3.1 Instruct.