hiru2005 commited on
Commit
5aabe39
·
verified ·
1 Parent(s): fbbdb01

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ native-gguf/Qwen3.8-Flash-Next-Sync-common.gguf filter=lfs diff=lfs merge=lfs -text
mtp-rt/dense.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c724dc0b0822ada5d2977bf5bde821605feabaa64ea2e0045b67ca656329070a
3
+ size 116099072
mtp-rt/dense.txt ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fc_embedding.weight q8_0 2560 2560 0 6963200
2
+ fc_hidden.weight q8_0 2560 2560 6963200 6963200
3
+ hyper_connection_mixer.hc_norm.weight f32 1 10240 13926400 40960
4
+ hyper_connection_mixer.input_mix_weight_down.weight bf16 320 10240 13967360 6553600
5
+ hyper_connection_mixer.input_mix_weight_up.weight bf16 10240 320 20520960 6553600
6
+ attn_hyper_connection.block_inject_weight.weight bf16 4 10240 27074560 81920
7
+ attn_hyper_connection.hc_norm.weight f32 1 10240 27156480 40960
8
+ attn_hyper_connection.input_mix_weight_down.weight bf16 320 10240 27197440 6553600
9
+ attn_hyper_connection.input_mix_weight_up.weight bf16 10240 320 33751040 6553600
10
+ mlp.gate.weight bf16 512 2560 40304640 2621440
11
+ mlp.shared_expert.down_proj.weight q8_0 2560 640 42926080 1740800
12
+ mlp.shared_expert.gate_proj.weight q8_0 640 2560 44666880 1740800
13
+ mlp.shared_expert.up_proj.weight q8_0 640 2560 46407680 1740800
14
+ mlp.shared_expert_gate.weight bf16 1 2560 48148480 5120
15
+ mlp_hyper_connection.block_inject_weight.weight bf16 4 10240 48153600 81920
16
+ mlp_hyper_connection.hc_norm.weight f32 1 10240 48235520 40960
17
+ mlp_hyper_connection.input_mix_weight_down.weight bf16 320 10240 48276480 6553600
18
+ mlp_hyper_connection.input_mix_weight_up.weight bf16 10240 320 54830080 6553600
19
+ self_attn.indexer.index_qk_proj.weight q8_0 640 2560 61383680 1740800
20
+ self_attn.indexer.k_layernorm.weight f32 1 128 63124480 512
21
+ self_attn.indexer.q_layernorm.weight f32 1 128 63124992 512
22
+ self_attn.k_norm.weight f32 1 256 63125504 1024
23
+ self_attn.k_proj.weight q8_0 512 2560 63126528 1392640
24
+ self_attn.o_proj.weight q8_0 2560 6144 64519168 16711680
25
+ self_attn.q_norm.weight f32 1 256 81230848 1024
26
+ self_attn.q_proj.weight q8_0 12288 2560 81231872 33423360
27
+ self_attn.v_proj.weight q8_0 512 2560 114655232 1392640
28
+ pre_fc_norm_embedding.weight f32 1 2560 116047872 10240
29
+ pre_fc_norm_hidden.weight f32 1 10240 116058112 40960
mtp-rt/draft_vocab.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1e1d3a7a9e4bf862dcd5923ce661fb59bbd07907e594df5cf86a62ac235cb91
3
+ size 425196
mtp-rt/experts.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09398406be61f1f54c93861f449e48b8df0bfccbc9ec9b2b7636775a6ea9244f
3
+ size 707788800
native-gguf/Qwen3.8-Flash-Next-Sync-common.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82a78508d291130fdf4654b90acb5780e8f7f44b28b0ac3495aed59163a00e69
3
+ size 32692038016
tokenizer/chat_template.jinja ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set image_count = namespace(value=0) %}
2
+ {%- set video_count = namespace(value=0) %}
3
+ {%- macro render_content(content, do_vision_count, is_system_content=false) %}
4
+ {%- if content is string %}
5
+ {{- content }}
6
+ {%- elif content is iterable and content is not mapping %}
7
+ {%- for item in content %}
8
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
9
+ {%- if is_system_content %}
10
+ {{- raise_exception('System message cannot contain images.') }}
11
+ {%- endif %}
12
+ {%- if do_vision_count %}
13
+ {%- set image_count.value = image_count.value + 1 %}
14
+ {%- endif %}
15
+ {%- if add_vision_id %}
16
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
17
+ {%- endif %}
18
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
19
+ {%- elif 'video' in item or item.type == 'video' %}
20
+ {%- if is_system_content %}
21
+ {{- raise_exception('System message cannot contain videos.') }}
22
+ {%- endif %}
23
+ {%- if do_vision_count %}
24
+ {%- set video_count.value = video_count.value + 1 %}
25
+ {%- endif %}
26
+ {%- if add_vision_id %}
27
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
28
+ {%- endif %}
29
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
30
+ {%- elif 'text' in item %}
31
+ {{- item.text }}
32
+ {%- else %}
33
+ {{- raise_exception('Unexpected item type in content.') }}
34
+ {%- endif %}
35
+ {%- endfor %}
36
+ {%- elif content is none or content is undefined %}
37
+ {{- '' }}
38
+ {%- else %}
39
+ {{- raise_exception('Unexpected content type.') }}
40
+ {%- endif %}
41
+ {%- endmacro %}
42
+ {%- if not messages %}
43
+ {{- raise_exception('No messages provided.') }}
44
+ {%- endif %}
45
+ {%- set sysns = namespace(count=0, text='') %}
46
+ {%- for message in messages %}
47
+ {%- if sysns.count == loop.index0 and (message.role == 'system' or message.role == 'developer') %}
48
+ {%- set sys_content = render_content(message.content, false, true)|trim %}
49
+ {%- if sys_content %}
50
+ {%- set sysns.text = sysns.text + ('\n' if sysns.text else '') + sys_content %}
51
+ {%- endif %}
52
+ {%- set sysns.count = sysns.count + 1 %}
53
+ {%- endif %}
54
+ {%- endfor %}
55
+ {%- set num_sys = sysns.count %}
56
+ {%- set merged_system = sysns.text %}
57
+ {%- set reasoning_instructions = '' %}
58
+ {%- if enable_thinking is undefined or enable_thinking is true %}
59
+ {%- set resolved_reasoning_effort = reasoning_effort|default('xhigh') %}
60
+ {%- if resolved_reasoning_effort == 'high' %}
61
+ {%- set resolved_reasoning_effort = 'xhigh' %}
62
+ {%- endif %}
63
+ {%- if resolved_reasoning_effort not in ('xhigh', 'medium', 'low') %}
64
+ {{- raise_exception('Unexpected reasoning effort ' ~ reasoning_effort ~ '. Supported types are xhigh (default), medium, and low.') }}
65
+ {%- endif %}
66
+ {%- if resolved_reasoning_effort == 'xhigh' %}
67
+ {%- set reasoning_instructions = 'Reasoning effort is set to xhigh. Please think carefully through the task, validate key assumptions, consider plausible alternatives, and prioritize correctness, consistency, and clarity in the final answer.' %}
68
+ {%- elif resolved_reasoning_effort == 'low' %}
69
+ {%- set reasoning_instructions = 'Reasoning effort is set to low. Keep your thinking brief and focused, moving directly to the conclusion without unnecessary elaboration.' %}
70
+ {%- endif %}
71
+ {%- endif %}
72
+ {%- if tools and tools is iterable and tools is not mapping %}
73
+ {{- '<|im_start|>system\n' }}
74
+ {%- if reasoning_instructions %}
75
+ {{- reasoning_instructions + '\n\n' }}
76
+ {%- endif %}
77
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
78
+ {%- for tool in tools %}
79
+ {{- "\n" }}
80
+ {{- tool | tojson }}
81
+ {%- endfor %}
82
+ {{- "\n</tools>" }}
83
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
84
+ {%- if merged_system %}
85
+ {{- '\n\n' + merged_system }}
86
+ {%- endif %}
87
+ {{- '<|im_end|>\n' }}
88
+ {%- else %}
89
+ {%- if merged_system %}
90
+ {{- '<|im_start|>system\n' + (reasoning_instructions + '\n\n' if reasoning_instructions else '') + merged_system + '<|im_end|>\n' }}
91
+ {%- elif reasoning_instructions %}
92
+ {{- '<|im_start|>system\n' + reasoning_instructions + '<|im_end|>\n' }}
93
+ {%- endif %}
94
+ {%- endif %}
95
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
96
+ {%- for message in messages[::-1] %}
97
+ {%- set index = (messages|length - 1) - loop.index0 %}
98
+ {%- if ns.multi_step_tool and message.role == "user" %}
99
+ {%- set content = render_content(message.content, false)|trim %}
100
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
101
+ {%- set ns.multi_step_tool = false %}
102
+ {%- set ns.last_query_index = index %}
103
+ {%- endif %}
104
+ {%- endif %}
105
+ {%- endfor %}
106
+ {%- for message in messages %}
107
+ {%- if loop.index0 >= num_sys %}
108
+ {%- set content = render_content(message.content, true)|trim %}
109
+ {%- if message.role == "system" or message.role == "developer" %}
110
+ {{- raise_exception('System message must be at the beginning.') }}
111
+ {%- elif message.role == "user" %}
112
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
113
+ {%- elif message.role == "assistant" %}
114
+ {%- set reasoning_content = '' %}
115
+ {%- if message.reasoning_content is string %}
116
+ {%- set reasoning_content = message.reasoning_content %}
117
+ {%- endif %}
118
+ {%- set reasoning_content = reasoning_content|trim %}
119
+ {%- if preserve_thinking is undefined or preserve_thinking is true or loop.index0 > ns.last_query_index %}
120
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
121
+ {%- else %}
122
+ {{- '<|im_start|>' + message.role + '\n' + content }}
123
+ {%- endif %}
124
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
125
+ {%- for tool_call in message.tool_calls %}
126
+ {%- if tool_call.function is defined %}
127
+ {%- set tool_call = tool_call.function %}
128
+ {%- endif %}
129
+ {%- if tool_call.name is not defined or tool_call.name is none %}
130
+ {{- raise_exception('Tool call is missing a function name.') }}
131
+ {%- endif %}
132
+ {%- if loop.first %}
133
+ {%- if content|trim %}
134
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
135
+ {%- else %}
136
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
137
+ {%- endif %}
138
+ {%- else %}
139
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
140
+ {%- endif %}
141
+ {%- if tool_call.arguments is mapping %}
142
+ {%- for args_name, args_value in tool_call.arguments|items %}
143
+ {{- '<parameter=' + args_name + '>\n' }}
144
+ {%- set args_value = args_value | string if args_value is string else args_value | tojson | safe %}
145
+ {{- args_value }}
146
+ {{- '\n</parameter>\n' }}
147
+ {%- endfor %}
148
+ {%- elif tool_call.arguments is string %}
149
+ {%- if tool_call.arguments|trim %}
150
+ {{- raise_exception('Tool call arguments for function "' + (tool_call.name | string) + '" were passed as a JSON string. Parse them into an object before calling apply_chat_template.') }}
151
+ {%- endif %}
152
+ {%- elif tool_call.arguments is defined and tool_call.arguments is not none %}
153
+ {{- raise_exception('Tool call arguments for function "' + (tool_call.name | string) + '" must be an object/mapping or a JSON string.') }}
154
+ {%- endif %}
155
+ {{- '</function>\n</tool_call>' }}
156
+ {%- endfor %}
157
+ {%- endif %}
158
+ {{- '<|im_end|>\n' }}
159
+ {%- elif message.role == "tool" %}
160
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
161
+ {{- '<|im_start|>user' }}
162
+ {%- endif %}
163
+ {{- '\n<tool_response>\n' }}
164
+ {{- content }}
165
+ {{- '\n</tool_response>' }}
166
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
167
+ {{- '<|im_end|>\n' }}
168
+ {%- elif loop.last %}
169
+ {{- '<|im_end|>\n' }}
170
+ {%- endif %}
171
+ {%- else %}
172
+ {{- raise_exception('Unexpected message role.') }}
173
+ {%- endif %}
174
+ {%- endif %}
175
+ {%- endfor %}
176
+ {%- if add_generation_prompt %}
177
+ {{- '<|im_start|>assistant\n' }}
178
+ {%- if enable_thinking is defined and enable_thinking is false %}
179
+ {{- '<think>\n\n</think>\n\n' }}
180
+ {%- else %}
181
+ {{- '<think>\n' }}
182
+ {%- endif %}
183
+ {%- endif %}
184
+ {#- Unsloth fixes - developer role, merged system messages, tool calling #}
tokenizer/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer/token_type.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer/tokenizer.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "gpt2",
3
+ "pre": "qwen35",
4
+ "vocab_size": 248320,
5
+ "n_merges": 247587,
6
+ "special_ids": {
7
+ "tokenizer.ggml.eos_token_id": 248046,
8
+ "tokenizer.ggml.padding_token_id": 248044,
9
+ "tokenizer.ggml.bos_token_id": 248044
10
+ },
11
+ "add_bos_token": false,
12
+ "pre_pattern": "(?:'[sS]|'[tT]|'[rR][eE]|'[vV][eE]|'[mM]|'[lL][lL]|'[dD])|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
13
+ "pre_pattern_source": ".ref/llama.cpp src/llama-vocab.cpp L396 (LLAMA_VOCAB_PRE_TYPE_QWEN35)"
14
+ }
tokenizer/vocab.json ADDED
The diff for this file is too large to render. See raw diff