omarabb315
commited on
Upload tokenizer
Browse files- tokenizer_config.json +1 -0
tokenizer_config.json
CHANGED
@@ -2000,6 +2000,7 @@
|
|
2000 |
"<end_of_turn>"
|
2001 |
],
|
2002 |
"bos_token": "<bos>",
|
|
|
2003 |
"clean_up_tokenization_spaces": false,
|
2004 |
"eos_token": "<eos>",
|
2005 |
"model_max_length": 8192,
|
|
|
2000 |
"<end_of_turn>"
|
2001 |
],
|
2002 |
"bos_token": "<bos>",
|
2003 |
+
"chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = 'Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\n' + messages[0]['content'] + '\n\n\n### Input:'%}{% else %}{% set loop_messages = messages %}{% set system_message = 'Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\nGenerate a JSON object from the Input Arabic search query\n\nAnd use only the related facets from this list:\n[\"product\", \"price\", \"currency\", \"size\", \"color\", \"material\", \"brand\", \"pattern\", \"style\", \"fit\", \"length\", \"neckline\", \"sleeve_type\", \"gender\", \"age_group\", \"waist_type\", \"rise\", \"closure_type\", \"heel_type\", \"toe_type\", \"capacity\", \"skin_type\", \"hair_type\", \"finish\", \"formula_type\", \"ingredients\", \"fragrance\", \"purpose\", \"application_method\", \"target_area\", \"hair_concerns\"]\n\n\n### Input:\n' %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = system_message %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{% if loop.index0 == 0 %}{{ content + '\"' + message['content'] + '\"' }}{% else %}{{ content.strip() }}{% endif %}{% elif message['role'] == 'assistant' %}{{ content.strip() }}{% endif %}{% endfor %}{% if add_generation_prompt and messages[-1]['role'] != 'assistant' %}{{'\n\n### Response:\n'}}{% endif %}",
|
2004 |
"clean_up_tokenization_spaces": false,
|
2005 |
"eos_token": "<eos>",
|
2006 |
"model_max_length": 8192,
|