chat_template.jinja CHANGED
@@ -1,4 +1,12 @@
1
- {% for m in messages %}<|im_start|>{{ m['role'] }}
 
 
 
 
 
2
  {{ m['content'] }}<|im_end|>
3
- {% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
 
 
 
4
  {% endif %}
 
1
+ {% for m in messages %}
2
+ <|im_start|>{{ m['role'] }}
3
+ {% if m['role'] == 'assistant' %}
4
+ {% generation %}{{ m['content'] }}<|im_end|>{% endgeneration %}
5
+
6
+ {% else %}
7
  {{ m['content'] }}<|im_end|>
8
+ {% endif %}
9
+ {% endfor %}
10
+ {% if add_generation_prompt %}
11
+ <|im_start|>assistant
12
  {% endif %}
config.json CHANGED
@@ -4,9 +4,9 @@
4
  ],
5
  "attention_bias": false,
6
  "attention_dropout": 0.0,
7
- "bos_token_id": 1,
8
  "dtype": "float32",
9
- "eos_token_id": 2,
10
  "head_dim": 64,
11
  "hidden_act": "silu",
12
  "hidden_size": 512,
 
4
  ],
5
  "attention_bias": false,
6
  "attention_dropout": 0.0,
7
+ "bos_token_id": 16384,
8
  "dtype": "float32",
9
+ "eos_token_id": 16385,
10
  "head_dim": 64,
11
  "hidden_act": "silu",
12
  "hidden_size": 512,
generation_config.json CHANGED
@@ -1,7 +1,14 @@
1
  {
2
  "_from_model_config": true,
3
- "bos_token_id": 1,
4
- "eos_token_id": 2,
 
 
 
 
 
 
 
5
  "output_attentions": false,
6
  "output_hidden_states": false,
7
  "pad_token_id": 0,
 
1
  {
2
  "_from_model_config": true,
3
+ "bos_token_id": 16384,
4
+ "eos_token_id": [
5
+ 16385
6
+ ],
7
+ "do_sample": true,
8
+ "temperature": 0.2,
9
+ "top_p": 0.85,
10
+ "top_k": 25,
11
+ "no_repeat_ngram_size": 3,
12
  "output_attentions": false,
13
  "output_hidden_states": false,
14
  "pad_token_id": 0,
tokenizer_config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "backend": "tokenizers",
3
- "bos_token": "<s>",
4
- "eos_token": "</s>",
5
  "extra_special_tokens": [
6
  "<|im_start|>",
7
  "<|im_end|>",
 
1
  {
2
  "backend": "tokenizers",
3
+ "bos_token": "<|im_start|>",
4
+ "eos_token": "<|im_end|>",
5
  "extra_special_tokens": [
6
  "<|im_start|>",
7
  "<|im_end|>",