ashxhart commited on
Commit
f215c20
·
verified ·
1 Parent(s): d978a83

Add files using upload-large-folder tool

Browse files
Files changed (49) hide show
  1. LICENSE +245 -0
  2. NOTICE +8 -0
  3. chat_template.jinja +355 -0
  4. config.json +544 -0
  5. generation_config.json +10 -0
  6. model-00001-of-00148.safetensors +3 -0
  7. model-00002-of-00148.safetensors +3 -0
  8. model-00004-of-00148.safetensors +3 -0
  9. model-00007-of-00148.safetensors +3 -0
  10. model-00013-of-00148.safetensors +3 -0
  11. model-00016-of-00148.safetensors +3 -0
  12. model-00019-of-00148.safetensors +3 -0
  13. model-00021-of-00148.safetensors +3 -0
  14. model-00024-of-00148.safetensors +3 -0
  15. model-00033-of-00148.safetensors +3 -0
  16. model-00036-of-00148.safetensors +3 -0
  17. model-00039-of-00148.safetensors +3 -0
  18. model-00040-of-00148.safetensors +3 -0
  19. model-00045-of-00148.safetensors +3 -0
  20. model-00046-of-00148.safetensors +3 -0
  21. model-00057-of-00148.safetensors +3 -0
  22. model-00058-of-00148.safetensors +3 -0
  23. model-00060-of-00148.safetensors +3 -0
  24. model-00065-of-00148.safetensors +3 -0
  25. model-00072-of-00148.safetensors +3 -0
  26. model-00076-of-00148.safetensors +3 -0
  27. model-00077-of-00148.safetensors +3 -0
  28. model-00078-of-00148.safetensors +3 -0
  29. model-00081-of-00148.safetensors +3 -0
  30. model-00084-of-00148.safetensors +3 -0
  31. model-00093-of-00148.safetensors +3 -0
  32. model-00096-of-00148.safetensors +3 -0
  33. model-00099-of-00148.safetensors +3 -0
  34. model-00100-of-00148.safetensors +3 -0
  35. model-00105-of-00148.safetensors +3 -0
  36. model-00112-of-00148.safetensors +3 -0
  37. model-00117-of-00148.safetensors +3 -0
  38. model-00118-of-00148.safetensors +3 -0
  39. model-00120-of-00148.safetensors +3 -0
  40. model-00125-of-00148.safetensors +3 -0
  41. model-00132-of-00148.safetensors +3 -0
  42. model-00137-of-00148.safetensors +3 -0
  43. model-00138-of-00148.safetensors +3 -0
  44. model-00141-of-00148.safetensors +3 -0
  45. model-00144-of-00148.safetensors +3 -0
  46. model.safetensors.index.json +0 -0
  47. processor_config.json +75 -0
  48. tokenizer.json +0 -0
  49. tokenizer_config.json +28 -0
