5 Downloads Updated 1 year ago
ollama run taejoonlee/v4
chat_template = “”“Below are some instructions that describe some tasks. Start your response with a JSON object, followed by a plain text answer.
{INPUT}
{{“is_recipe_request”: {is_recipe_request}, “recipe_name”: “{recipe_name}”}} {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’. Follow with a plain text answer detailing the response.” )