jucee commited on
Commit
bf41ffd
·
verified ·
1 Parent(s): b55d726

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. LICENSE +245 -0
  2. config.json +494 -0
  3. model-00148-of-00148.safetensors +3 -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.
config.json ADDED
@@ -0,0 +1,494 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
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
+ }
model-00148-of-00148.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e65e4e71345913784004a081ea3831b34d666e46bb6ba36dc3c6d3798b76ac3
3
+ size 1691383434