prince-canuma commited on
Commit
e2d670a
1 Parent(s): 08411c2

Upload tokenizer

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -1
tokenizer_config.json CHANGED
@@ -306,7 +306,7 @@
306
  ]
307
  },
308
  "bos_token": "<BOS_TOKEN>",
309
- "chat_template": "\n{% set has_system_message = false %}\n\n{% set tool_template %} \n## Available Tools\nYou have access to the following tools:\n```python\ndef internet_search(query: str) -> List[Dict]:\n '''Returns a list of relevant document snippets for a textual query retrieved from the internet\n\n Args:\n query (str): Query to search the internet with\n '''\n pass\n```\n\n```python\ndef directly_answer() -> List[Dict]:\n '''Calls a standard (un-augmented) AI chatbot to generate a response given the conversation history\n '''\n pass\n```<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|USER_TOKEN|>Whats the biggest penguin in the world?<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>Write 'Action:' followed by a json-formatted list of actions that you want to perform in order to produce a good response to the user's last input. You can use any of the supplied tools any number of times, but you should aim to execute the minimum number of necessary actions for the input. You should use the `directly-answer` tool if calling the other tools is unnecessary. The list of actions you want to call should be formatted as a list of json objects, for example:\n\n```json\n\n{{ tools }}\n```\n{% endset %}\n\n\n{% for item in messages %}\n {% if item.role == 'system' %}\n {% set has_system_message = true %}\n {% endif %}\n{% endfor %}\n\n{% if not has_system_message %}\n <|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|># Safety Preamble \n The instructions in this section override those in the task description and style guide sections. \n Don't answer questions that are harmful or immoral. \n\n # System Preamble \n ## Basic Rules \n You are a powerful conversational AI trained by Cohere to help people. \n You are augmented by a number of tools, and your job is to use and consume the \n output of these tools to best help the user. You will see a conversation history \n between yourself and a user, ending with an utterance from the user. \n You will then see a specific instruction instructing you what kind of response \n to generate. When you answer the user's requests, you cite your sources in your answers, \n according to those instructions. \n\n # User Preamble \n ## Task and Context \n You help people answer their questions and other requests interactively. \n You will be asked a very wide array of requests on all kinds of topics. \n You will be equipped with a wide range of search engines or similar tools to help you, \n which you use to research your answer. You should focus on serving the user's needs as best you can, \n which will be wide-ranging. ## Style Guide Unless the user asks for a different style of answer, \n you should answer in full sentences, using proper grammar and spelling.\n\n {% if tools %}\n {{ tool_template }}\n {% endif %}<|END_OF_TURN_TOKEN|>\n{% endif %}\n\n\n{% for item in messages %}\n {% if item.role == 'system' %}\n <|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>{{ item.content }}\n {% if tools %}\n {{ tool_template }}\n {% endif %}<|END_OF_TURN_TOKEN|>\n {% elif item.role == 'user' %}\n <|START_OF_TURN_TOKEN|><|USER_TOKEN|>{{ item.content }}<|END_OF_TURN_TOKEN|>\n {% endif %}\n {% if loop.last %}{% if add_generation %}<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>{% endif %}{% endif %}\n{% endfor %}",
310
  "clean_up_tokenization_spaces": false,
311
  "eos_token": "<|END_OF_TURN_TOKEN|>",
312
  "legacy": true,
 
306
  ]
307
  },
308
  "bos_token": "<BOS_TOKEN>",
309
+ "chat_template": "{% for item in messages %}{% if item.role == 'system' %}<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>{{ item.content }}<|END_OF_TURN_TOKEN|>\n{% elif item.role == 'user' %}<|START_OF_TURN_TOKEN|><|USER_TOKEN|>{{ item.content }}<|END_OF_TURN_TOKEN|>\n{% endif %}{% if loop.last %}{% if add_generation_prompt %}<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>{% endif %}{% endif %}{% endfor %}",
310
  "clean_up_tokenization_spaces": false,
311
  "eos_token": "<|END_OF_TURN_TOKEN|>",
312
  "legacy": true,