Upload model
Browse files- chat_template.jinja +2 -2
- config.json +2 -3
- generation_config.json +10 -2
- model-00001-of-00002.safetensors +1 -1
- model-00002-of-00002.safetensors +1 -1
- special_tokens_map.json +1 -1
- tokenizer_config.json +1 -1
chat_template.jinja
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
{%- if messages[0]['role'] == 'system' %}
|
4 |
{{- messages[0]['content'] }}
|
5 |
{%- else %}
|
6 |
-
{{- 'You are a helpful assistant.' }}
|
7 |
{%- endif %}
|
8 |
{{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
|
9 |
{%- for tool in tools %}
|
@@ -15,7 +15,7 @@
|
|
15 |
{%- if messages[0]['role'] == 'system' %}
|
16 |
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
|
17 |
{%- else %}
|
18 |
-
{{- '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}
|
19 |
{%- endif %}
|
20 |
{%- endif %}
|
21 |
{%- for message in messages %}
|
|
|
3 |
{%- if messages[0]['role'] == 'system' %}
|
4 |
{{- messages[0]['content'] }}
|
5 |
{%- else %}
|
6 |
+
{{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
|
7 |
{%- endif %}
|
8 |
{{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
|
9 |
{%- for tool in tools %}
|
|
|
15 |
{%- if messages[0]['role'] == 'system' %}
|
16 |
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
|
17 |
{%- else %}
|
18 |
+
{{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }}
|
19 |
{%- endif %}
|
20 |
{%- endif %}
|
21 |
{%- for message in messages %}
|
config.json
CHANGED
@@ -4,13 +4,13 @@
|
|
4 |
],
|
5 |
"attention_dropout": 0.0,
|
6 |
"bos_token_id": 151643,
|
7 |
-
"eos_token_id":
|
8 |
"hidden_act": "silu",
|
9 |
"hidden_size": 2048,
|
10 |
"initializer_range": 0.02,
|
11 |
"intermediate_size": 11008,
|
12 |
"max_position_embeddings": 32768,
|
13 |
-
"max_window_layers":
|
14 |
"model_type": "qwen2",
|
15 |
"num_attention_heads": 16,
|
16 |
"num_hidden_layers": 36,
|
@@ -23,7 +23,6 @@
|
|
23 |
"torch_dtype": "bfloat16",
|
24 |
"transformers_version": "4.52.3",
|
25 |
"use_cache": true,
|
26 |
-
"use_mrope": false,
|
27 |
"use_sliding_window": false,
|
28 |
"vocab_size": 151936
|
29 |
}
|
|
|
4 |
],
|
5 |
"attention_dropout": 0.0,
|
6 |
"bos_token_id": 151643,
|
7 |
+
"eos_token_id": 151645,
|
8 |
"hidden_act": "silu",
|
9 |
"hidden_size": 2048,
|
10 |
"initializer_range": 0.02,
|
11 |
"intermediate_size": 11008,
|
12 |
"max_position_embeddings": 32768,
|
13 |
+
"max_window_layers": 70,
|
14 |
"model_type": "qwen2",
|
15 |
"num_attention_heads": 16,
|
16 |
"num_hidden_layers": 36,
|
|
|
23 |
"torch_dtype": "bfloat16",
|
24 |
"transformers_version": "4.52.3",
|
25 |
"use_cache": true,
|
|
|
26 |
"use_sliding_window": false,
|
27 |
"vocab_size": 151936
|
28 |
}
|
generation_config.json
CHANGED
@@ -1,6 +1,14 @@
|
|
1 |
{
|
2 |
"bos_token_id": 151643,
|
3 |
-
"
|
4 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
"transformers_version": "4.52.3"
|
6 |
}
|
|
|
1 |
{
|
2 |
"bos_token_id": 151643,
|
3 |
+
"do_sample": true,
|
4 |
+
"eos_token_id": [
|
5 |
+
151645,
|
6 |
+
151643
|
7 |
+
],
|
8 |
+
"pad_token_id": 151643,
|
9 |
+
"repetition_penalty": 1.05,
|
10 |
+
"temperature": 0.7,
|
11 |
+
"top_k": 20,
|
12 |
+
"top_p": 0.8,
|
13 |
"transformers_version": "4.52.3"
|
14 |
}
|
model-00001-of-00002.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4957560304
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e3f2407b87abeadeca60f863cd0b75b6c2852e12e33f9e85f325ba97f9e9e34f
|
3 |
size 4957560304
|
model-00002-of-00002.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1214366696
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb09bc86a24a49e6e5183c944495afa10a52bc09295208e68c9fd6456dd9129c
|
3 |
size 1214366696
|
special_tokens_map.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
"<|video_pad|>"
|
16 |
],
|
17 |
"eos_token": {
|
18 |
-
"content": "<|
|
19 |
"lstrip": false,
|
20 |
"normalized": false,
|
21 |
"rstrip": false,
|
|
|
15 |
"<|video_pad|>"
|
16 |
],
|
17 |
"eos_token": {
|
18 |
+
"content": "<|im_end|>",
|
19 |
"lstrip": false,
|
20 |
"normalized": false,
|
21 |
"rstrip": false,
|
tokenizer_config.json
CHANGED
@@ -196,7 +196,7 @@
|
|
196 |
],
|
197 |
"bos_token": null,
|
198 |
"clean_up_tokenization_spaces": false,
|
199 |
-
"eos_token": "<|
|
200 |
"errors": "replace",
|
201 |
"extra_special_tokens": {},
|
202 |
"model_max_length": 131072,
|
|
|
196 |
],
|
197 |
"bos_token": null,
|
198 |
"clean_up_tokenization_spaces": false,
|
199 |
+
"eos_token": "<|im_end|>",
|
200 |
"errors": "replace",
|
201 |
"extra_special_tokens": {},
|
202 |
"model_max_length": 131072,
|