6 Downloads Updated 1 year ago
ollama run taejoonlee/v3
chat_template = “”“Below are some instructions that describe some tasks. Start your response with a JSON object, where {{is_recipe_request}} is true if the instruction is requesting a recipe (false otherwise), and {{recipe_name}} is the extracted recipe name or null if none. Follow this with a plain text answer detailing the response.
{INPUT}
{OUTPUT} “””
from unsloth import apply_chat_template dataset = apply_chat_template( dataset, tokenizer=tokenizer, chat_template=chat_template, default_system_message = “Start your response with a JSON object including ‘is_recipe_request’ and ‘recipe_name’. ‘is_recipe_request’ should be true if the instruction requests a recipe, false otherwise. ‘recipe_name’ should be the name of the recipe requested or null if none. Follow with a plain text answer detailing the response.” )