LICENSE ADDED
@@ -0,0 +1,245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Tencent Hy License, Version 1.0
2
+
3
+ This License is derived from the Apache License, Version 2.0
4
+ (http://www.apache.org/licenses/LICENSE-2.0), with modifications, mainly
5
+ the additional commercial terms for large Model-as-a-Service ("MaaS")
6
+ businesses in Section 10. This License is not the Apache License,
7
+ Version 2.0, and is not endorsed by or affiliated with the Apache
8
+ Software Foundation.
9
+
10
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
11
+
12
+ 1. Definitions.
13
+
14
+ "License" shall mean the terms and conditions for use, reproduction,
15
+ and distribution as defined by Sections 1 through 10 of this document.
16
+
17
+ "Licensor" shall mean the copyright owner or entity authorized by
18
+ the copyright owner that is granting the License.
19
+
20
+ "Legal Entity" shall mean the union of the acting entity and all
21
+ other entities that control, are controlled by, or are under common
22
+ control with that entity. For the purposes of this definition,
23
+ "control" means (i) the power, direct or indirect, to cause the
24
+ direction or management of such entity, whether by contract or
25
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
26
+ outstanding shares, or (iii) beneficial ownership of such entity.
27
+
28
+ "You" (or "Your") shall mean an individual or Legal Entity
29
+ exercising permissions granted by this License.
30
+
31
+ "Source" form shall mean the preferred form for making modifications,
32
+ including but not limited to software source code, documentation
33
+ source, and configuration files.
34
+
35
+ "Object" form shall mean any form resulting from mechanical
36
+ transformation or translation of a Source form, including but
37
+ not limited to compiled object code, generated documentation,
38
+ and conversions to other media types.
39
+
40
+ "Work" shall mean the work of authorship, whether in Source or
41
+ Object form, made available under the License, as indicated by a
42
+ copyright notice that is included in or attached to the work
43
+ (an example is provided in the Appendix below). For the avoidance
44
+ of doubt, the Work includes the model weights, parameters,
45
+ configuration files, inference and training code, and documentation
46
+ made available by Licensor under this License.
47
+
48
+ "Derivative Works" shall mean any work, whether in Source or Object
49
+ form, that is based on (or derived from) the Work and for which the
50
+ editorial revisions, annotations, elaborations, or other modifications
51
+ represent, as a whole, an original work of authorship. For the purposes
52
+ of this License, Derivative Works shall not include works that remain
53
+ separable from, or merely link (or bind by name) to the interfaces of,
54
+ the Work and Derivative Works thereof. For the avoidance of doubt,
55
+ Derivative Works include any fine-tuned, quantized, distilled, merged,
56
+ pruned, or otherwise modified versions of the model weights.
57
+
58
+ "Contribution" shall mean any work of authorship, including
59
+ the original version of the Work and any modifications or additions
60
+ to that Work or Derivative Works thereof, that is intentionally
61
+ submitted to Licensor for inclusion in the Work by the copyright owner
62
+ or by an individual or Legal Entity authorized to submit on behalf of
63
+ the copyright owner. For the purposes of this definition, "submitted"
64
+ means any form of electronic, verbal, or written communication sent
65
+ to the Licensor or its representatives, including but not limited to
66
+ communication on electronic mailing lists, source code control systems,
67
+ and issue tracking systems that are managed by, or on behalf of, the
68
+ Licensor for the purpose of discussing and improving the Work, but
69
+ excluding communication that is conspicuously marked or otherwise
70
+ designated in writing by the copyright owner as "Not a Contribution."
71
+
72
+ "Contributor" shall mean Licensor and any individual or Legal Entity
73
+ on behalf of whom a Contribution has been received by Licensor and
74
+ subsequently incorporated within the Work.
75
+
76
+ 2. Grant of Copyright License. Subject to the terms and conditions of
77
+ this License, each Contributor hereby grants to You a perpetual,
78
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
79
+ copyright license to reproduce, prepare Derivative Works of,
80
+ publicly display, publicly perform, sublicense, and distribute the
81
+ Work and such Derivative Works in Source or Object form.
82
+
83
+ 3. Grant of Patent License. Subject to the terms and conditions of
84
+ this License, each Contributor hereby grants to You a perpetual,
85
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
86
+ (except as stated in this section) patent license to make, have made,
87
+ use, offer to sell, sell, import, and otherwise transfer the Work,
88
+ where such license applies only to those patent claims licensable
89
+ by such Contributor that are necessarily infringed by their
90
+ Contribution(s) alone or by combination of their Contribution(s)
91
+ with the Work to which such Contribution(s) was submitted. If You
92
+ institute patent litigation against any entity (including a
93
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
94
+ or a Contribution incorporated within the Work constitutes direct
95
+ or contributory patent infringement, then any patent licenses
96
+ granted to You under this License for that Work shall terminate
97
+ as of the date such litigation is filed.
98
+
99
+ 4. Redistribution. You may reproduce and distribute copies of the
100
+ Work or Derivative Works thereof in any medium, with or without
101
+ modifications, and in Source or Object form, provided that You
102
+ meet the following conditions:
103
+
104
+ (a) You must give any other recipients of the Work or
105
+ Derivative Works a copy of this License; and
106
+
107
+ (b) You must cause any modified files to carry prominent notices
108
+ stating that You changed the files; and
109
+
110
+ (c) You must retain, in the Source form of any Derivative Works
111
+ that You distribute, all copyright, patent, trademark, and
112
+ attribution notices from the Source form of the Work,
113
+ excluding those notices that do not pertain to any part of
114
+ the Derivative Works; and
115
+
116
+ (d) If the Work includes a "NOTICE" text file as part of its
117
+ distribution, then any Derivative Works that You distribute must
118
+ include a readable copy of the attribution notices contained
119
+ within such NOTICE file, excluding those notices that do not
120
+ pertain to any part of the Derivative Works, in at least one
121
+ of the following places: within a NOTICE text file distributed
122
+ as part of the Derivative Works; within the Source form or
123
+ documentation, if provided along with the Derivative Works; or,
124
+ within a display generated by the Derivative Works, if and
125
+ wherever such third-party notices normally appear. The contents
126
+ of the NOTICE file are for informational purposes only and
127
+ do not modify the License. You may add Your own attribution
128
+ notices within Derivative Works that You distribute, alongside
129
+ or as an addendum to the NOTICE text from the Work, provided
130
+ that such additional attribution notices cannot be construed
131
+ as modifying the License.
132
+
133
+ You may add Your own copyright statement to Your modifications and
134
+ may provide additional or different license terms and conditions
135
+ for use, reproduction, or distribution of Your modifications, or
136
+ for any such Derivative Works as a whole, provided Your use,
137
+ reproduction, and distribution of the Work otherwise complies with
138
+ the conditions stated in this License. Notwithstanding the
139
+ foregoing, any license terms You provide for the Work or any
140
+ Derivative Works must not remove, limit, or conflict with Section 10,
141
+ and Section 10 shall continue to apply to every recipient of the
142
+ Work or any Derivative Works.
143
+
144
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
145
+ any Contribution intentionally submitted for inclusion in the Work
146
+ by You to the Licensor shall be under the terms and conditions of
147
+ this License, without any additional terms or conditions.
148
+ Notwithstanding the above, nothing herein shall supersede or modify
149
+ the terms of any separate license agreement you may have executed
150
+ with Licensor regarding such Contributions.
151
+
152
+ 6. Trademarks. This License does not grant permission to use the trade
153
+ names, trademarks, service marks, or product names of the Licensor,
154
+ except as required for reasonable and customary use in describing the
155
+ origin of the Work and reproducing the content of the NOTICE file.
156
+
157
+ 7. Disclaimer of Warranty. Unless required by applicable law or
158
+ agreed to in writing, Licensor provides the Work (and each
159
+ Contributor provides its Contributions) on an "AS IS" BASIS,
160
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
161
+ implied, including, without limitation, any warranties or conditions
162
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
163
+ PARTICULAR PURPOSE. You are solely responsible for determining the
164
+ appropriateness of using or redistributing the Work and assume any
165
+ risks associated with Your exercise of permissions under this License.
166
+
167
+ 8. Limitation of Liability. In no event and under no legal theory,
168
+ whether in tort (including negligence), contract, or otherwise,
169
+ unless required by applicable law (such as deliberate and grossly
170
+ negligent acts) or agreed to in writing, shall any Contributor be
171
+ liable to You for damages, including any direct, indirect, special,
172
+ incidental, or consequential damages of any character arising as a
173
+ result of this License or out of the use or inability to use the
174
+ Work (including but not limited to damages for loss of goodwill,
175
+ work stoppage, computer failure or malfunction, or any and all
176
+ other commercial damages or losses), even if such Contributor
177
+ has been advised of the possibility of such damages.
178
+
179
+ 9. Accepting Warranty or Additional Liability. While redistributing
180
+ the Work or Derivative Works thereof, You may choose to offer,
181
+ and charge a fee for, acceptance of support, warranty, indemnity,
182
+ or other liability obligations and/or rights consistent with this
183
+ License. However, in accepting such obligations, You may act only
184
+ on Your own behalf and on Your sole responsibility, not on behalf
185
+ of any other Contributor, and only if You agree to indemnify,
186
+ defend, and hold each Contributor harmless for any liability
187
+ incurred by, or claims asserted against, such Contributor by reason
188
+ of your accepting any such warranty or additional liability.
189
+
190
+ 10. Additional Commercial Terms.
191
+
192
+ 10.1 MaaS. "MaaS" means giving third parties remote access to model
193
+ inference or fine-tuning (e.g., via API), allowing them to
194
+ submit inputs or specify parameters or training data. This
195
+ excludes (i) end-user products with model capabilities confined
196
+ to specific features or workflows, without general-purpose
197
+ model access, or (ii) merely relaying requests to an
198
+ independently operated third-party model service.
199
+
200
+ 10.2 Separate License Required. Notwithstanding Sections 2 and 3,
201
+ and except as provided in Section 10.3, if You operate a MaaS
202
+ business, You must obtain a separate written license to use the
203
+ Work or any Derivative Works from Licensor (including by email),
204
+ in either of the following cases:
205
+
206
+ (a) if Your aggregate worldwide gross revenue exceeds
207
+ US$50 million (or the equivalent in other currencies) in
208
+ any consecutive 12-month period, whether or not such
209
+ revenue is derived from the Work or any Derivative Works,
210
+ before using (or continuing to use) the Work or any
211
+ Derivative Works; or
212
+
213
+ (b) before using the Work or any Derivative Works in or for any
214
+ product or service provided by You that has more than
215
+ 100 million monthly active users in any calendar month.
216
+
217
+ 10.3 Internal Use. Section 10.2 does not apply to Your use of the
218
+ Work or any Derivative Works solely for internal purposes,
219
+ provided that neither the Work, any Derivative Works, nor their
220
+ outputs are made available to third parties.
221
+
222
+ 10.4 Contact. For licensing requests or questions, please contact
223
+ hy_partners@tencent.com.
224
+
225
+ END OF TERMS AND CONDITIONS
226
+
227
+ APPENDIX: How to apply the Tencent Hy License to your work.
228
+
229
+ To apply this License to a Derivative Work, attach the following
230
+ notice, with the fields enclosed by brackets "[]" replaced with your
231
+ own identifying information. (Don't include the brackets!)
232
+
233
+ Copyright [yyyy] [name of copyright owner]
234
+
235
+ Licensed under the Tencent Hy License, Version 1.0 (the "License"),
236
+ which is based on the Apache License, Version 2.0, with additional
237
+ commercial terms. You may not use this file except in compliance
238
+ with the License. You may obtain a copy of the License in the
239
+ LICENSE file distributed with this work.
240
+
241
+ Unless required by applicable law or agreed to in writing, software
242
+ distributed under the License is distributed on an "AS IS" BASIS,
243
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
244
+ implied. See the License for the specific language governing
245
+ permissions and limitations under the License.
NOTICE ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ Tencent Hy4-flash MLX conversion
2
+
3
+ Upstream revision d88c9dfd96ba4f2e6b92adba0b8e8f1c8696f959
4
+ https://huggingface.co/tencent/Hy4-flash/tree/d88c9dfd96ba4f2e6b92adba0b8e8f1c8696f959
5
+
6
+ TensorFold modified the model-*-of-00148.safetensors files to package 8-bit MLX affine target projections. The original DFly2 tensors are included at upstream precision. TensorFold added MLX quantization settings to config.json and rewrote model.safetensors.index.json for the packed tensors.
7
+
8
+ Tencent and the upstream contributors authored the base model and the DFly2 drafter. The Tencent Hy License, Version 1.0, is included in LICENSE.
chat_template.jinja ADDED
@@ -0,0 +1,355 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {#- ----------‑‑‑ special token variables ‑‑‑---------- -#}
2
+ {%- set HYTK = ':opensource' %}
3
+ {%- set hy_start_token = '<|hy_start{}|>'.format(HYTK) %}
4
+ {%- set hy_middle_token = '<|hy_middle{}|>'.format(HYTK) %}
5
+ {%- set hy_end_token = '<|hy_end{}|>'.format(HYTK) %}
6
+ {%- set image_start_token = '<|hy_image▁start{}|>'.format(HYTK) %}
7
+ {%- set image_pad_token = '<|hy_image▁pad{}|>'.format(HYTK) %}
8
+ {%- set image_end_token = '<|hy_image▁end{}|>'.format(HYTK) %}
9
+ {%- set video_start_token = '<|hy_video▁start{}|>'.format(HYTK) %}
10
+ {%- set video_pad_token = '<|hy_video▁pad{}|>'.format(HYTK) %}
11
+ {%- set video_end_token = '<|hy_video▁end{}|>'.format(HYTK) %}
12
+ {%- set think_begin_token = '<think{}>'.format(HYTK) %}
13
+ {%- set think_end_token = '</think{}>'.format(HYTK) %}
14
+ {%- set toolcalls_begin_token = '<tool_calls{}>'.format(HYTK) %}
15
+ {%- set toolcalls_end_token = '</tool_calls{}>'.format(HYTK) %}
16
+ {%- set toolcall_begin_token = '<tool_call{}>'.format(HYTK) %}
17
+ {%- set toolcall_end_token = '</tool_call{}>'.format(HYTK) %}
18
+ {%- set argkey_begin_token = '<arg_key{}>'.format(HYTK) %}
19
+ {%- set argkey_end_token = '</arg_key{}>'.format(HYTK) %}
20
+ {%- set argvalue_begin_token = '<arg_value{}>'.format(HYTK) %}
21
+ {%- set argvalue_end_token = '</arg_value{}>'.format(HYTK) %}
22
+ {%- set toolresponse_begin_token = '<tool_response{}>'.format(HYTK) %}
23
+ {%- set toolresponse_end_token = '</tool_response{}>'.format(HYTK) %}
24
+ {%- set reasoning_mode_token = '<|reasoning_mode{}|>'.format(HYTK) %}
25
+
26
+ {#- ----------‑‑‑ hyperparameters variables ‑‑‑---------- -#}
27
+ {%- if not add_generation_prompt is defined %}
28
+ {%- set add_generation_prompt = false %}
29
+ {%- endif %}
30
+ {%- if not preserved_thinking is defined %}
31
+ {%- if not tools %}
32
+ {%- set preserved_thinking = false %}
33
+ {%- else %}
34
+ {%- set preserved_thinking = true %}
35
+ {%- endif %}
36
+ {%- endif %}
37
+
38
+ {%- if not reasoning_effort is defined %}
39
+ {%- set reasoning_effort = 'high' %}
40
+ {%- elif reasoning_effort not in ['max', 'high', 'no_think'] %}
41
+ {%- if reasoning_effort is none %}
42
+ {{- raise_exception('reasoning_effort error : None, should be no_think/high/max') }}
43
+ {%- else %}
44
+ {{- raise_exception('reasoning_effort error : ' + reasoning_effort + ', should be no_think/high/max') }}
45
+ {%- endif %}
46
+ {%- endif %}
47
+
48
+ {%- if fallback_strategy is defined and fallback_strategy == 'reasoning_toolcall_retry' %}
49
+ {%- set reasoning_effort = 'high' %}
50
+ {%- set add_generation_prompt = false %}
51
+ {%- endif %}
52
+ {%- if not raw_last_assistant is defined %}
53
+ {%- set raw_last_assistant = false %}
54
+ {%- endif %}
55
+ {%- if not add_vision_id is defined %}
56
+ {%- set add_vision_id = false %}
57
+ {%- endif %}
58
+ {%- set image_count = namespace(value=0) %}
59
+ {%- set video_count = namespace(value=0) %}
60
+
61
+ {%- macro tool_to_json(tool) -%}
62
+ {%- set ns_tool = namespace(first=true) -%}
63
+ {{- '{' -}}
64
+ {%- for k, v in tool.items() -%}
65
+ {%- if k != 'defer_loading' and k != 'strict' -%}
66
+ {%- if not ns_tool.first -%}{{- ', ' -}}{%- endif -%}
67
+ {%- set ns_tool.first = false -%}
68
+ {{- '"' ~ k ~ '": ' ~ (v | tojson(ensure_ascii=False)) -}}
69
+ {%- endif -%}
70
+ {%- endfor -%}
71
+ {{- '}' -}}
72
+ {%- endmacro -%}
73
+
74
+ {%- macro render_content(content, do_vision_count=true, is_system_content=false) -%}
75
+ {%- if content is string -%}
76
+ {{- content -}}
77
+ {%- elif content is iterable and content is not mapping -%}
78
+ {%- for item in content -%}
79
+ {%- if item is mapping and item.type == 'text' -%}
80
+ {{- item.text -}}
81
+ {%- elif item is mapping and ('image' in item or 'image_url' in item or item.type in ['image', 'image_url']) -%}
82
+ {%- if is_system_content -%}
83
+ {{- raise_exception('System message cannot contain images.') -}}
84
+ {%- endif -%}
85
+ {%- if do_vision_count -%}
86
+ {%- set image_count.value = image_count.value + 1 -%}
87
+ {%- endif -%}
88
+ {%- if add_vision_id -%}
89
+ {{- 'Picture ' ~ image_count.value ~ ': ' -}}
90
+ {%- endif -%}
91
+ {{- image_start_token ~ image_pad_token ~ image_end_token -}}
92
+ {%- elif item is mapping and ('video' in item or 'video_url' in item or item.type in ['video', 'video_url']) -%}
93
+ {%- if is_system_content -%}
94
+ {{- raise_exception('System message cannot contain videos.') -}}
95
+ {%- endif -%}
96
+ {%- if do_vision_count -%}
97
+ {%- set video_count.value = video_count.value + 1 -%}
98
+ {%- endif -%}
99
+ {%- if add_vision_id -%}
100
+ {{- 'Video ' ~ video_count.value ~ ': ' -}}
101
+ {%- endif -%}
102
+ {{- video_start_token ~ video_pad_token ~ video_end_token -}}
103
+ {%- elif item is string -%}
104
+ {{- item -}}
105
+ {%- else -%}
106
+ {{- item | string -}}
107
+ {%- endif -%}
108
+ {%- endfor -%}
109
+ {%- elif content is none -%}
110
+ {{- '' -}}
111
+ {%- else -%}
112
+ {{- content | string -}}
113
+ {%- endif -%}
114
+ {%- endmacro -%}
115
+
116
+ {%- macro render_tools_prompt() -%}
117
+ {{- '# Tools\n\nYou may call one or more functions to assist with the user query.' -}}
118
+ {{- '\n\nYou are provided with function signatures within <tools></tools> XML tags:' -}}
119
+ {{- '\n<tools>\n' -}}
120
+ {%- set tool_ns = namespace(first=true) -%}
121
+ {%- for tool in tools -%}
122
+ {%- set t = tool['function'] if tool is mapping and 'function' in tool else tool -%}
123
+ {%- if t.defer_loading is not defined or not t.defer_loading -%}
124
+ {%- if not tool_ns.first -%}{{- '\n' -}}{%- endif -%}
125
+ {%- set tool_ns.first = false -%}
126
+ {{- tool_to_json(t) -}}
127
+ {%- endif -%}
128
+ {%- endfor -%}
129
+ {{- '\n</tools>\n\n' -}}
130
+ {{- 'For function call returns, you should first print ' ~ toolcalls_begin_token -}}
131
+ {{- '\nFor each function call, you should return object like:\n' -}}
132
+ {{- toolcall_begin_token ~ '{function-name}' -}}
133
+ {{- argkey_begin_token ~ '{arg-key-1}' ~ argkey_end_token -}}
134
+ {{- argvalue_begin_token ~ '{arg-value-1}' ~ argvalue_end_token -}}
135
+ {{- argkey_begin_token ~ '{arg-key-2}' ~ argkey_end_token -}}
136
+ {{- argvalue_begin_token ~ '{arg-value-2}' ~ argvalue_end_token -}}
137
+ {{- '...' -}}
138
+ {{- toolcall_end_token -}}
139
+ {{- '\nAt the end of function call returns, you should print ' ~ toolcalls_end_token -}}
140
+ {%- endmacro -%}
141
+
142
+ {#- adjacent tool_search_output parts share one <tools> block, so a tool search result has the same shape as the tools prompt -#}
143
+ {%- macro render_tool_response(message) -%}
144
+ {%- set content = message['content'] -%}
145
+ {{- toolresponse_begin_token -}}
146
+ {%- if content is string -%}
147
+ {{- content -}}
148
+ {%- elif content is iterable and content is not mapping -%}
149
+ {%- set tools_ns = namespace(open=false) -%}
150
+ {%- for item in content -%}
151
+ {%- set is_search_output = item is mapping and item.type is defined and item.type == 'tool_search_output' -%}
152
+ {%- if is_search_output and not tools_ns.open -%}
153
+ {{- '<tools>\n' -}}
154
+ {%- set tools_ns.open = true -%}
155
+ {%- elif not is_search_output and tools_ns.open -%}
156
+ {{- '</tools>' -}}
157
+ {%- set tools_ns.open = false -%}
158
+ {%- endif -%}
159
+ {%- if is_search_output -%}
160
+ {%- if item.tools is defined and item.tools is iterable -%}
161
+ {%- for tool in item.tools -%}
162
+ {%- set t = tool['function'] if tool is mapping and 'function' in tool else tool -%}
163
+ {{- tool_to_json(t) ~ '\n' -}}
164
+ {%- endfor -%}
165
+ {%- endif -%}
166
+ {%- elif item is mapping and item.output is defined -%}
167
+ {{- render_content(item.output) -}}
168
+ {%- else -%}
169
+ {{- render_content([item]) -}}
170
+ {%- endif -%}
171
+ {%- endfor -%}
172
+ {%- if tools_ns.open -%}
173
+ {{- '</tools>' -}}
174
+ {%- endif -%}
175
+ {%- else -%}
176
+ {{- render_content(content) -}}
177
+ {%- endif -%}
178
+ {{- toolresponse_end_token -}}
179
+ {%- endmacro -%}
180
+
181
+ {#- consecutive tool messages are clustered into a single tool message whose content is the list of the original tool messages; the result is written to merged_ns.messages (a macro cannot return a list) -#}
182
+ {%- set merged_ns = namespace(messages=[]) %}
183
+ {%- macro merge_tool_responses(messages) -%}
184
+ {%- set merge_ns = namespace(result=[], cluster=[]) -%}
185
+ {%- for message in messages -%}
186
+ {%- if message['role'] == 'tool' -%}
187
+ {%- set merge_ns.cluster = merge_ns.cluster + [message] -%}
188
+ {%- else -%}
189
+ {%- if merge_ns.cluster -%}
190
+ {%- set merge_ns.result = merge_ns.result + [{'role': 'tool', 'content': merge_ns.cluster}] -%}
191
+ {%- set merge_ns.cluster = [] -%}
192
+ {%- endif -%}
193
+ {%- set merge_ns.result = merge_ns.result + [message] -%}
194
+ {%- endif -%}
195
+ {%- endfor -%}
196
+ {%- if merge_ns.cluster -%}
197
+ {%- set merge_ns.result = merge_ns.result + [{'role': 'tool', 'content': merge_ns.cluster}] -%}
198
+ {%- endif -%}
199
+ {%- set merged_ns.messages = merge_ns.result -%}
200
+ {%- endmacro -%}
201
+
202
+ {#- render one tool cluster, reordered to follow the tool_call order of the preceding assistant turn; any missing / ambiguous id falls back to the original tool message order for the whole cluster -#}
203
+ {%- macro render_tool_responses(tool_messages, tool_call_ids) -%}
204
+ {%- set order_ns = namespace(ordered=[], matched=true) -%}
205
+ {%- if tool_call_ids and tool_call_ids | length == tool_messages | length -%}
206
+ {%- for tool_call_id in tool_call_ids -%}
207
+ {%- set hit_ns = namespace(count=0, message=none) -%}
208
+ {%- for tool_message in tool_messages -%}
209
+ {%- set message_id = tool_message['tool_call_id'] if tool_message['tool_call_id'] is defined else tool_message['id'] -%}
210
+ {%- if message_id is defined and message_id == tool_call_id -%}
211
+ {%- set hit_ns.count = hit_ns.count + 1 -%}
212
+ {%- set hit_ns.message = tool_message -%}
213
+ {%- endif -%}
214
+ {%- endfor -%}
215
+ {%- if hit_ns.count == 1 -%}
216
+ {%- set order_ns.ordered = order_ns.ordered + [hit_ns.message] -%}
217
+ {%- else -%}
218
+ {%- set order_ns.matched = false -%}
219
+ {%- endif -%}
220
+ {%- endfor -%}
221
+ {%- else -%}
222
+ {%- set order_ns.matched = false -%}
223
+ {%- endif -%}
224
+ {%- for tool_message in (order_ns.ordered if order_ns.matched else tool_messages) -%}
225
+ {{- render_tool_response(tool_message) -}}
226
+ {%- endfor -%}
227
+ {%- endmacro -%}
228
+
229
+ {%- set _ = merge_tool_responses(messages) %}
230
+ {%- set normed_messages = merged_ns.messages %}
231
+
232
+ {%- set ns = namespace(last_user_index=-1, has_leading_system=false) %}
233
+ {%- if normed_messages and normed_messages[0].role == 'system' %}
234
+ {%- set ns.has_leading_system = true %}
235
+ {%- endif %}
236
+ {%- for message in normed_messages %}
237
+ {%- if message['role'] == 'user' %}
238
+ {%- set ns.last_user_index = loop.index0 %}
239
+ {%- endif %}
240
+ {%- endfor %}
241
+
242
+ {#- no leading system: synthesize one for tools and/or reasoning_mode -#}
243
+ {%- if not ns.has_leading_system %}
244
+ {{- hy_start_token ~ 'system' ~ hy_middle_token -}}
245
+ {%- if tools %}
246
+ {{- render_tools_prompt() -}}
247
+ {%- endif %}
248
+ {{- reasoning_mode_token ~ 'reasoning_effort:' ~ reasoning_effort -}}
249
+ {{- hy_end_token -}}
250
+ {%- endif %}
251
+
252
+ {%- set last_ns = namespace(last_is_assistant=false) %}
253
+ {%- set prev_ns = namespace(tool_call_ids=[]) %}
254
+ {%- for message in normed_messages %}
255
+ {%- if message['role'] == 'system' %}
256
+ {{- hy_start_token ~ 'system' ~ hy_middle_token -}}
257
+ {#- tools / reasoning_mode only attach to the leading system (messages[0]) -#}
258
+ {%- if loop.first %}
259
+ {%- if tools %}
260
+ {{- render_tools_prompt() -}}
261
+ {%- endif %}
262
+ {%- set content = render_content(message['content']) -%}
263
+ {%- if tools and content -%}
264
+ {{- '\n\n' -}}
265
+ {%- endif -%}
266
+ {{- content -}}
267
+ {{- reasoning_mode_token ~ 'reasoning_effort:' ~ reasoning_effort -}}
268
+ {%- else %}
269
+ {{- render_content(message['content']) -}}
270
+ {%- endif %}
271
+ {{- hy_end_token -}}
272
+ {%- elif message['role'] == 'user' %}
273
+ {{- hy_start_token ~ 'user' ~ hy_middle_token -}}
274
+ {{- render_content(message['content']) -}}
275
+ {{- hy_end_token -}}
276
+ {%- elif message['role'] == 'assistant' %}
277
+ {%- set content_body = render_content(message['content']) -%}
278
+ {#- 'reasoning' takes precedence, fall back to 'reasoning_content' when it is empty -#}
279
+ {%- set reasoning_text = '' %}
280
+ {%- if message['reasoning'] is defined and message['reasoning'] is string and message['reasoning'] %}
281
+ {%- set reasoning_text = message['reasoning'] %}
282
+ {%- elif message['reasoning_content'] is defined and message['reasoning_content'] is string and message['reasoning_content'] %}
283
+ {%- set reasoning_text = message['reasoning_content'] %}
284
+ {%- endif %}
285
+ {#- no_think overrides preserved_thinking: history is always emitted with empty think tags -#}
286
+ {%- if reasoning_effort != 'no_think' and (preserved_thinking or loop.index0 > ns.last_user_index) and reasoning_text %}
287
+ {%- set content = think_begin_token ~ reasoning_text ~ think_end_token ~ content_body %}
288
+ {%- else %}
289
+ {%- set content = think_begin_token ~ think_end_token ~ content_body %}
290
+ {%- endif %}
291
+ {{- hy_start_token ~ 'assistant' ~ hy_middle_token -}}
292
+ {%- if message['tool_calls'] is defined and message['tool_calls'] %}
293
+ {#- remember the tool_call ids of this turn to order the following tool responses; an incomplete id set means "do not reorder" -#}
294
+ {%- set ids_ns = namespace(ids=[], complete=true) %}
295
+ {%- for tool in message['tool_calls'] %}
296
+ {%- set tool_call_id = tool['id'] if tool['id'] is defined and tool['id'] else tool['tool_call_id'] %}
297
+ {%- if tool_call_id is defined and tool_call_id %}
298
+ {%- set ids_ns.ids = ids_ns.ids + [tool_call_id] %}
299
+ {%- else %}
300
+ {%- set ids_ns.complete = false %}
301
+ {%- endif %}
302
+ {%- endfor %}
303
+ {%- set prev_ns.tool_call_ids = ids_ns.ids if ids_ns.complete else [] %}
304
+ {{- content -}}
305
+ {{- toolcalls_begin_token -}}
306
+ {%- for tool in message['tool_calls'] -%}
307
+ {%- set func = tool['function'] if tool is mapping and 'function' in tool else tool -%}
308
+ {%- set arguments = func['arguments'] -%}
309
+ {{- toolcall_begin_token ~ func['name'] -}}
310
+ {%- for key, value in arguments.items() -%}
311
+ {{- argkey_begin_token ~ key ~ argkey_end_token -}}
312
+ {%- if value is not string -%}
313
+ {%- set value = value | tojson(ensure_ascii=False) -%}
314
+ {%- endif -%}
315
+ {{- argvalue_begin_token ~ value ~ argvalue_end_token -}}
316
+ {%- endfor -%}
317
+ {{- toolcall_end_token -}}
318
+ {%- endfor -%}
319
+ {{- toolcalls_end_token -}}
320
+ {%- else %}
321
+ {%- if loop.last and raw_last_assistant %}
322
+ {{- content_body -}}
323
+ {%- else %}
324
+ {{- content -}}
325
+ {%- endif %}
326
+ {%- endif %}
327
+ {#- continuation / prefill: last assistant is still open, do not close with hy_end -#}
328
+ {%- if not (loop.last and raw_last_assistant) and not (loop.last and fallback_strategy is defined and fallback_strategy == 'reasoning_toolcall_retry') %}
329
+ {{- hy_end_token -}}
330
+ {%- endif %}
331
+ {%- elif message['role'] == 'tool' %}
332
+ {{- hy_start_token ~ 'tool' ~ hy_middle_token -}}
333
+ {{- render_tool_responses(message['content'], prev_ns.tool_call_ids) -}}
334
+ {{- hy_end_token -}}
335
+ {%- else %}
336
+ {{- hy_start_token ~ message['role'] ~ hy_middle_token -}}
337
+ {{- render_content(message['content']) -}}
338
+ {{- hy_end_token -}}
339
+ {%- endif %}
340
+ {%- if message['role'] != 'assistant' or not (message['tool_calls'] is defined and message['tool_calls']) %}
341
+ {%- set prev_ns.tool_call_ids = [] %}
342
+ {%- endif %}
343
+ {%- if loop.last and message['role'] == 'assistant' %}
344
+ {%- set last_ns.last_is_assistant = true %}
345
+ {%- endif %}
346
+ {%- endfor %}
347
+ {%- if add_generation_prompt %}
348
+ {%- if not last_ns.last_is_assistant %}
349
+ {%- if reasoning_effort == 'no_think' %}
350
+ {{- hy_start_token ~ 'assistant' ~ hy_middle_token ~ think_begin_token ~ think_end_token -}}
351
+ {%- else %}
352
+ {{- hy_start_token ~ 'assistant' ~ hy_middle_token ~ think_begin_token -}}
353
+ {%- endif %}
354
+ {%- endif %}
355
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,544 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "HYV4FlashForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "image_end_token_id": 120119,
7
+ "image_newline_token_id": 120121,
8
+ "image_start_token_id": 120118,
9
+ "image_token_id": 120120,
10
+ "model_type": "hy_v4_flash",
11
+ "processor_class": "HYV4FlashProcessor",
12
+ "spatial_merge_size": 2,
13
+ "text_config": {
14
+ "architectures": [
15
+ "HYV4FlashForCausalLM"
16
+ ],
17
+ "attention_bias": false,
18
+ "attention_dropout": 0.0,
19
+ "bitwise_backward_align": true,
20
+ "bos_token_id": 120000,
21
+ "compressed_indexer_candidate_topk": 2048,
22
+ "compressed_indexer_compress_ratio": 4,
23
+ "compressed_indexer_group_topk": 512,
24
+ "compressed_indexer_head_dim": 128,
25
+ "compressed_indexer_key_pooling": "gated",
26
+ "compressed_indexer_num_attention_heads": 16,
27
+ "compressed_indexer_reuse_fine_indexer": false,
28
+ "compressed_indexer_skip_fine_select": true,
29
+ "compressed_indexer_stage2_query_block_size": 8192,
30
+ "compressed_indexer_teacher_pooling_type": "max",
31
+ "compressed_indexer_triton_pooling_min_groups": 1,
32
+ "compressed_indexer_use_triton_pooling": true,
33
+ "dsa_skip_attn_post_norm": false,
34
+ "enable_ihc": true,
35
+ "enable_lm_head_fp32": true,
36
+ "engram_embed_random_seed": 1234,
37
+ "engram_fp8_embedding": true,
38
+ "engram_isolate_fffd_namespace": false,
39
+ "engram_layer_head_vocab_sizes": {
40
+ "12": [
41
+ [
42
+ 10312277,
43
+ 10312283,
44
+ 10312301,
45
+ 10312343,
46
+ 10312373,
47
+ 10312397,
48
+ 10312409,
49
+ 10312453
50
+ ],
51
+ [
52
+ 10312457,
53
+ 10312483,
54
+ 10312507,
55
+ 10312513,
56
+ 10312531,
57
+ 10312543,
58
+ 10312567,
59
+ 10312571
60
+ ]
61
+ ],
62
+ "2": [
63
+ [
64
+ 10312007,
65
+ 10312021,
66
+ 10312039,
67
+ 10312069,
68
+ 10312091,
69
+ 10312121,
70
+ 10312123,
71
+ 10312147
72
+ ],
73
+ [
74
+ 10312177,
75
+ 10312187,
76
+ 10312207,
77
+ 10312213,
78
+ 10312229,
79
+ 10312241,
80
+ 10312249,
81
+ 10312259
82
+ ]
83
+ ],
84
+ "22": [
85
+ [
86
+ 10312613,
87
+ 10312619,
88
+ 10312633,
89
+ 10312657,
90
+ 10312681,
91
+ 10312699,
92
+ 10312723,
93
+ 10312747
94
+ ],
95
+ [
96
+ 10312759,
97
+ 10312789,
98
+ 10312811,
99
+ 10312823,
100
+ 10312867,
101
+ 10312873,
102
+ 10312889,
103
+ 10312903
104
+ ]
105
+ ],
106
+ "32": [
107
+ [
108
+ 10312909,
109
+ 10312919,
110
+ 10312927,
111
+ 10312957,
112
+ 10312979,
113
+ 10313011,
114
+ 10313021,
115
+ 10313057
116
+ ],
117
+ [
118
+ 10313063,
119
+ 10313117,
120
+ 10313123,
121
+ 10313129,
122
+ 10313161,
123
+ 10313179,
124
+ 10313189,
125
+ 10313201
126
+ ]
127
+ ]
128
+ },
129
+ "engram_layer_ids": [
130
+ 2,
131
+ 12,
132
+ 22,
133
+ 32
134
+ ],
135
+ "engram_max_ngram_size": 3,
136
+ "engram_n_embed_per_ngram": 768,
137
+ "engram_n_head_per_ngram": 8,
138
+ "engram_pad_id": 120002,
139
+ "engram_seed": 0,
140
+ "engram_tokenizer_name_or_path": null,
141
+ "engram_vocab_map_path": null,
142
+ "engram_vocab_size": [
143
+ 10312000,
144
+ 10312000
145
+ ],
146
+ "eos_token_id": 120025,
147
+ "fast_op_fp32_linear_gemm": true,
148
+ "first_k_dense_replace": 1,
149
+ "full_nope": false,
150
+ "gate_groups": 1,
151
+ "gate_lora_op": "none",
152
+ "gate_lora_rank": null,
153
+ "gated_mla": true,
154
+ "gating_type": "elementwise",
155
+ "hc_eps": 1e-06,
156
+ "hc_magnitude": 2.0,
157
+ "hc_mult": 4,
158
+ "head_dim": 64,
159
+ "hidden_act": "silu",
160
+ "hidden_size": 3072,
161
+ "ihc_kernel_backend": "naive",
162
+ "index_head_dim": 128,
163
+ "index_n_heads": 16,
164
+ "index_topk": 2048,
165
+ "indexer_types": [
166
+ "full",
167
+ "full",
168
+ "full",
169
+ "full",
170
+ "full",
171
+ "full",
172
+ "full",
173
+ "full",
174
+ "full",
175
+ "full",
176
+ "full",
177
+ "full",
178
+ "full",
179
+ "full",
180
+ "full",
181
+ "full",
182
+ "full",
183
+ "full",
184
+ "full",
185
+ "full",
186
+ "full",
187
+ "full",
188
+ "full",
189
+ "full",
190
+ "full",
191
+ "full",
192
+ "full",
193
+ "full",
194
+ "full",
195
+ "full",
196
+ "full",
197
+ "full",
198
+ "full",
199
+ "full",
200
+ "full",
201
+ "full",
202
+ "full",
203
+ "full",
204
+ "full",
205
+ "full",
206
+ "full",
207
+ "full"
208
+ ],
209
+ "initializer_range": 0.006,
210
+ "intermediate_size": 13824,
211
+ "kv_lora_rank": 512,
212
+ "layer_types": [
213
+ "deepseek_sparse_attention",
214
+ "deepseek_sparse_attention",
215
+ "sliding_attention",
216
+ "sliding_attention",
217
+ "sliding_attention",
218
+ "deepseek_sparse_attention",
219
+ "sliding_attention",
220
+ "sliding_attention",
221
+ "sliding_attention",
222
+ "deepseek_sparse_attention",
223
+ "sliding_attention",
224
+ "sliding_attention",
225
+ "sliding_attention",
226
+ "deepseek_sparse_attention",
227
+ "sliding_attention",
228
+ "sliding_attention",
229
+ "sliding_attention",
230
+ "deepseek_sparse_attention",
231
+ "sliding_attention",
232
+ "sliding_attention",
233
+ "sliding_attention",
234
+ "deepseek_sparse_attention",
235
+ "sliding_attention",
236
+ "sliding_attention",
237
+ "sliding_attention",
238
+ "deepseek_sparse_attention",
239
+ "sliding_attention",
240
+ "sliding_attention",
241
+ "sliding_attention",
242
+ "deepseek_sparse_attention",
243
+ "sliding_attention",
244
+ "sliding_attention",
245
+ "sliding_attention",
246
+ "deepseek_sparse_attention",
247
+ "sliding_attention",
248
+ "sliding_attention",
249
+ "sliding_attention",
250
+ "deepseek_sparse_attention",
251
+ "sliding_attention",
252
+ "sliding_attention",
253
+ "sliding_attention",
254
+ "deepseek_sparse_attention"
255
+ ],
256
+ "learnable_sink": true,
257
+ "learnable_sink_init": 0.0,
258
+ "max_position_embeddings": 1048576,
259
+ "mlp_layer_types": [
260
+ "dense",
261
+ "sparse",
262
+ "sparse",
263
+ "sparse",
264
+ "sparse",
265
+ "sparse",
266
+ "sparse",
267
+ "sparse",
268
+ "sparse",
269
+ "sparse",
270
+ "sparse",
271
+ "sparse",
272
+ "sparse",
273
+ "sparse",
274
+ "sparse",
275
+ "sparse",
276
+ "sparse",
277
+ "sparse",
278
+ "sparse",
279
+ "sparse",
280
+ "sparse",
281
+ "sparse",
282
+ "sparse",
283
+ "sparse",
284
+ "sparse",
285
+ "sparse",
286
+ "sparse",
287
+ "sparse",
288
+ "sparse",
289
+ "sparse",
290
+ "sparse",
291
+ "sparse",
292
+ "sparse",
293
+ "sparse",
294
+ "sparse",
295
+ "sparse",
296
+ "sparse",
297
+ "sparse",
298
+ "sparse",
299
+ "sparse",
300
+ "sparse",
301
+ "sparse"
302
+ ],
303
+ "model_type": "hy_v4_flash",
304
+ "moe_aux_loss_coeff": 0.0,
305
+ "moe_intermediate_size": 1536,
306
+ "moe_router_enable_expert_bias": true,
307
+ "moe_router_use_sigmoid": true,
308
+ "n_group": 1,
309
+ "n_routed_experts": 512,
310
+ "n_shared_experts": 1,
311
+ "norm_topk_prob": true,
312
+ "num_attention_heads": 32,
313
+ "num_experts_per_tok": 16,
314
+ "num_hidden_layers": 42,
315
+ "num_key_value_heads": 32,
316
+ "num_nextn_predict_layers": 0,
317
+ "o_groups": 1,
318
+ "o_lora_op": "none",
319
+ "o_lora_rank": null,
320
+ "output_router_logits": false,
321
+ "pad_token_id": 120002,
322
+ "q_lora_rank": 1024,
323
+ "qk_head_dim": 256,
324
+ "qk_nope_head_dim": 192,
325
+ "qk_norm": true,
326
+ "qk_rope_head_dim": 64,
327
+ "return_bos_score": true,
328
+ "return_max_logit": true,
329
+ "rms_norm_eps": 1e-05,
330
+ "rope_parameters": {
331
+ "sliding_attention": {
332
+ "mrope_interleaved": true,
333
+ "mrope_section": [
334
+ 12,
335
+ 10,
336
+ 10
337
+ ],
338
+ "rope_theta": 10000,
339
+ "rope_type": "default"
340
+ },
341
+ "deepseek_sparse_attention": {
342
+ "mrope_interleaved": true,
343
+ "mrope_section": [
344
+ 12,
345
+ 10,
346
+ 10
347
+ ],
348
+ "rope_theta": 10000000,
349
+ "rope_type": "default"
350
+ }
351
+ },
352
+ "routed_expert_hidden_size": 1536,
353
+ "routed_scaling_factor": 3.998,
354
+ "sandwich_norm": true,
355
+ "sliding_window": 512,
356
+ "swa_num_attention_heads": 64,
357
+ "swa_pattern": [
358
+ 0,
359
+ 0,
360
+ 1,
361
+ 1,
362
+ 1,
363
+ 0,
364
+ 1,
365
+ 1,
366
+ 1,
367
+ 0,
368
+ 1,
369
+ 1,
370
+ 1,
371
+ 0,
372
+ 1,
373
+ 1,
374
+ 1,
375
+ 0,
376
+ 1,
377
+ 1,
378
+ 1,
379
+ 0,
380
+ 1,
381
+ 1,
382
+ 1,
383
+ 0,
384
+ 1,
385
+ 1,
386
+ 1,
387
+ 0,
388
+ 1,
389
+ 1,
390
+ 1,
391
+ 0,
392
+ 1,
393
+ 1,
394
+ 1,
395
+ 0,
396
+ 1,
397
+ 1,
398
+ 1,
399
+ 0
400
+ ],
401
+ "swa_qk_head_dim": 256,
402
+ "swa_qk_nope_head_dim": 192,
403
+ "swa_qk_rope_head_dim": 64,
404
+ "swa_v_head_dim": 256,
405
+ "swiglu_limit": 10.0,
406
+ "tie_word_embeddings": false,
407
+ "topk_group": 1,
408
+ "use_cache": true,
409
+ "use_compressed_indexer": true,
410
+ "use_dsa": true,
411
+ "use_grouped_mm": false,
412
+ "use_mla": true,
413
+ "v_head_dim": 256,
414
+ "vocab_size": 120832,
415
+ "window_size": [
416
+ 511,
417
+ 0
418
+ ]
419
+ },
420
+ "transformers_version": "5.23.0",
421
+ "video_end_token_id": 120123,
422
+ "video_start_token_id": 120122,
423
+ "video_token_id": 120124,
424
+ "vision_config": {
425
+ "add_patchemb_bias": true,
426
+ "anyres_vit_max_image_size": 2048,
427
+ "attention_backend": "hf_align_sdpa",
428
+ "attention_dropout": 0.0,
429
+ "bias_activation_fusion": true,
430
+ "cat_extra_token": 0,
431
+ "hidden_act": "gelu",
432
+ "hidden_dropout": 0.0,
433
+ "hidden_size": 1152,
434
+ "img_max_token_num": 4096,
435
+ "intermediate_size": 4304,
436
+ "interpolate_mode": "bilinear",
437
+ "learnable_mlp_pooling_size": 0,
438
+ "max_image_size": 2048,
439
+ "max_vit_seq_len": 16384,
440
+ "min_image_size": 512,
441
+ "model_type": "hy_v4_flash",
442
+ "num_attention_heads": 16,
443
+ "num_channels": 3,
444
+ "num_hidden_layers": 27,
445
+ "num_key_value_heads": 16,
446
+ "out_hidden_size": 3072,
447
+ "packed_seq_alignment": 128,
448
+ "patch_size": 16,
449
+ "perceive_post_norm": false,
450
+ "perceive_pre_norm": true,
451
+ "projector_type": "rmsnorm_mlp_adapter",
452
+ "remove_prenorm": true,
453
+ "resize_resolution": 2048,
454
+ "rms_norm_eps": 1e-05,
455
+ "rope_2d_percent": 1.0,
456
+ "rope_2d_theta": 10000.0,
457
+ "spatial_merge_size": 2,
458
+ "spatial_patch_size": 1,
459
+ "temporal_patch_size": 1,
460
+ "text_hidden_size": 3072,
461
+ "video_max_image_size": 768,
462
+ "video_min_image_size": 256,
463
+ "video_spatial_compression": false,
464
+ "video_temporal_compression": false,
465
+ "vision_full_attention": false
466
+ },
467
+ "vision_start_token_id": 120118,
468
+ "speculative_config": {
469
+ "method": "dfly",
470
+ "model": "dfly",
471
+ "num_speculative_tokens": 5,
472
+ "draft_sample_method": "probabilistic"
473
+ },
474
+ "dfly_mtp_fusion": "slot0",
475
+ "dfly_target_index_topk": 2048,
476
+ "dfly_context_local_window": null,
477
+ "dfly_enable_hidden_correction": true,
478
+ "dfly_num_hidden_layers": 5,
479
+ "dfly_mask_token_id": 120009,
480
+ "dfly_target_index_layer": [
481
+ 25,
482
+ 29,
483
+ 33,
484
+ 37,
485
+ 41
486
+ ],
487
+ "dfly_target_kv_layers": [
488
+ 25,
489
+ 29,
490
+ 33,
491
+ 37,
492
+ 41
493
+ ],
494
+ "quantization": {
495
+ "bits": 8,
496
+ "group_size": 64,
497
+ "mode": "affine",
498
+ "model.layers.31.engram_layer.multi_head_embedding.embedding": {
499
+ "bits": 8,
500
+ "group_size": 32,
501
+ "mode": "affine"
502
+ },
503
+ "model.layers.21.engram_layer.multi_head_embedding.embedding": {
504
+ "bits": 8,
505
+ "group_size": 32,
506
+ "mode": "affine"
507
+ },
508
+ "model.layers.11.engram_layer.multi_head_embedding.embedding": {
509
+ "bits": 8,
510
+ "group_size": 32,
511
+ "mode": "affine"
512
+ },
513
+ "model.layers.1.engram_layer.multi_head_embedding.embedding": {
514
+ "bits": 8,
515
+ "group_size": 32,
516
+ "mode": "affine"
517
+ }
518
+ },
519
+ "quantization_config": {
520
+ "bits": 8,
521
+ "group_size": 64,
522
+ "mode": "affine",
523
+ "model.layers.31.engram_layer.multi_head_embedding.embedding": {
524
+ "bits": 8,
525
+ "group_size": 32,
526
+ "mode": "affine"
527
+ },
528
+ "model.layers.21.engram_layer.multi_head_embedding.embedding": {
529
+ "bits": 8,
530
+ "group_size": 32,
531
+ "mode": "affine"
532
+ },
533
+ "model.layers.11.engram_layer.multi_head_embedding.embedding": {
534
+ "bits": 8,
535
+ "group_size": 32,
536
+ "mode": "affine"
537
+ },
538
+ "model.layers.1.engram_layer.multi_head_embedding.embedding": {
539
+ "bits": 8,
540
+ "group_size": 32,
541
+ "mode": "affine"
542
+ }
543
+ }
544
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 120000,
3
+ "do_sample": true,
4
+ "eos_token_id": 120025,
5
+ "pad_token_id": 120002,
6
+ "temperature": 0.9,
7
+ "top_k": -1,
8
+ "top_p": 1,
9
+ "transformers_version": "5.23.0"
10
+ }
model-00001-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19718b4fd5706cc2a35de31f53f0e70b0cbe1480f0788ce674ff2d1a597e9041
3
+ size 17820966472
model-00002-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c19ffac3755ee9318a42d421068d053dfb92f35b71aaade3167b24930992fc44
3
+ size 17820442024
model-00004-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c358b643f789814e42bb3ccb0f6eb7c5e3cfa622a8071686505a45cfa9fa6549
3
+ size 17819393768
model-00007-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cdad8d9a1294b597e013c3bb1e7c363ecbbf6e1e34c145fa14deeae47f0fd850
3
+ size 1283457688
model-00013-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:245f57056bb459b912a2a193f69d9f8ae0291526c694ab960a26eb83e1797b99
3
+ size 1283457688
model-00016-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f286bee75aa4255518a7667432af874c757afca670e2143a9ff71e5c8fb48e63
3
+ size 1283457688
model-00019-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a778b92404dce2f0420c804d09df16e2bda4d1f9ed4ecad795775328cf27846
3
+ size 1283457688
model-00021-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3043cc2bc7dbd684ed0a0c81238db9ebd2ccbf3b4b1442dec172667efc0c53dd
3
+ size 2566914720
model-00024-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca82a41bc43b960ac26ee3320b8ed8a9f843a729e97ee5cdddcf3b1c8b2b33f0
3
+ size 2566914720
model-00033-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa20416d5a1d061c995183efb8d58f728172655442d6d4cf13c3c4e1edfc24db
3
+ size 2566914720
model-00036-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:935d9f5538432a9ef96dddcd450ba539af4efba9d6d5c1b6d39a81a82b3e6afa
3
+ size 2566914720
model-00039-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9212739ae7130066847ad2b223444e9ae920e328f13705b69a47804f8ccbc72e
3
+ size 2566914720
model-00040-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:011291c126eac3711b46440b16867749b86b116ed25828ef4b888a8d7e7c5a5c
3
+ size 1283457688
model-00045-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7eaff1fdd6b7290b5f112a4bb6398c97a596399f8cc529b5b4498f973e91be03
3
+ size 2566914720
model-00046-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:545f5cdeb0a44bc9650813cad7f85703813fee004c168245f33db3dafd03df01
3
+ size 1283457688
model-00057-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8adb8b4fe31f61a59a68b3609837d4ef5cec49a3b9892b8bcde6b3c4874ccdfc
3
+ size 1283457680
model-00058-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c69c0caa5c804fc15796d3fc751995e5fa54114ef2766aac5c05c76cc4b9c86f
3
+ size 1283457680
model-00060-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57b20fc404e2825124494c2b8e493377c0ae1ac08cbd6da71b10f7c53a5ed701
3
+ size 7799416
model-00065-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42506fcb4567d79cb166777b303fcd065521b10593a63cdb49cbe9a763eca6cb
3
+ size 565972264
model-00072-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01640c88d4156175dd8b512c3a63b2f4f8ddb98a56f89474d44024f0bffad3d5
3
+ size 1880720
model-00076-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c35730eb85da5ef4971da7d63bacfec93b9471b4665adc3dc102691a6f1793ce
3
+ size 19833344
model-00077-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c865113cdff2f5c0d8f391d86986036443d45333fc0e41fd62310747f640765
3
+ size 5014160
model-00078-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2f10afa73a72cfe7cd5e260758991c7b139b87c9b037a3c87da261f8ff013ca
3
+ size 2566914712
model-00081-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6448c59ed8f6a9c6fbf5e2b09a648cb5df38ff06b557d392f84e10c1e8075abc
3
+ size 524752656
model-00084-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9303f60f9316ff890300a354a88102a4cad0d7cdeeac0f8b8c86728309ceb37c
3
+ size 7799416
model-00093-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20f7f04ada16d04e7eb0a97b308c5c86b095504f22a55488e5780f2cc4f9d656
3
+ size 1283457688
model-00096-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7108aa1e7da1960bb1b34b6ce3943f62ea86112af5f32a1a66c78fde7407d385
3
+ size 74240152
model-00099-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11c6adbccb3c76cb87be3fa90ea29aa919357cb54c30ccc4dc17da197c1d0146
3
+ size 2566914712
model-00100-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e44e3eac41c06a583481cfb8e28ab357a865856403d020c155f858b288f25f31
3
+ size 1283457680
model-00105-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0fac47357115e1701580609887b817f99df8ca108ca480e70470cb74bd186b1
3
+ size 15598200
model-00112-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56a588f85dc74202542d34c435e778abb0cb332e3da1b7506ba468625615c290
3
+ size 157490888
model-00117-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b10473be6729043b2a50787635e957bfa8cde0a80fe900ca57c73f3adcfca48b
3
+ size 2566914712
model-00118-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab0b2b68cd85df9da2ab7674b253d06e02b02468f5ff86453a7500c4c7e85497
3
+ size 1283457688
model-00120-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a8d13dfc01e911a82a2f4aa83bdfb18b94e20e375a8f33ea2f72c0fccef6efb
3
+ size 250805784
model-00125-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49ae79b5e3551157f40cd5448e9466fec333fa65ebcaf29882afa0cdb96e73dd
3
+ size 17826424
model-00132-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e0476cc88f03740dc62b2b9917317549a42a96408eec06773e75eefee729570
3
+ size 129240040
model-00137-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b188cdbd20368c20d3231ea0cfe23bab67519ae37f7b3671494041e265be0ae4
3
+ size 5014144
model-00138-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36073d23f69f28e2d03803719ad872d4854e8e148d677a1acd486e44de9e94a9
3
+ size 2566914720
model-00141-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66ee31d392b008478b82ee81758389735b2e9579bb811c4524db21d3044e9023
3
+ size 202116160
model-00144-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af00b1a2e07037e70000b863a977210ce470e7b42b21c7ab7e18d386d2b5960a
3
+ size 75208336
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
processor_config.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "device": "cpu",
4
+ "do_convert_rgb": true,
5
+ "do_normalize": true,
6
+ "do_rescale": true,
7
+ "do_resize": true,
8
+ "image_mean": [
9
+ 0.5,
10
+ 0.5,
11
+ 0.5
12
+ ],
13
+ "image_processor_type": "HYV4VLImageProcessor",
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "max_frames": 1024,
20
+ "max_pixels": 4194304,
21
+ "merge_size": 2,
22
+ "min_frames": 2,
23
+ "min_pixels": 4096,
24
+ "patch_size": 16,
25
+ "resample": 1,
26
+ "rescale_factor": 0.00392156862745098,
27
+ "size": {
28
+ "longest_edge": 4194304,
29
+ "shortest_edge": 4096
30
+ },
31
+ "spatial_patch_size": 1,
32
+ "temporal_patch_size": 1,
33
+ "timestamp_token_per_frame": 6,
34
+ "timestamp_token_reserve": 1000,
35
+ "video_max_image_size": 1024
36
+ },
37
+ "processor_class": "HYV4FlashProcessor",
38
+ "video_processor": {
39
+ "do_convert_rgb": true,
40
+ "do_normalize": true,
41
+ "do_rescale": true,
42
+ "do_resize": true,
43
+ "do_sample_frames": false,
44
+ "fps": 2,
45
+ "image_mean": [
46
+ 0.5,
47
+ 0.5,
48
+ 0.5
49
+ ],
50
+ "image_std": [
51
+ 0.5,
52
+ 0.5,
53
+ 0.5
54
+ ],
55
+ "max_frames": 2048,
56
+ "max_pixels": 61440000,
57
+ "merge_size": 2,
58
+ "min_frames": 2,
59
+ "min_pixels": 16384,
60
+ "patch_size": 16,
61
+ "resample": 1,
62
+ "rescale_factor": 0.00392156862745098,
63
+ "return_metadata": false,
64
+ "size": {
65
+ "longest_edge": 61440000,
66
+ "shortest_edge": 16384
67
+ },
68
+ "spatial_patch_size": 1,
69
+ "temporal_patch_size": 1,
70
+ "timestamp_token_per_frame": 6,
71
+ "timestamp_token_reserve": 1000,
72
+ "video_max_image_size": 1024,
73
+ "video_processor_type": "HYV4VLVideoProcessor"
74
+ }
75
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|hy_start:opensource|>",
4
+ "clean_up_tokenization_spaces": false,
5
+ "eos_token": "<|hy_end:opensource|>",
6
+ "image_end_token": "<|hy_image▁end:opensource|>",
7
+ "image_newline_token": "<|hy_image▁newline:opensource|>",
8
+ "image_start_token": "<|hy_image▁start:opensource|>",
9
+ "image_token": "<|hy_image▁pad:opensource|>",
10
+ "is_local": true,
11
+ "local_files_only": false,
12
+ "model_max_length": 1000000000000000019884624838656,
13
+ "model_specific_special_tokens": {
14
+ "image_end_token": "<|hy_image▁end:opensource|>",
15
+ "image_newline_token": "<|hy_image▁newline:opensource|>",
16
+ "image_start_token": "<|hy_image▁start:opensource|>",
17
+ "image_token": "<|hy_image▁pad:opensource|>",
18
+ "video_end_token": "<|hy_video▁end:opensource|>",
19
+ "video_start_token": "<|hy_video▁start:opensource|>",
20
+ "video_token": "<|hy_video▁pad:opensource|>"
21
+ },
22
+ "pad_token": "<|hy_pad:opensource|>",
23
+ "processor_class": "HYV4FlashProcessor",
24
+ "tokenizer_class": "TokenizersBackend",
25
+ "video_end_token": "<|hy_video▁end:opensource|>",
26
+ "video_start_token": "<|hy_video▁start:opensource|>",
27
+ "video_token": "<|hy_video▁pad:opensource|>"
28
+ }