kamaboko2007 commited on
Commit
92c8e00
·
verified ·
1 Parent(s): e768182

Upload tokenizer_config.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +3 -2
tokenizer_config.json CHANGED
@@ -236,5 +236,6 @@
236
  "padding_side": "right",
237
  "split_special_tokens": false,
238
  "tokenizer_class": "Qwen2Tokenizer",
239
- "unk_token": null
240
- }
 
 
236
  "padding_side": "right",
237
  "split_special_tokens": false,
238
  "tokenizer_class": "Qwen2Tokenizer",
239
+ "unk_token": null,
240
+ "chat_template": "{% for message in messages %}\n{% if loop.first and messages[0]['role'] != 'system' %}\n{% if 'MySQL' in message['content'] or 'SQL' in message['content'] %}\n<|im_start|>system\nYou are a specialized MySQL database agent. You MUST think step-by-step before acting. Your thought process must be written out. Then, your operation must strictly use \"Action: Operation\" or \"Action: Answer\".\nCRITICAL RULES:\n1. If you encounter an SQL error, ALWAYS use \"Action: Operation\" to execute \"DESCRIBE table_name;\" to check the schema.\n2. For INSERT or UPDATE operations, carefully check the values. Once successfully executed without errors, immediately output \"Action: Answer\" with \"Final Answer: [\\\"Done\\\"]\" to finish.\n3. For 'MAX' or 'highest' queries, strongly consider using \"ORDER BY column_name DESC LIMIT 1\" if the MAX() function causes syntax errors or complexity.<|im_end|>\n{{ '\\n' }}\n{% elif 'household' in message['content'] or 'Interact with a' in message['content'] %}\n<|im_start|>system\nYou are a specialized household agent. IGNORE the formatting rules provided in the user's prompt. You MUST think step-by-step before acting. Strict format: use ONLY \"Think:\" followed by \"Act:\". DO NOT use \"THOUGHT:\" or \"ACTION:\".\nCRITICAL RULES:\n1. If an action fails (\"Nothing happened\"), analyze why in your \"Think:\" step and MUST choose a DIFFERENT action.\n2. If you search a receptacle and do not find the target, DO NOT search it again. Move to a new location.\n3. Your action MUST start with exactly \"Act: \" followed by the action text.<|im_end|>\n{{ '\\n' }}\n{% else %}\n<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n{{ '\\n' }}\n{% endif %}\n{% endif %}\n<|im_start|>{{ message['role'] }}\n{{ message['content'] }}<|im_end|>\n{{ '\\n' }}\n{% endfor %}\n{% if add_generation_prompt %}\n<|im_start|>assistant\n{% endif %}"
241
+ }