Inho Oh
commited on
Commit
·
4b34e8b
1
Parent(s):
364061b
update
Browse filesSigned-off-by: Inho Oh <[email protected]>
- config.json +6 -10
- generation_config.json +11 -5
- model.safetensors +2 -2
- special_tokens_map.json +2 -14
- tokenizer.json +2 -2
- tokenizer_config.json +3 -3
config.json
CHANGED
@@ -1,32 +1,28 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "unsloth/qwen2.5-0.5b-unsloth-bnb-4bit",
|
3 |
"architectures": [
|
4 |
"Qwen2ForCausalLM"
|
5 |
],
|
6 |
"attention_dropout": 0.0,
|
7 |
-
"
|
|
|
8 |
"hidden_act": "silu",
|
9 |
"hidden_size": 896,
|
10 |
"initializer_range": 0.02,
|
11 |
"intermediate_size": 4864,
|
12 |
"max_position_embeddings": 32768,
|
13 |
-
"max_window_layers":
|
14 |
"model_type": "qwen2",
|
15 |
"num_attention_heads": 14,
|
16 |
"num_hidden_layers": 24,
|
17 |
"num_key_value_heads": 2,
|
18 |
-
"pad_token_id": 151654,
|
19 |
"rms_norm_eps": 1e-06,
|
20 |
"rope_scaling": null,
|
21 |
"rope_theta": 1000000.0,
|
22 |
-
"sliding_window":
|
23 |
"tie_word_embeddings": true,
|
24 |
-
"torch_dtype": "
|
25 |
-
"transformers_version": "4.
|
26 |
-
"unsloth_fixed": true,
|
27 |
-
"unsloth_version": "2025.3.17",
|
28 |
"use_cache": true,
|
29 |
-
"use_mrope": false,
|
30 |
"use_sliding_window": false,
|
31 |
"vocab_size": 151936
|
32 |
}
|
|
|
1 |
{
|
|
|
2 |
"architectures": [
|
3 |
"Qwen2ForCausalLM"
|
4 |
],
|
5 |
"attention_dropout": 0.0,
|
6 |
+
"bos_token_id": 151643,
|
7 |
+
"eos_token_id": 151645,
|
8 |
"hidden_act": "silu",
|
9 |
"hidden_size": 896,
|
10 |
"initializer_range": 0.02,
|
11 |
"intermediate_size": 4864,
|
12 |
"max_position_embeddings": 32768,
|
13 |
+
"max_window_layers": 21,
|
14 |
"model_type": "qwen2",
|
15 |
"num_attention_heads": 14,
|
16 |
"num_hidden_layers": 24,
|
17 |
"num_key_value_heads": 2,
|
|
|
18 |
"rms_norm_eps": 1e-06,
|
19 |
"rope_scaling": null,
|
20 |
"rope_theta": 1000000.0,
|
21 |
+
"sliding_window": 32768,
|
22 |
"tie_word_embeddings": true,
|
23 |
+
"torch_dtype": "float32",
|
24 |
+
"transformers_version": "4.50.1",
|
|
|
|
|
25 |
"use_cache": true,
|
|
|
26 |
"use_sliding_window": false,
|
27 |
"vocab_size": 151936
|
28 |
}
|
generation_config.json
CHANGED
@@ -1,8 +1,14 @@
|
|
1 |
{
|
2 |
"bos_token_id": 151643,
|
3 |
-
"
|
4 |
-
"
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
}
|
|
|
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.1,
|
10 |
+
"temperature": 0.7,
|
11 |
+
"top_k": 20,
|
12 |
+
"top_p": 0.8,
|
13 |
+
"transformers_version": "4.50.1"
|
14 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4460d8171bf8e1a71b44a5d39130093654ac8ffb8bb03956aa286b6f3842ced6
|
3 |
+
size 1976163472
|
special_tokens_map.json
CHANGED
@@ -14,18 +14,6 @@
|
|
14 |
"<|image_pad|>",
|
15 |
"<|video_pad|>"
|
16 |
],
|
17 |
-
"eos_token":
|
18 |
-
|
19 |
-
"lstrip": false,
|
20 |
-
"normalized": false,
|
21 |
-
"rstrip": false,
|
22 |
-
"single_word": false
|
23 |
-
},
|
24 |
-
"pad_token": {
|
25 |
-
"content": "<|vision_pad|>",
|
26 |
-
"lstrip": false,
|
27 |
-
"normalized": false,
|
28 |
-
"rstrip": false,
|
29 |
-
"single_word": false
|
30 |
-
}
|
31 |
}
|
|
|
14 |
"<|image_pad|>",
|
15 |
"<|video_pad|>"
|
16 |
],
|
17 |
+
"eos_token": "<|endoftext|>",
|
18 |
+
"pad_token": "<|endoftext|>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
}
|
tokenizer.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:540b7fbf60b80e8293593a86960df91d2263723d69107ffc1afc89a7c08cda12
|
3 |
+
size 11422162
|
tokenizer_config.json
CHANGED
@@ -195,13 +195,13 @@
|
|
195 |
"<|video_pad|>"
|
196 |
],
|
197 |
"bos_token": null,
|
|
|
198 |
"clean_up_tokenization_spaces": false,
|
199 |
"eos_token": "<|endoftext|>",
|
200 |
"errors": "replace",
|
201 |
"extra_special_tokens": {},
|
202 |
-
"model_max_length":
|
203 |
-
"pad_token": "<|
|
204 |
-
"padding_side": "left",
|
205 |
"split_special_tokens": false,
|
206 |
"tokenizer_class": "Qwen2Tokenizer",
|
207 |
"unk_token": null
|
|
|
195 |
"<|video_pad|>"
|
196 |
],
|
197 |
"bos_token": null,
|
198 |
+
"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\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>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
|
199 |
"clean_up_tokenization_spaces": false,
|
200 |
"eos_token": "<|endoftext|>",
|
201 |
"errors": "replace",
|
202 |
"extra_special_tokens": {},
|
203 |
+
"model_max_length": 131072,
|
204 |
+
"pad_token": "<|endoftext|>",
|
|
|
205 |
"split_special_tokens": false,
|
206 |
"tokenizer_class": "Qwen2Tokenizer",
|
207 |
"unk_token": null
|