Mubin1917 commited on
Commit
b783044
1 Parent(s): 4872814

Upload model trained with Unsloth

Browse files

Upload model trained with Unsloth 2x faster

Files changed (3) hide show
  1. added_tokens.json +1 -0
  2. tokenizer.json +9 -0
  3. tokenizer_config.json +9 -1
added_tokens.json CHANGED
@@ -9,5 +9,6 @@
9
  "<|placeholder5|>": 32008,
10
  "<|placeholder6|>": 32009,
11
  "<|system|>": 32006,
 
12
  "<|user|>": 32010
13
  }
 
9
  "<|placeholder5|>": 32008,
10
  "<|placeholder6|>": 32009,
11
  "<|system|>": 32006,
12
+ "<|tool|>": 32011,
13
  "<|user|>": 32010
14
  }
tokenizer.json CHANGED
@@ -128,6 +128,15 @@
128
  "rstrip": true,
129
  "normalized": false,
130
  "special": true
 
 
 
 
 
 
 
 
 
131
  }
132
  ],
133
  "normalizer": {
 
128
  "rstrip": true,
129
  "normalized": false,
130
  "special": true
131
+ },
132
+ {
133
+ "id": 32011,
134
+ "content": "<|tool|>",
135
+ "single_word": false,
136
+ "lstrip": false,
137
+ "rstrip": false,
138
+ "normalized": false,
139
+ "special": true
140
  }
141
  ],
142
  "normalizer": {
tokenizer_config.json CHANGED
@@ -114,10 +114,18 @@
114
  "rstrip": true,
115
  "single_word": false,
116
  "special": true
 
 
 
 
 
 
 
 
117
  }
118
  },
119
  "bos_token": "<s>",
120
- "chat_template": "{% for message in messages %}{% if message['role'] == 'system' and message['content'] %}{{'<|system|>\n' + message['content'] + '<|end|>\n'}}{% elif message['role'] == 'user' %}{{'<|user|>\n' + message['content'] + '<|end|>\n'}}{% elif message['role'] == 'assistant' %}{{'<|assistant|>\n' + message['content'] + '<|end|>\n'}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|>\n' }}{% else %}{{ eos_token }}{% endif %}",
121
  "clean_up_tokenization_spaces": false,
122
  "eos_token": "<|endoftext|>",
123
  "legacy": false,
 
114
  "rstrip": true,
115
  "single_word": false,
116
  "special": true
117
+ },
118
+ "32011": {
119
+ "content": "<|tool|>",
120
+ "lstrip": false,
121
+ "normalized": false,
122
+ "rstrip": false,
123
+ "single_word": false,
124
+ "special": true
125
  }
126
  },
127
  "bos_token": "<s>",
128
+ "chat_template": "{%- if not tools is defined %}\n {%- set tools = none %}\n{%- endif %}\n{%- for message in messages %}\n {%- if message['role'] == 'system' and message['content'] %}\n {{- '<|system|>\n' + message['content'] + ''}}\n {%- if tools is not none %}\n {{- \"You are an expert in composing functions. You are given a question and a set of possible functions.\n\" }}\n {{- \"Based on the question, you will need to make one or more function/tool calls to achieve the purpose.\n\" }}\n {{- \"If none of the functions can be used, point it out and refuse to answer.\n\" }}\n {{- \"If the given question lacks the parameters required by the function, also point it out.\n\n\" }}\n {{- \"[\" }}\n {%- for t in tools %}\n {{- t | tojson }}\n {%- if not loop.last %},{% endif %}\n {%- endfor %}\n {{- \"]\n\n\" }}\n {{- \"The output MUST strictly adhere to the following JSON format, and NO other text MUST be included.\n\" }}\n {{- \"The example format is as follows. Please make sure the parameter type is correct. If no function call is needed, please directly output an empty list '[]'\n\" }}\n {{- \"```\n\" }}\n {{- \"[\n\" }}\n {{- ' {\"name\": \"func_name1\", \"arguments\": {\"argument1\": \"value1\", \"argument2\": \"value2\"}},\n' }}\n {{- ' ... (more tool calls as required)\n' }}\n {{- \"]\n\" }}\n {{- \"```\" }}\n {%- endif %}\n {{- '<|end|>\n' }}\n {%- elif message['role'] == 'user' %}\n {{- '<|user|>\n' + message['content'] + '<|end|>\n' }}\n {%- elif message['role'] == 'assistant' %}\n {{- '<|assistant|>\n' }}\n {%- if message['content'] is string %}\n {{- message['content'] }}\n {%- else %}\n {{- message['content'] | tojson }}\n {%- endif %}\n {{- '<|end|>\n' }}\n {%- elif message['role'] == \"tool\" %}\n {{- '<|tool|>\n' }}\n {%- if message['content'] is mapping %}\n {{- message['content'] | tojson }}\n {%- else %}\n {{- message['content'] }}\n {%- endif %}\n {{- '<|end|>\n' }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|assistant|>\n' }}\n{%- else %}\n {{- eos_token }}\n{%- endif %}",
129
  "clean_up_tokenization_spaces": false,
130
  "eos_token": "<|endoftext|>",
131
  "legacy": false,