Publish calibrated Hy4-flash target checkpoint and validation
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributes+1
- LICENSEAdded+245
- NOTICEAdded+6
- README.mdAdded+65
- backbone-0000.safetensorsAdded+3
- backbone-0001.safetensorsAdded+3
- backbone-0002.safetensorsAdded+3
- calibration.jsonAdded+297
- chat_template.jinjaAdded+355
- config.jsonAdded+1714
- engram/engram-12.q4_0Added+3
- engram/engram-2.q4_0Added+3
- engram/engram-22.q4_0Added+3
- engram/engram-32.q4_0Added+3
- generation_config.jsonAdded+10
- layer-00-0000.safetensorsAdded+3
- layer-01-0000.safetensorsAdded+3
- layer-01-0001.safetensorsAdded+3
- layer-01-0002.safetensorsAdded+3
- layer-01-0003.safetensorsAdded+3
- layer-01-0004.safetensorsAdded+3
- layer-01-0005.safetensorsAdded+3
- layer-01-0006.safetensorsAdded+3
- layer-01-0007.safetensorsAdded+3
- layer-01-0008.safetensorsAdded+3
- layer-01-0009.safetensorsAdded+3
- layer-01-0010.safetensorsAdded+3
- layer-01-0011.safetensorsAdded+3
- layer-01-0012.safetensorsAdded+3
- layer-01-0013.safetensorsAdded+3
- layer-01-0014.safetensorsAdded+3
- layer-01-0015.safetensorsAdded+3
- layer-02-0000.safetensorsAdded+3
- layer-02-0001.safetensorsAdded+3
- layer-02-0002.safetensorsAdded+3
- layer-02-0003.safetensorsAdded+3
- layer-02-0004.safetensorsAdded+3
- layer-02-0005.safetensorsAdded+3
- layer-02-0006.safetensorsAdded+3
- layer-02-0007.safetensorsAdded+3
- layer-02-0008.safetensorsAdded+3
- layer-02-0009.safetensorsAdded+3
- layer-02-0010.safetensorsAdded+3
- layer-02-0011.safetensorsAdded+3
- layer-02-0012.safetensorsAdded+3
- layer-02-0013.safetensorsAdded+3
- layer-02-0014.safetensorsAdded+3
- layer-02-0015.safetensorsAdded+3
- layer-03-0000.safetensorsAdded+3
- layer-03-0001.safetensorsAdded+3
33 unmodified lines34353633 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text*.q4_0 filter=lfs diff=lfs merge=lfs -text33 unmodified lines3435363733 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text*.q4_0 filter=lfs diff=lfs merge=lfs -textmodel.safetensors.index.json filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245 Tencent Hy License, Version 1.0
This License is derived from the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0), with modifications, mainly the additional commercial terms for large Model-as-a-Service ("MaaS") businesses in Section 10. This License is not the Apache License, Version 2.0, and is not endorsed by or affiliated with the Apache Software Foundation.
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 10 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). For the avoidance of doubt, the Work includes the model weights, parameters, configuration files, inference and training code, and documentation made available by Licensor under this License.
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. For the avoidance of doubt, Derivative Works include any fine-tuned, quantized, distilled, merged, pruned, or otherwise modified versions of the model weights.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. Notwithstanding the foregoing, any license terms You provide for the Work or any Derivative Works must not remove, limit, or conflict with Section 10, and Section 10 shall continue to apply to every recipient of the Work or any Derivative Works.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
10. Additional Commercial Terms.
10.1 MaaS. "MaaS" means giving third parties remote access to model inference or fine-tuning (e.g., via API), allowing them to submit inputs or specify parameters or training data. This excludes (i) end-user products with model capabilities confined to specific features or workflows, without general-purpose model access, or (ii) merely relaying requests to an independently operated third-party model service.
10.2 Separate License Required. Notwithstanding Sections 2 and 3, and except as provided in Section 10.3, if You operate a MaaS business, You must obtain a separate written license to use the Work or any Derivative Works from Licensor (including by email), in either of the following cases:
(a) if Your aggregate worldwide gross revenue exceeds US$50 million (or the equivalent in other currencies) in any consecutive 12-month period, whether or not such revenue is derived from the Work or any Derivative Works, before using (or continuing to use) the Work or any Derivative Works; or
(b) before using the Work or any Derivative Works in or for any product or service provided by You that has more than 100 million monthly active users in any calendar month.
10.3 Internal Use. Section 10.2 does not apply to Your use of the Work or any Derivative Works solely for internal purposes, provided that neither the Work, any Derivative Works, nor their outputs are made available to third parties.
10.4 Contact. For licensing requests or questions, please contact hy_partners@tencent.com.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Tencent Hy License to your work.
To apply this License to a Derivative Work, attach the following notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!)
Copyright [yyyy] [name of copyright owner]
Licensed under the Tencent Hy License, Version 1.0 (the "License"), which is based on the Apache License, Version 2.0, with additional commercial terms. You may not use this file except in compliance with the License. You may obtain a copy of the License in the LICENSE file distributed with this work.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.123456Tencent Hy4-flash
Modified by voodooquant from Tencent Hy4-flash. See NOTICE and LICENSE.The layer shards carry NeUQI INT4 language projections and experts. The vision shard carries PTQR INT8 projections. The Engram files contain new Q4_0 tables with 75 rows per page.The configuration and weight index describe the derivative layout.The original distribution's Tencent Hy License, Version 1.0, is in LICENSE.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465---base_model: tencent/Hy4-flashlibrary_name: vllmlicense: otherlicense_name: tencent-hy-licenselicense_link: LICENSEpipeline_tag: image-text-to-textinference: falsetags:- hy4-flash- moe- vision-language-model- speculative-decoding- int4- w4a8- int8- neuqi- engram- amd- rocm---
# Hy4-flash NeUQI INT4 W4A8 GS128
This is Tencent's Hy4-flash vision-language model packaged for four 32 GiB AMD Instinct MI100 GPUs. The language backbone uses training-free, activation-calibrated INT4 weights. The target includes the PTQR INT8 vision encoder and all four packed INT4 Engram tables. Speculative decoding uses a separate DFly2 checkpoint. [Original model](https://huggingface.co/tencent/Hy4-flash) · [Matching DFly2 draft](https://huggingface.co/voodooquant/Hy4-flash-DFly2-PTQR-INT8-W8A8-GS128)
## Model architecture
Tencent reports 155.5B backbone parameters, 63.5B Engram parameters, a 0.43B vision encoder and a 0.85B drafter. The backbone has one dense feed-forward layer followed by 41 MoE layers. Each routed layer selects 16 of 512 experts. Sliding-window and sparse latent attention share a 512-channel latent cache and 64 rotary channels. IndexPool selects four-token groups in the sparse layers. [Tencent model card](https://huggingface.co/tencent/Hy4-flash)
## Quantization details
| Surface | Checkpoint and inference ||---|---|| Routed experts and calibrated language projections | Packed unsigned INT4 with a separate FP16 scale and floating zero per 128 input features. The deployed kernel quantizes activations to signed INT8. || Language calibration | Frozen layer-by-layer forward passes on 64 real C4 and Evol-CodeAlpaca excerpts, totaling 48,521 tokens. The fit uses the measured activation second moments, with separate statistics for routed experts. Five of the 20,992 layer/expert pairs received no calibration tokens and used their layer’s pooled statistics. || Vision | PTQR INT8 linear projections with FP16 scales per 128 input features. The image processor and tokenizer come from the original release. || Engram | Four Q4_0 files totaling 33.57 GiB. A 54-byte row stores 96 features. The default storage path reads the requested n-grams from the model filesystem. || Runtime | The target experts, dense language weights, vision encoder and drafter reside on the GPUs. Grouped INT8 handles MLA queries and KV. FP16 handles probability/value products and floating reductions can accumulate in FP32. |
The language conversion searches the group step and floating offset against a diagonal activation-weighted error objective. The vision encoder and separate drafter use PTQR with straight-through updates to weights and scales. Weight acquisition, calibration, fitting and serialization use GPU tensors and AMD Infinity Storage on a physical NVMe workspace. [NeUQI paper](https://arxiv.org/abs/2505.17595) · [Conversion and storage details](https://github.com/curvedinf/int8-vllm/blob/main/docs/recipes/hy4-flash.md#building-the-checkpoints)
## Validation
The exported vision encoder reached cosine similarity **0.99954** and normalized mean squared error **0.000948** against the reference features on 12 held-out COCO images. Across 4,096 sampled rows from each Engram table, all packed bytes matched an independent conversion. Mean cosine similarity per table was 0.99632–0.99634.
A separate GPU readback compared 48 rows from each of three released matrices against the original BF16 weights. Cosine similarity was 0.99327 for layer 0’s query projection, 0.99580 for layer 1 expert 68’s down projection and 0.99568 for layer 41 expert 329’s gate/up projection.
The native TP4 server passed 52/52 chat checks and all 10 strict-format checks. It correctly named red and blue images, cats in a COCO image and the color in a four-frame video, and produced the expected tool name and arguments. Greedy recall repeated exactly at 16,530 and 32,995 prompt tokens. On 64 saved source-calibration prefixes, the native export agreed with the original target’s argmax at 50 positions. KL over the original top 20 tokens and the remaining probability mass had median 0.143, mean 0.534 and p95 2.684. These prefixes were used for activation calibration.
On a separate zero-shot MMLU check, the native pair answered 102 of 114 questions correctly. Each of the 57 subjects contributed two test questions, and all 114 replies contained a valid choice. The evaluator requested a single letter with thinking disabled and greedy sampling. It took the first 114 records in the published round-robin order. [Evaluation questions](https://github.com/Wallawalla47/Infernix/blob/0155ec1b94498d18dc38a5251a23accda9fbfa54/eval/corpora/iqs-1/tasks/mmlu-500.jsonl)
## Serving
Use the MI100 vLLM and AITER forks. In the vLLM checkout with the serving environment installed, run the following commands. The native launcher reads the checkpoints under `$HOME/models` and serves `hy4-flash` on port 8020. [Native serving recipe](https://github.com/curvedinf/int8-vllm/blob/main/docs/recipes/hy4-flash.md) · [AITER fork](https://github.com/curvedinf/int8-aiter)
```bashhf download voodooquant/Hy4-flash-NeUQI-INT4-W4A8-GS128 --local-dir "$HOME/models/Hy4-flash-NeUQI-W4A8"hf download voodooquant/Hy4-flash-DFly2-PTQR-INT8-W8A8-GS128 --local-dir "$HOME/models/Hy4-flash-DFly2-PTQR-INT8"scripts/serve_recipe_hy4.sh start```
## License
Tencent Hy License, Version 1.0 applies to the weights. The checkpoint includes the original license and a notice identifying voodooquant's modifications. [License](LICENSE) · [Notice](NOTICE)123version https://git-lfs.github.com/spec/v1oid sha256:bf39f76dd5665a7ba3188149f9eea10c66c3d1f69e3e50e3991e05272824daccsize 742395904123version https://git-lfs.github.com/spec/v1oid sha256:eda603bac7e78732cc8d5dc29172a26077be899e14227b934873b45194c198d4size 742395904123version https://git-lfs.github.com/spec/v1oid sha256:caae5b39ba5d5e9ad8501e2b4d6aceef1e0adbbb2005743b794361ce78cf2e69size 206868123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297{ "samples": 64, "tokens": 48521, "layers": [ { "layer": 0, "unobserved_experts": {} }, { "layer": 1, "unobserved_experts": { "model.layers.1.mlp.experts.gate_up_proj": 0, "model.layers.1.mlp.experts.down_proj": 0 } }, { "layer": 2, "unobserved_experts": { "model.layers.2.mlp.experts.gate_up_proj": 0, "model.layers.2.mlp.experts.down_proj": 0 } }, { "layer": 3, "unobserved_experts": { "model.layers.3.mlp.experts.gate_up_proj": 0, "model.layers.3.mlp.experts.down_proj": 0 } }, { "layer": 4, "unobserved_experts": { "model.layers.4.mlp.experts.gate_up_proj": 0, "model.layers.4.mlp.experts.down_proj": 0 } }, { "layer": 5, "unobserved_experts": { "model.layers.5.mlp.experts.gate_up_proj": 0, "model.layers.5.mlp.experts.down_proj": 0 } }, { "layer": 6, "unobserved_experts": { "model.layers.6.mlp.experts.gate_up_proj": 0, "model.layers.6.mlp.experts.down_proj": 0 } }, { "layer": 7, "unobserved_experts": { "model.layers.7.mlp.experts.gate_up_proj": 0, "model.layers.7.mlp.experts.down_proj": 0 } }, { "layer": 8, "unobserved_experts": { "model.layers.8.mlp.experts.gate_up_proj": 0, "model.layers.8.mlp.experts.down_proj": 0 } }, { "layer": 9, "unobserved_experts": { "model.layers.9.mlp.experts.gate_up_proj": 1, "model.layers.9.mlp.experts.down_proj": 1 } }, { "layer": 10, "unobserved_experts": { "model.layers.10.mlp.experts.gate_up_proj": 0, "model.layers.10.mlp.experts.down_proj": 0 } }, { "layer": 11, "unobserved_experts": { "model.layers.11.mlp.experts.gate_up_proj": 0, "model.layers.11.mlp.experts.down_proj": 0 } }, { "layer": 12, "unobserved_experts": { "model.layers.12.mlp.experts.gate_up_proj": 0, "model.layers.12.mlp.experts.down_proj": 0 } }, { "layer": 13, "unobserved_experts": { "model.layers.13.mlp.experts.gate_up_proj": 0, "model.layers.13.mlp.experts.down_proj": 0 } }, { "layer": 14, "unobserved_experts": { "model.layers.14.mlp.experts.gate_up_proj": 0, "model.layers.14.mlp.experts.down_proj": 0 } }, { "layer": 15, "unobserved_experts": { "model.layers.15.mlp.experts.gate_up_proj": 0, "model.layers.15.mlp.experts.down_proj": 0 } }, { "layer": 16, "unobserved_experts": { "model.layers.16.mlp.experts.gate_up_proj": 0, "model.layers.16.mlp.experts.down_proj": 0 } }, { "layer": 17, "unobserved_experts": { "model.layers.17.mlp.experts.gate_up_proj": 0, "model.layers.17.mlp.experts.down_proj": 0 } }, { "layer": 18, "unobserved_experts": { "model.layers.18.mlp.experts.gate_up_proj": 0, "model.layers.18.mlp.experts.down_proj": 0 } }, { "layer": 19, "unobserved_experts": { "model.layers.19.mlp.experts.gate_up_proj": 0, "model.layers.19.mlp.experts.down_proj": 0 } }, { "layer": 20, "unobserved_experts": { "model.layers.20.mlp.experts.gate_up_proj": 0, "model.layers.20.mlp.experts.down_proj": 0 } }, { "layer": 21, "unobserved_experts": { "model.layers.21.mlp.experts.gate_up_proj": 0, "model.layers.21.mlp.experts.down_proj": 0 } }, { "layer": 22, "unobserved_experts": { "model.layers.22.mlp.experts.gate_up_proj": 0, "model.layers.22.mlp.experts.down_proj": 0 } }, { "layer": 23, "unobserved_experts": { "model.layers.23.mlp.experts.gate_up_proj": 0, "model.layers.23.mlp.experts.down_proj": 0 } }, { "layer": 24, "unobserved_experts": { "model.layers.24.mlp.experts.gate_up_proj": 0, "model.layers.24.mlp.experts.down_proj": 0 } }, { "layer": 25, "unobserved_experts": { "model.layers.25.mlp.experts.gate_up_proj": 0, "model.layers.25.mlp.experts.down_proj": 0 } }, { "layer": 26, "unobserved_experts": { "model.layers.26.mlp.experts.gate_up_proj": 1, "model.layers.26.mlp.experts.down_proj": 1 } }, { "layer": 27, "unobserved_experts": { "model.layers.27.mlp.experts.gate_up_proj": 0, "model.layers.27.mlp.experts.down_proj": 0 } }, { "layer": 28, "unobserved_experts": { "model.layers.28.mlp.experts.gate_up_proj": 0, "model.layers.28.mlp.experts.down_proj": 0 } }, { "layer": 29, "unobserved_experts": { "model.layers.29.mlp.experts.gate_up_proj": 0, "model.layers.29.mlp.experts.down_proj": 0 } }, { "layer": 30, "unobserved_experts": { "model.layers.30.mlp.experts.gate_up_proj": 1, "model.layers.30.mlp.experts.down_proj": 1 } }, { "layer": 31, "unobserved_experts": { "model.layers.31.mlp.experts.gate_up_proj": 0, "model.layers.31.mlp.experts.down_proj": 0 } }, { "layer": 32, "unobserved_experts": { "model.layers.32.mlp.experts.gate_up_proj": 0, "model.layers.32.mlp.experts.down_proj": 0 } }, { "layer": 33, "unobserved_experts": { "model.layers.33.mlp.experts.gate_up_proj": 0, "model.layers.33.mlp.experts.down_proj": 0 } }, { "layer": 34, "unobserved_experts": { "model.layers.34.mlp.experts.gate_up_proj": 0, "model.layers.34.mlp.experts.down_proj": 0 } }, { "layer": 35, "unobserved_experts": { "model.layers.35.mlp.experts.gate_up_proj": 0, "model.layers.35.mlp.experts.down_proj": 0 } }, { "layer": 36, "unobserved_experts": { "model.layers.36.mlp.experts.gate_up_proj": 0, "model.layers.36.mlp.experts.down_proj": 0 } }, { "layer": 37, "unobserved_experts": { "model.layers.37.mlp.experts.gate_up_proj": 0, "model.layers.37.mlp.experts.down_proj": 0 } }, { "layer": 38, "unobserved_experts": { "model.layers.38.mlp.experts.gate_up_proj": 0, "model.layers.38.mlp.experts.down_proj": 0 } }, { "layer": 39, "unobserved_experts": { "model.layers.39.mlp.experts.gate_up_proj": 0, "model.layers.39.mlp.experts.down_proj": 0 } }, { "layer": 40, "unobserved_experts": { "model.layers.40.mlp.experts.gate_up_proj": 2, "model.layers.40.mlp.experts.down_proj": 2 } }, { "layer": 41, "unobserved_experts": { "model.layers.41.mlp.experts.gate_up_proj": 0, "model.layers.41.mlp.experts.down_proj": 0 } } ]}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355{#- ----------‑‑‑ special token variables ‑‑‑---------- -#}{%- set HYTK = ':opensource' %}{%- set hy_start_token = '<|hy_start{}|>'.format(HYTK) %}{%- set hy_middle_token = '<|hy_middle{}|>'.format(HYTK) %}{%- set hy_end_token = '<|hy_end{}|>'.format(HYTK) %}{%- set image_start_token = '<|hy_image▁start{}|>'.format(HYTK) %}{%- set image_pad_token = '<|hy_image▁pad{}|>'.format(HYTK) %}{%- set image_end_token = '<|hy_image▁end{}|>'.format(HYTK) %}{%- set video_start_token = '<|hy_video▁start{}|>'.format(HYTK) %}{%- set video_pad_token = '<|hy_video▁pad{}|>'.format(HYTK) %}{%- set video_end_token = '<|hy_video▁end{}|>'.format(HYTK) %}{%- set think_begin_token = '<think{}>'.format(HYTK) %}{%- set think_end_token = '</think{}>'.format(HYTK) %}{%- set toolcalls_begin_token = '<tool_calls{}>'.format(HYTK) %}{%- set toolcalls_end_token = '</tool_calls{}>'.format(HYTK) %}{%- set toolcall_begin_token = '<tool_call{}>'.format(HYTK) %}{%- set toolcall_end_token = '</tool_call{}>'.format(HYTK) %}{%- set argkey_begin_token = '<arg_key{}>'.format(HYTK) %}{%- set argkey_end_token = '</arg_key{}>'.format(HYTK) %}{%- set argvalue_begin_token = '<arg_value{}>'.format(HYTK) %}{%- set argvalue_end_token = '</arg_value{}>'.format(HYTK) %}{%- set toolresponse_begin_token = '<tool_response{}>'.format(HYTK) %}{%- set toolresponse_end_token = '</tool_response{}>'.format(HYTK) %}{%- set reasoning_mode_token = '<|reasoning_mode{}|>'.format(HYTK) %}
{#- ----------‑‑‑ hyperparameters variables ‑‑‑---------- -#}{%- if not add_generation_prompt is defined %} {%- set add_generation_prompt = false %}{%- endif %}{%- if not preserved_thinking is defined %} {%- if not tools %} {%- set preserved_thinking = false %} {%- else %} {%- set preserved_thinking = true %} {%- endif %}{%- endif %}
{%- if not reasoning_effort is defined %} {%- set reasoning_effort = 'high' %}{%- elif reasoning_effort not in ['no_think', 'high'] %} {%- if reasoning_effort is none %} {{- raise_exception('reasoning_effort error : None, should be no_think/high') }} {%- else %} {{- raise_exception('reasoning_effort error : ' + reasoning_effort + ', should be no_think/high') }} {%- endif %}{%- endif %}
{%- if fallback_strategy is defined and fallback_strategy == 'reasoning_toolcall_retry' %} {%- set reasoning_effort = 'high' %} {%- set add_generation_prompt = false %}{%- endif %}{%- if not raw_last_assistant is defined %} {%- set raw_last_assistant = false %}{%- endif %}{%- if not add_vision_id is defined %} {%- set add_vision_id = false %}{%- endif %}{%- set image_count = namespace(value=0) %}{%- set video_count = namespace(value=0) %}
{%- macro tool_to_json(tool) -%} {%- set ns_tool = namespace(first=true) -%} {{- '{' -}} {%- for k, v in tool.items() -%} {%- if k != 'defer_loading' and k != 'strict' -%} {%- if not ns_tool.first -%}{{- ', ' -}}{%- endif -%} {%- set ns_tool.first = false -%} {{- '"' ~ k ~ '": ' ~ (v | tojson(ensure_ascii=False)) -}} {%- endif -%} {%- endfor -%} {{- '}' -}}{%- endmacro -%}
{%- macro render_content(content, do_vision_count=true, is_system_content=false) -%} {%- if content is string -%} {{- content -}} {%- elif content is iterable and content is not mapping -%} {%- for item in content -%} {%- if item is mapping and item.type == 'text' -%} {{- item.text -}} {%- elif item is mapping and ('image' in item or 'image_url' in item or item.type in ['image', 'image_url']) -%} {%- if is_system_content -%} {{- raise_exception('System message cannot contain images.') -}} {%- endif -%} {%- if do_vision_count -%} {%- set image_count.value = image_count.value + 1 -%} {%- endif -%} {%- if add_vision_id -%} {{- 'Picture ' ~ image_count.value ~ ': ' -}} {%- endif -%} {{- image_start_token ~ image_pad_token ~ image_end_token -}} {%- elif item is mapping and ('video' in item or 'video_url' in item or item.type in ['video', 'video_url']) -%} {%- if is_system_content -%} {{- raise_exception('System message cannot contain videos.') -}} {%- endif -%} {%- if do_vision_count -%} {%- set video_count.value = video_count.value + 1 -%} {%- endif -%} {%- if add_vision_id -%} {{- 'Video ' ~ video_count.value ~ ': ' -}} {%- endif -%} {{- video_start_token ~ video_pad_token ~ video_end_token -}} {%- elif item is string -%} {{- item -}} {%- else -%} {{- item | string -}} {%- endif -%} {%- endfor -%} {%- elif content is none -%} {{- '' -}} {%- else -%} {{- content | string -}} {%- endif -%}{%- endmacro -%}
{%- macro render_tools_prompt() -%} {{- '# Tools\n\nYou may call one or more functions to assist with the user query.' -}} {{- '\n\nYou are provided with function signatures within <tools></tools> XML tags:' -}} {{- '\n<tools>\n' -}} {%- set tool_ns = namespace(first=true) -%} {%- for tool in tools -%} {%- set t = tool['function'] if tool is mapping and 'function' in tool else tool -%} {%- if t.defer_loading is not defined or not t.defer_loading -%} {%- if not tool_ns.first -%}{{- '\n' -}}{%- endif -%} {%- set tool_ns.first = false -%} {{- tool_to_json(t) -}} {%- endif -%} {%- endfor -%} {{- '\n</tools>\n\n' -}} {{- 'For function call returns, you should first print ' ~ toolcalls_begin_token -}} {{- '\nFor each function call, you should return object like:\n' -}} {{- toolcall_begin_token ~ '{function-name}' -}} {{- argkey_begin_token ~ '{arg-key-1}' ~ argkey_end_token -}} {{- argvalue_begin_token ~ '{arg-value-1}' ~ argvalue_end_token -}} {{- argkey_begin_token ~ '{arg-key-2}' ~ argkey_end_token -}} {{- argvalue_begin_token ~ '{arg-value-2}' ~ argvalue_end_token -}} {{- '...' -}} {{- toolcall_end_token -}} {{- '\nAt the end of function call returns, you should print ' ~ toolcalls_end_token -}}{%- endmacro -%}
{#- adjacent tool_search_output parts share one <tools> block, so a tool search result has the same shape as the tools prompt -#}{%- macro render_tool_response(message) -%} {%- set content = message['content'] -%} {{- toolresponse_begin_token -}} {%- if content is string -%} {{- content -}} {%- elif content is iterable and content is not mapping -%} {%- set tools_ns = namespace(open=false) -%} {%- for item in content -%} {%- set is_search_output = item is mapping and item.type is defined and item.type == 'tool_search_output' -%} {%- if is_search_output and not tools_ns.open -%} {{- '<tools>\n' -}} {%- set tools_ns.open = true -%} {%- elif not is_search_output and tools_ns.open -%} {{- '</tools>' -}} {%- set tools_ns.open = false -%} {%- endif -%} {%- if is_search_output -%} {%- if item.tools is defined and item.tools is iterable -%} {%- for tool in item.tools -%} {%- set t = tool['function'] if tool is mapping and 'function' in tool else tool -%} {{- tool_to_json(t) ~ '\n' -}} {%- endfor -%} {%- endif -%} {%- elif item is mapping and item.output is defined -%} {{- render_content(item.output) -}} {%- else -%} {{- render_content([item]) -}} {%- endif -%} {%- endfor -%} {%- if tools_ns.open -%} {{- '</tools>' -}} {%- endif -%} {%- else -%} {{- render_content(content) -}} {%- endif -%} {{- toolresponse_end_token -}}{%- endmacro -%}
{#- 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) -#}{%- set merged_ns = namespace(messages=[]) %}{%- macro merge_tool_responses(messages) -%} {%- set merge_ns = namespace(result=[], cluster=[]) -%} {%- for message in messages -%} {%- if message['role'] == 'tool' -%} {%- set merge_ns.cluster = merge_ns.cluster + [message] -%} {%- else -%} {%- if merge_ns.cluster -%} {%- set merge_ns.result = merge_ns.result + [{'role': 'tool', 'content': merge_ns.cluster}] -%} {%- set merge_ns.cluster = [] -%} {%- endif -%} {%- set merge_ns.result = merge_ns.result + [message] -%} {%- endif -%} {%- endfor -%} {%- if merge_ns.cluster -%} {%- set merge_ns.result = merge_ns.result + [{'role': 'tool', 'content': merge_ns.cluster}] -%} {%- endif -%} {%- set merged_ns.messages = merge_ns.result -%}{%- endmacro -%}
{#- 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 -#}{%- macro render_tool_responses(tool_messages, tool_call_ids) -%} {%- set order_ns = namespace(ordered=[], matched=true) -%} {%- if tool_call_ids and tool_call_ids | length == tool_messages | length -%} {%- for tool_call_id in tool_call_ids -%} {%- set hit_ns = namespace(count=0, message=none) -%} {%- for tool_message in tool_messages -%} {%- set message_id = tool_message['tool_call_id'] if tool_message['tool_call_id'] is defined else tool_message['id'] -%} {%- if message_id is defined and message_id == tool_call_id -%} {%- set hit_ns.count = hit_ns.count + 1 -%} {%- set hit_ns.message = tool_message -%} {%- endif -%} {%- endfor -%} {%- if hit_ns.count == 1 -%} {%- set order_ns.ordered = order_ns.ordered + [hit_ns.message] -%} {%- else -%} {%- set order_ns.matched = false -%} {%- endif -%} {%- endfor -%} {%- else -%} {%- set order_ns.matched = false -%} {%- endif -%} {%- for tool_message in (order_ns.ordered if order_ns.matched else tool_messages) -%} {{- render_tool_response(tool_message) -}} {%- endfor -%}{%- endmacro -%}
{%- set _ = merge_tool_responses(messages) %}{%- set normed_messages = merged_ns.messages %}
{%- set ns = namespace(last_user_index=-1, has_leading_system=false) %}{%- if normed_messages and normed_messages[0].role == 'system' %} {%- set ns.has_leading_system = true %}{%- endif %}{%- for message in normed_messages %} {%- if message['role'] == 'user' %} {%- set ns.last_user_index = loop.index0 %} {%- endif %}{%- endfor %}
{#- no leading system: synthesize one for tools and/or reasoning_mode -#}{%- if not ns.has_leading_system %} {{- hy_start_token ~ 'system' ~ hy_middle_token -}} {%- if tools %} {{- render_tools_prompt() -}} {%- endif %} {{- reasoning_mode_token ~ 'reasoning_effort:' ~ reasoning_effort -}} {{- hy_end_token -}}{%- endif %}
{%- set last_ns = namespace(last_is_assistant=false) %}{%- set prev_ns = namespace(tool_call_ids=[]) %}{%- for message in normed_messages %} {%- if message['role'] == 'system' %} {{- hy_start_token ~ 'system' ~ hy_middle_token -}} {#- tools / reasoning_mode only attach to the leading system (messages[0]) -#} {%- if loop.first %} {%- if tools %} {{- render_tools_prompt() -}} {%- endif %} {%- set content = render_content(message['content']) -%} {%- if tools and content -%} {{- '\n\n' -}} {%- endif -%} {{- content -}} {{- reasoning_mode_token ~ 'reasoning_effort:' ~ reasoning_effort -}} {%- else %} {{- render_content(message['content']) -}} {%- endif %} {{- hy_end_token -}} {%- elif message['role'] == 'user' %} {{- hy_start_token ~ 'user' ~ hy_middle_token -}} {{- render_content(message['content']) -}} {{- hy_end_token -}} {%- elif message['role'] == 'assistant' %} {%- set content_body = render_content(message['content']) -%} {#- 'reasoning' takes precedence, fall back to 'reasoning_content' when it is empty -#} {%- set reasoning_text = '' %} {%- if message['reasoning'] is defined and message['reasoning'] is string and message['reasoning'] %} {%- set reasoning_text = message['reasoning'] %} {%- elif message['reasoning_content'] is defined and message['reasoning_content'] is string and message['reasoning_content'] %} {%- set reasoning_text = message['reasoning_content'] %} {%- endif %} {#- no_think overrides preserved_thinking: history is always emitted with empty think tags -#} {%- if reasoning_effort != 'no_think' and (preserved_thinking or loop.index0 > ns.last_user_index) and reasoning_text %} {%- set content = think_begin_token ~ reasoning_text ~ think_end_token ~ content_body %} {%- else %} {%- set content = think_begin_token ~ think_end_token ~ content_body %} {%- endif %} {{- hy_start_token ~ 'assistant' ~ hy_middle_token -}} {%- if message['tool_calls'] is defined and message['tool_calls'] %} {#- remember the tool_call ids of this turn to order the following tool responses; an incomplete id set means "do not reorder" -#} {%- set ids_ns = namespace(ids=[], complete=true) %} {%- for tool in message['tool_calls'] %} {%- set tool_call_id = tool['id'] if tool['id'] is defined and tool['id'] else tool['tool_call_id'] %} {%- if tool_call_id is defined and tool_call_id %} {%- set ids_ns.ids = ids_ns.ids + [tool_call_id] %} {%- else %} {%- set ids_ns.complete = false %} {%- endif %} {%- endfor %} {%- set prev_ns.tool_call_ids = ids_ns.ids if ids_ns.complete else [] %} {{- content -}} {{- toolcalls_begin_token -}} {%- for tool in message['tool_calls'] -%} {%- set func = tool['function'] if tool is mapping and 'function' in tool else tool -%} {%- set arguments = func['arguments'] -%} {{- toolcall_begin_token ~ func['name'] -}} {%- for key, value in arguments.items() -%} {{- argkey_begin_token ~ key ~ argkey_end_token -}} {%- if value is not string -%} {%- set value = value | tojson(ensure_ascii=False) -%} {%- endif -%} {{- argvalue_begin_token ~ value ~ argvalue_end_token -}} {%- endfor -%} {{- toolcall_end_token -}} {%- endfor -%} {{- toolcalls_end_token -}} {%- else %} {%- if loop.last and raw_last_assistant %} {{- content_body -}} {%- else %} {{- content -}} {%- endif %} {%- endif %} {#- continuation / prefill: last assistant is still open, do not close with hy_end -#} {%- if not (loop.last and raw_last_assistant) and not (loop.last and fallback_strategy is defined and fallback_strategy == 'reasoning_toolcall_retry') %} {{- hy_end_token -}} {%- endif %} {%- elif message['role'] == 'tool' %} {{- hy_start_token ~ 'tool' ~ hy_middle_token -}} {{- render_tool_responses(message['content'], prev_ns.tool_call_ids) -}} {{- hy_end_token -}} {%- else %} {{- hy_start_token ~ message['role'] ~ hy_middle_token -}} {{- render_content(message['content']) -}} {{- hy_end_token -}} {%- endif %} {%- if message['role'] != 'assistant' or not (message['tool_calls'] is defined and message['tool_calls']) %} {%- set prev_ns.tool_call_ids = [] %} {%- endif %} {%- if loop.last and message['role'] == 'assistant' %} {%- set last_ns.last_is_assistant = true %} {%- endif %}{%- endfor %}{%- if add_generation_prompt %} {%- if not last_ns.last_is_assistant %} {%- if reasoning_effort == 'no_think' %} {{- hy_start_token ~ 'assistant' ~ hy_middle_token ~ think_begin_token ~ think_end_token -}} {%- else %} {{- hy_start_token ~ 'assistant' ~ hy_middle_token ~ think_begin_token -}} {%- endif %} {%- endif %}{%- endif %}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714{ "architectures": [ "HYV4FlashForConditionalGeneration" ], "dtype": "float16", "image_end_token_id": 120119, "image_newline_token_id": 120121, "image_start_token_id": 120118, "image_token_id": 120120, "model_type": "hy_v4_flash", "processor_class": "HYV4FlashProcessor", "spatial_merge_size": 2, "text_config": { "architectures": [ "HYV4FlashForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bitwise_backward_align": true, "bos_token_id": 120000, "compressed_indexer_candidate_topk": 2048, "compressed_indexer_compress_ratio": 4, "compressed_indexer_group_topk": 512, "compressed_indexer_head_dim": 128, "compressed_indexer_key_pooling": "gated", "compressed_indexer_num_attention_heads": 16, "compressed_indexer_reuse_fine_indexer": false, "compressed_indexer_skip_fine_select": true, "compressed_indexer_stage2_query_block_size": 8192, "compressed_indexer_teacher_pooling_type": "max", "compressed_indexer_triton_pooling_min_groups": 1, "compressed_indexer_use_triton_pooling": true, "dsa_skip_attn_post_norm": false, "enable_ihc": true, "enable_lm_head_fp32": true, "engram_embed_random_seed": 1234, "engram_fp8_embedding": true, "engram_isolate_fffd_namespace": false, "engram_layer_head_vocab_sizes": { "12": [ [ 10312277, 10312283, 10312301, 10312343, 10312373, 10312397, 10312409, 10312453 ], [ 10312457, 10312483, 10312507, 10312513, 10312531, 10312543, 10312567, 10312571 ] ], "2": [ [ 10312007, 10312021, 10312039, 10312069, 10312091, 10312121, 10312123, 10312147 ], [ 10312177, 10312187, 10312207, 10312213, 10312229, 10312241, 10312249, 10312259 ] ], "22": [ [ 10312613, 10312619, 10312633, 10312657, 10312681, 10312699, 10312723, 10312747 ], [ 10312759, 10312789, 10312811, 10312823, 10312867, 10312873, 10312889, 10312903 ] ], "32": [ [ 10312909, 10312919, 10312927, 10312957, 10312979, 10313011, 10313021, 10313057 ], [ 10313063, 10313117, 10313123, 10313129, 10313161, 10313179, 10313189, 10313201 ] ] }, "engram_layer_ids": [ 2, 12, 22, 32 ], "engram_max_ngram_size": 3, "engram_n_embed_per_ngram": 768, "engram_n_head_per_ngram": 8, "engram_pad_id": 120002, "engram_seed": 0, "engram_tokenizer_name_or_path": null, "engram_vocab_map_path": null, "engram_vocab_size": [ 10312000, 10312000 ], "eos_token_id": 120025, "fast_op_fp32_linear_gemm": true, "first_k_dense_replace": 1, "full_nope": false, "gate_groups": 1, "gate_lora_op": "none", "gate_lora_rank": null, "gated_mla": true, "gating_type": "elementwise", "hc_eps": 1e-06, "hc_magnitude": 2.0, "hc_mult": 4, "head_dim": 64, "hidden_act": "silu", "hidden_size": 3072, "ihc_kernel_backend": "naive", "index_head_dim": 128, "index_n_heads": 16, "index_topk": 2048, "indexer_types": [ "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full", "full" ], "initializer_range": 0.006, "intermediate_size": 13824, "kv_lora_rank": 512, "layer_types": [ "deepseek_sparse_attention", "deepseek_sparse_attention", "sliding_attention", "sliding_attention", "sliding_attention", "deepseek_sparse_attention", "sliding_attention", "sliding_attention", "sliding_attention", "deepseek_sparse_attention", "sliding_attention", "sliding_attention", "sliding_attention", "deepseek_sparse_attention", "sliding_attention", "sliding_attention", "sliding_attention", "deepseek_sparse_attention", "sliding_attention", "sliding_attention", "sliding_attention", "deepseek_sparse_attention", "sliding_attention", "sliding_attention", "sliding_attention", "deepseek_sparse_attention", "sliding_attention", "sliding_attention", "sliding_attention", "deepseek_sparse_attention", "sliding_attention", "sliding_attention", "sliding_attention", "deepseek_sparse_attention", "sliding_attention", "sliding_attention", "sliding_attention", "deepseek_sparse_attention", "sliding_attention", "sliding_attention", "sliding_attention", "deepseek_sparse_attention" ], "learnable_sink": true, "learnable_sink_init": 0.0, "max_position_embeddings": 1048576, "mlp_layer_types": [ "dense", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse", "sparse" ], "model_type": "hy_v4_flash", "moe_aux_loss_coeff": 0.0, "moe_intermediate_size": 1536, "moe_router_enable_expert_bias": true, "moe_router_use_sigmoid": true, "n_group": 1, "n_routed_experts": 512, "n_shared_experts": 1, "norm_topk_prob": true, "num_attention_heads": 32, "num_experts_per_tok": 16, "num_hidden_layers": 42, "num_key_value_heads": 32, "num_nextn_predict_layers": 0, "o_groups": 1, "o_lora_op": "none", "o_lora_rank": null, "output_router_logits": false, "pad_token_id": 120002, "q_lora_rank": 1024, "qk_head_dim": 256, "qk_nope_head_dim": 192, "qk_norm": true, "qk_rope_head_dim": 64, "return_bos_score": true, "return_max_logit": true, "rms_norm_eps": 1e-05, "rope_parameters": { "sliding_attention": { "mrope_interleaved": true, "mrope_section": [ 12, 10, 10 ], "rope_theta": 10000, "rope_type": "default" }, "deepseek_sparse_attention": { "mrope_interleaved": true, "mrope_section": [ 12, 10, 10 ], "rope_theta": 10000000, "rope_type": "default" } }, "routed_expert_hidden_size": 1536, "routed_scaling_factor": 3.998, "sandwich_norm": true, "sliding_window": 512, "swa_num_attention_heads": 64, "swa_pattern": [ 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0 ], "swa_qk_head_dim": 256, "swa_qk_nope_head_dim": 192, "swa_qk_rope_head_dim": 64, "swa_v_head_dim": 256, "swiglu_limit": 10.0, "tie_word_embeddings": false, "topk_group": 1, "use_cache": true, "use_compressed_indexer": true, "use_dsa": true, "use_grouped_mm": false, "use_mla": true, "v_head_dim": 256, "vocab_size": 120832, "window_size": [ 511, 0 ], "dtype": "float16", "quantization_config": { "quant_method": "hy4_neuqi", "group_size": 128, "quantized_modules": { "model.layers.0.mlp.down_proj": 4, "model.layers.0.mlp.gate_up_proj": 4, "model.layers.0.self_attn.indexer.head_weight_projection": 4, "model.layers.0.self_attn.indexer.query_projection": 4, "model.layers.0.self_attn.indexer.token_key_projection": 4, "model.layers.0.self_attn.kv_a_proj_with_mqa": 4, "model.layers.0.self_attn.kv_b_proj": 4, "model.layers.0.self_attn.linear_gate": 4, "model.layers.0.self_attn.o_proj": 4, "model.layers.0.self_attn.q_a_proj": 4, "model.layers.0.self_attn.q_b_proj": 4, "model.layers.1.mlp.experts": 4, "model.layers.1.mlp.routed_expert_down_proj": 4, "model.layers.1.mlp.routed_expert_up_proj": 4, "model.layers.1.mlp.shared_experts.down_proj": 4, "model.layers.1.mlp.shared_experts.gate_up_proj": 4, "model.layers.1.self_attn.indexer.head_weight_projection": 4, "model.layers.1.self_attn.indexer.query_projection": 4, "model.layers.1.self_attn.indexer.token_key_projection": 4, "model.layers.1.self_attn.kv_a_proj_with_mqa": 4, "model.layers.1.self_attn.kv_b_proj": 4, "model.layers.1.self_attn.linear_gate": 4, "model.layers.1.self_attn.o_proj": 4, "model.layers.1.self_attn.q_a_proj": 4, "model.layers.1.self_attn.q_b_proj": 4, "model.layers.2.mlp.experts": 4, "model.layers.2.mlp.routed_expert_down_proj": 4, "model.layers.2.mlp.routed_expert_up_proj": 4, "model.layers.2.mlp.shared_experts.down_proj": 4, "model.layers.2.mlp.shared_experts.gate_up_proj": 4, "model.layers.2.self_attn.kv_a_proj_with_mqa": 4, "model.layers.2.self_attn.kv_b_proj": 4, "model.layers.2.self_attn.linear_gate": 4, "model.layers.2.self_attn.o_proj": 4, "model.layers.2.self_attn.q_a_proj": 4, "model.layers.2.self_attn.q_b_proj": 4, "model.layers.3.mlp.experts": 4, "model.layers.3.mlp.routed_expert_down_proj": 4, "model.layers.3.mlp.routed_expert_up_proj": 4, "model.layers.3.mlp.shared_experts.down_proj": 4, "model.layers.3.mlp.shared_experts.gate_up_proj": 4, "model.layers.3.self_attn.kv_a_proj_with_mqa": 4, "model.layers.3.self_attn.kv_b_proj": 4, "model.layers.3.self_attn.linear_gate": 4, "model.layers.3.self_attn.o_proj": 4, "model.layers.3.self_attn.q_a_proj": 4, "model.layers.3.self_attn.q_b_proj": 4, "model.layers.4.mlp.experts": 4, "model.layers.4.mlp.routed_expert_down_proj": 4, "model.layers.4.mlp.routed_expert_up_proj": 4, "model.layers.4.mlp.shared_experts.down_proj": 4, "model.layers.4.mlp.shared_experts.gate_up_proj": 4, "model.layers.4.self_attn.kv_a_proj_with_mqa": 4, "model.layers.4.self_attn.kv_b_proj": 4, "model.layers.4.self_attn.linear_gate": 4, "model.layers.4.self_attn.o_proj": 4, "model.layers.4.self_attn.q_a_proj": 4, "model.layers.4.self_attn.q_b_proj": 4, "model.layers.5.mlp.experts": 4, "model.layers.5.mlp.routed_expert_down_proj": 4, "model.layers.5.mlp.routed_expert_up_proj": 4, "model.layers.5.mlp.shared_experts.down_proj": 4, "model.layers.5.mlp.shared_experts.gate_up_proj": 4, "model.layers.5.self_attn.indexer.head_weight_projection": 4, "model.layers.5.self_attn.indexer.query_projection": 4, "model.layers.5.self_attn.indexer.token_key_projection": 4, "model.layers.5.self_attn.kv_a_proj_with_mqa": 4, "model.layers.5.self_attn.kv_b_proj": 4, "model.layers.5.self_attn.linear_gate": 4, "model.layers.5.self_attn.o_proj": 4, "model.layers.5.self_attn.q_a_proj": 4, "model.layers.5.self_attn.q_b_proj": 4, "model.layers.6.mlp.experts": 4, "model.layers.6.mlp.routed_expert_down_proj": 4, "model.layers.6.mlp.routed_expert_up_proj": 4, "model.layers.6.mlp.shared_experts.down_proj": 4, "model.layers.6.mlp.shared_experts.gate_up_proj": 4, "model.layers.6.self_attn.kv_a_proj_with_mqa": 4, "model.layers.6.self_attn.kv_b_proj": 4, "model.layers.6.self_attn.linear_gate": 4, "model.layers.6.self_attn.o_proj": 4, "model.layers.6.self_attn.q_a_proj": 4, "model.layers.6.self_attn.q_b_proj": 4, "model.layers.7.mlp.experts": 4, "model.layers.7.mlp.routed_expert_down_proj": 4, "model.layers.7.mlp.routed_expert_up_proj": 4, "model.layers.7.mlp.shared_experts.down_proj": 4, "model.layers.7.mlp.shared_experts.gate_up_proj": 4, "model.layers.7.self_attn.kv_a_proj_with_mqa": 4, "model.layers.7.self_attn.kv_b_proj": 4, "model.layers.7.self_attn.linear_gate": 4, "model.layers.7.self_attn.o_proj": 4, "model.layers.7.self_attn.q_a_proj": 4, "model.layers.7.self_attn.q_b_proj": 4, "model.layers.8.mlp.experts": 4, "model.layers.8.mlp.routed_expert_down_proj": 4, "model.layers.8.mlp.routed_expert_up_proj": 4, "model.layers.8.mlp.shared_experts.down_proj": 4, "model.layers.8.mlp.shared_experts.gate_up_proj": 4, "model.layers.8.self_attn.kv_a_proj_with_mqa": 4, "model.layers.8.self_attn.kv_b_proj": 4, "model.layers.8.self_attn.linear_gate": 4, "model.layers.8.self_attn.o_proj": 4, "model.layers.8.self_attn.q_a_proj": 4, "model.layers.8.self_attn.q_b_proj": 4, "model.layers.9.mlp.experts": 4, "model.layers.9.mlp.routed_expert_down_proj": 4, "model.layers.9.mlp.routed_expert_up_proj": 4, "model.layers.9.mlp.shared_experts.down_proj": 4, "model.layers.9.mlp.shared_experts.gate_up_proj": 4, "model.layers.9.self_attn.indexer.head_weight_projection": 4, "model.layers.9.self_attn.indexer.query_projection": 4, "model.layers.9.self_attn.indexer.token_key_projection": 4, "model.layers.9.self_attn.kv_a_proj_with_mqa": 4, "model.layers.9.self_attn.kv_b_proj": 4, "model.layers.9.self_attn.linear_gate": 4, "model.layers.9.self_attn.o_proj": 4, "model.layers.9.self_attn.q_a_proj": 4, "model.layers.9.self_attn.q_b_proj": 4, "model.layers.10.mlp.experts": 4, "model.layers.10.mlp.routed_expert_down_proj": 4, "model.layers.10.mlp.routed_expert_up_proj": 4, "model.layers.10.mlp.shared_experts.down_proj": 4, "model.layers.10.mlp.shared_experts.gate_up_proj": 4, "model.layers.10.self_attn.kv_a_proj_with_mqa": 4, "model.layers.10.self_attn.kv_b_proj": 4, "model.layers.10.self_attn.linear_gate": 4, "model.layers.10.self_attn.o_proj": 4, "model.layers.10.self_attn.q_a_proj": 4, "model.layers.10.self_attn.q_b_proj": 4, "model.layers.11.mlp.experts": 4, "model.layers.11.mlp.routed_expert_down_proj": 4, "model.layers.11.mlp.routed_expert_up_proj": 4, "model.layers.11.mlp.shared_experts.down_proj": 4, "model.layers.11.mlp.shared_experts.gate_up_proj": 4, "model.layers.11.self_attn.kv_a_proj_with_mqa": 4, "model.layers.11.self_attn.kv_b_proj": 4, "model.layers.11.self_attn.linear_gate": 4, "model.layers.11.self_attn.o_proj": 4, "model.layers.11.self_attn.q_a_proj": 4, "model.layers.11.self_attn.q_b_proj": 4, "model.layers.12.mlp.experts": 4, "model.layers.12.mlp.routed_expert_down_proj": 4, "model.layers.12.mlp.routed_expert_up_proj": 4, "model.layers.12.mlp.shared_experts.down_proj": 4, "model.layers.12.mlp.shared_experts.gate_up_proj": 4, "model.layers.12.self_attn.kv_a_proj_with_mqa": 4, "model.layers.12.self_attn.kv_b_proj": 4, "model.layers.12.self_attn.linear_gate": 4, "model.layers.12.self_attn.o_proj": 4, "model.layers.12.self_attn.q_a_proj": 4, "model.layers.12.self_attn.q_b_proj": 4, "model.layers.13.mlp.experts": 4, "model.layers.13.mlp.routed_expert_down_proj": 4, "model.layers.13.mlp.routed_expert_up_proj": 4, "model.layers.13.mlp.shared_experts.down_proj": 4, "model.layers.13.mlp.shared_experts.gate_up_proj": 4, "model.layers.13.self_attn.indexer.head_weight_projection": 4, "model.layers.13.self_attn.indexer.query_projection": 4, "model.layers.13.self_attn.indexer.token_key_projection": 4, "model.layers.13.self_attn.kv_a_proj_with_mqa": 4, "model.layers.13.self_attn.kv_b_proj": 4, "model.layers.13.self_attn.linear_gate": 4, "model.layers.13.self_attn.o_proj": 4, "model.layers.13.self_attn.q_a_proj": 4, "model.layers.13.self_attn.q_b_proj": 4, "model.layers.14.mlp.experts": 4, "model.layers.14.mlp.routed_expert_down_proj": 4, "model.layers.14.mlp.routed_expert_up_proj": 4, "model.layers.14.mlp.shared_experts.down_proj": 4, "model.layers.14.mlp.shared_experts.gate_up_proj": 4, "model.layers.14.self_attn.kv_a_proj_with_mqa": 4, "model.layers.14.self_attn.kv_b_proj": 4, "model.layers.14.self_attn.linear_gate": 4, "model.layers.14.self_attn.o_proj": 4, "model.layers.14.self_attn.q_a_proj": 4, "model.layers.14.self_attn.q_b_proj": 4, "model.layers.15.mlp.experts": 4, "model.layers.15.mlp.routed_expert_down_proj": 4, "model.layers.15.mlp.routed_expert_up_proj": 4, "model.layers.15.mlp.shared_experts.down_proj": 4, "model.layers.15.mlp.shared_experts.gate_up_proj": 4, "model.layers.15.self_attn.kv_a_proj_with_mqa": 4, "model.layers.15.self_attn.kv_b_proj": 4, "model.layers.15.self_attn.linear_gate": 4, "model.layers.15.self_attn.o_proj": 4, "model.layers.15.self_attn.q_a_proj": 4, "model.layers.15.self_attn.q_b_proj": 4, "model.layers.16.mlp.experts": 4, "model.layers.16.mlp.routed_expert_down_proj": 4, "model.layers.16.mlp.routed_expert_up_proj": 4, "model.layers.16.mlp.shared_experts.down_proj": 4, "model.layers.16.mlp.shared_experts.gate_up_proj": 4, "model.layers.16.self_attn.kv_a_proj_with_mqa": 4, "model.layers.16.self_attn.kv_b_proj": 4, "model.layers.16.self_attn.linear_gate": 4, "model.layers.16.self_attn.o_proj": 4, "model.layers.16.self_attn.q_a_proj": 4, "model.layers.16.self_attn.q_b_proj": 4, "model.layers.17.mlp.experts": 4, "model.layers.17.mlp.routed_expert_down_proj": 4, "model.layers.17.mlp.routed_expert_up_proj": 4, "model.layers.17.mlp.shared_experts.down_proj": 4, "model.layers.17.mlp.shared_experts.gate_up_proj": 4, "model.layers.17.self_attn.indexer.head_weight_projection": 4, "model.layers.17.self_attn.indexer.query_projection": 4, "model.layers.17.self_attn.indexer.token_key_projection": 4, "model.layers.17.self_attn.kv_a_proj_with_mqa": 4, "model.layers.17.self_attn.kv_b_proj": 4, "model.layers.17.self_attn.linear_gate": 4, "model.layers.17.self_attn.o_proj": 4, "model.layers.17.self_attn.q_a_proj": 4, "model.layers.17.self_attn.q_b_proj": 4, "model.layers.18.mlp.experts": 4, "model.layers.18.mlp.routed_expert_down_proj": 4, "model.layers.18.mlp.routed_expert_up_proj": 4, "model.layers.18.mlp.shared_experts.down_proj": 4, "model.layers.18.mlp.shared_experts.gate_up_proj": 4, "model.layers.18.self_attn.kv_a_proj_with_mqa": 4, "model.layers.18.self_attn.kv_b_proj": 4, "model.layers.18.self_attn.linear_gate": 4, "model.layers.18.self_attn.o_proj": 4, "model.layers.18.self_attn.q_a_proj": 4, "model.layers.18.self_attn.q_b_proj": 4, "model.layers.19.mlp.experts": 4, "model.layers.19.mlp.routed_expert_down_proj": 4, "model.layers.19.mlp.routed_expert_up_proj": 4, "model.layers.19.mlp.shared_experts.down_proj": 4, "model.layers.19.mlp.shared_experts.gate_up_proj": 4, "model.layers.19.self_attn.kv_a_proj_with_mqa": 4, "model.layers.19.self_attn.kv_b_proj": 4, "model.layers.19.self_attn.linear_gate": 4, "model.layers.19.self_attn.o_proj": 4, "model.layers.19.self_attn.q_a_proj": 4, "model.layers.19.self_attn.q_b_proj": 4, "model.layers.20.mlp.experts": 4, "model.layers.20.mlp.routed_expert_down_proj": 4, "model.layers.20.mlp.routed_expert_up_proj": 4, "model.layers.20.mlp.shared_experts.down_proj": 4, "model.layers.20.mlp.shared_experts.gate_up_proj": 4, "model.layers.20.self_attn.kv_a_proj_with_mqa": 4, "model.layers.20.self_attn.kv_b_proj": 4, "model.layers.20.self_attn.linear_gate": 4, "model.layers.20.self_attn.o_proj": 4, "model.layers.20.self_attn.q_a_proj": 4, "model.layers.20.self_attn.q_b_proj": 4, "model.layers.21.mlp.experts": 4, "model.layers.21.mlp.routed_expert_down_proj": 4, "model.layers.21.mlp.routed_expert_up_proj": 4, "model.layers.21.mlp.shared_experts.down_proj": 4, "model.layers.21.mlp.shared_experts.gate_up_proj": 4, "model.layers.21.self_attn.indexer.head_weight_projection": 4, "model.layers.21.self_attn.indexer.query_projection": 4, "model.layers.21.self_attn.indexer.token_key_projection": 4, "model.layers.21.self_attn.kv_a_proj_with_mqa": 4, "model.layers.21.self_attn.kv_b_proj": 4, "model.layers.21.self_attn.linear_gate": 4, "model.layers.21.self_attn.o_proj": 4, "model.layers.21.self_attn.q_a_proj": 4, "model.layers.21.self_attn.q_b_proj": 4, "model.layers.22.mlp.experts": 4, "model.layers.22.mlp.routed_expert_down_proj": 4, "model.layers.22.mlp.routed_expert_up_proj": 4, "model.layers.22.mlp.shared_experts.down_proj": 4, "model.layers.22.mlp.shared_experts.gate_up_proj": 4, "model.layers.22.self_attn.kv_a_proj_with_mqa": 4, "model.layers.22.self_attn.kv_b_proj": 4, "model.layers.22.self_attn.linear_gate": 4, "model.layers.22.self_attn.o_proj": 4, "model.layers.22.self_attn.q_a_proj": 4, "model.layers.22.self_attn.q_b_proj": 4, "model.layers.23.mlp.experts": 4, "model.layers.23.mlp.routed_expert_down_proj": 4, "model.layers.23.mlp.routed_expert_up_proj": 4, "model.layers.23.mlp.shared_experts.down_proj": 4, "model.layers.23.mlp.shared_experts.gate_up_proj": 4, "model.layers.23.self_attn.kv_a_proj_with_mqa": 4, "model.layers.23.self_attn.kv_b_proj": 4, "model.layers.23.self_attn.linear_gate": 4, "model.layers.23.self_attn.o_proj": 4, "model.layers.23.self_attn.q_a_proj": 4, "model.layers.23.self_attn.q_b_proj": 4, "model.layers.24.mlp.experts": 4, "model.layers.24.mlp.routed_expert_down_proj": 4, "model.layers.24.mlp.routed_expert_up_proj": 4, "model.layers.24.mlp.shared_experts.down_proj": 4, "model.layers.24.mlp.shared_experts.gate_up_proj": 4, "model.layers.24.self_attn.kv_a_proj_with_mqa": 4, "model.layers.24.self_attn.kv_b_proj": 4, "model.layers.24.self_attn.linear_gate": 4, "model.layers.24.self_attn.o_proj": 4, "model.layers.24.self_attn.q_a_proj": 4, "model.layers.24.self_attn.q_b_proj": 4, "model.layers.25.mlp.experts": 4, "model.layers.25.mlp.routed_expert_down_proj": 4, "model.layers.25.mlp.routed_expert_up_proj": 4, "model.layers.25.mlp.shared_experts.down_proj": 4, "model.layers.25.mlp.shared_experts.gate_up_proj": 4, "model.layers.25.self_attn.indexer.head_weight_projection": 4, "model.layers.25.self_attn.indexer.query_projection": 4, "model.layers.25.self_attn.indexer.token_key_projection": 4, "model.layers.25.self_attn.kv_a_proj_with_mqa": 4, "model.layers.25.self_attn.kv_b_proj": 4, "model.layers.25.self_attn.linear_gate": 4, "model.layers.25.self_attn.o_proj": 4, "model.layers.25.self_attn.q_a_proj": 4, "model.layers.25.self_attn.q_b_proj": 4, "model.layers.26.mlp.experts": 4, "model.layers.26.mlp.routed_expert_down_proj": 4, "model.layers.26.mlp.routed_expert_up_proj": 4, "model.layers.26.mlp.shared_experts.down_proj": 4, "model.layers.26.mlp.shared_experts.gate_up_proj": 4, "model.layers.26.self_attn.kv_a_proj_with_mqa": 4, "model.layers.26.self_attn.kv_b_proj": 4, "model.layers.26.self_attn.linear_gate": 4, "model.layers.26.self_attn.o_proj": 4, "model.layers.26.self_attn.q_a_proj": 4, "model.layers.26.self_attn.q_b_proj": 4, "model.layers.27.mlp.experts": 4, "model.layers.27.mlp.routed_expert_down_proj": 4, "model.layers.27.mlp.routed_expert_up_proj": 4, "model.layers.27.mlp.shared_experts.down_proj": 4, "model.layers.27.mlp.shared_experts.gate_up_proj": 4, "model.layers.27.self_attn.kv_a_proj_with_mqa": 4, "model.layers.27.self_attn.kv_b_proj": 4, "model.layers.27.self_attn.linear_gate": 4, "model.layers.27.self_attn.o_proj": 4, "model.layers.27.self_attn.q_a_proj": 4, "model.layers.27.self_attn.q_b_proj": 4, "model.layers.28.mlp.experts": 4, "model.layers.28.mlp.routed_expert_down_proj": 4, "model.layers.28.mlp.routed_expert_up_proj": 4, "model.layers.28.mlp.shared_experts.down_proj": 4, "model.layers.28.mlp.shared_experts.gate_up_proj": 4, "model.layers.28.self_attn.kv_a_proj_with_mqa": 4, "model.layers.28.self_attn.kv_b_proj": 4, "model.layers.28.self_attn.linear_gate": 4, "model.layers.28.self_attn.o_proj": 4, "model.layers.28.self_attn.q_a_proj": 4, "model.layers.28.self_attn.q_b_proj": 4, "model.layers.29.mlp.experts": 4, "model.layers.29.mlp.routed_expert_down_proj": 4, "model.layers.29.mlp.routed_expert_up_proj": 4, "model.layers.29.mlp.shared_experts.down_proj": 4, "model.layers.29.mlp.shared_experts.gate_up_proj": 4, "model.layers.29.self_attn.indexer.head_weight_projection": 4, "model.layers.29.self_attn.indexer.query_projection": 4, "model.layers.29.self_attn.indexer.token_key_projection": 4, "model.layers.29.self_attn.kv_a_proj_with_mqa": 4, "model.layers.29.self_attn.kv_b_proj": 4, "model.layers.29.self_attn.linear_gate": 4, "model.layers.29.self_attn.o_proj": 4, "model.layers.29.self_attn.q_a_proj": 4, "model.layers.29.self_attn.q_b_proj": 4, "model.layers.30.mlp.experts": 4, "model.layers.30.mlp.routed_expert_down_proj": 4, "model.layers.30.mlp.routed_expert_up_proj": 4, "model.layers.30.mlp.shared_experts.down_proj": 4, "model.layers.30.mlp.shared_experts.gate_up_proj": 4, "model.layers.30.self_attn.kv_a_proj_with_mqa": 4, "model.layers.30.self_attn.kv_b_proj": 4, "model.layers.30.self_attn.linear_gate": 4, "model.layers.30.self_attn.o_proj": 4, "model.layers.30.self_attn.q_a_proj": 4, "model.layers.30.self_attn.q_b_proj": 4, "model.layers.31.mlp.experts": 4, "model.layers.31.mlp.routed_expert_down_proj": 4, "model.layers.31.mlp.routed_expert_up_proj": 4, "model.layers.31.mlp.shared_experts.down_proj": 4, "model.layers.31.mlp.shared_experts.gate_up_proj": 4, "model.layers.31.self_attn.kv_a_proj_with_mqa": 4, "model.layers.31.self_attn.kv_b_proj": 4, "model.layers.31.self_attn.linear_gate": 4, "model.layers.31.self_attn.o_proj": 4, "model.layers.31.self_attn.q_a_proj": 4, "model.layers.31.self_attn.q_b_proj": 4, "model.layers.32.mlp.experts": 4, "model.layers.32.mlp.routed_expert_down_proj": 4, "model.layers.32.mlp.routed_expert_up_proj": 4, "model.layers.32.mlp.shared_experts.down_proj": 4, "model.layers.32.mlp.shared_experts.gate_up_proj": 4, "model.layers.32.self_attn.kv_a_proj_with_mqa": 4, "model.layers.32.self_attn.kv_b_proj": 4, "model.layers.32.self_attn.linear_gate": 4, "model.layers.32.self_attn.o_proj": 4, "model.layers.32.self_attn.q_a_proj": 4, "model.layers.32.self_attn.q_b_proj": 4, "model.layers.33.mlp.experts": 4, "model.layers.33.mlp.routed_expert_down_proj": 4, "model.layers.33.mlp.routed_expert_up_proj": 4, "model.layers.33.mlp.shared_experts.down_proj": 4, "model.layers.33.mlp.shared_experts.gate_up_proj": 4, "model.layers.33.self_attn.indexer.head_weight_projection": 4, "model.layers.33.self_attn.indexer.query_projection": 4, "model.layers.33.self_attn.indexer.token_key_projection": 4, "model.layers.33.self_attn.kv_a_proj_with_mqa": 4, "model.layers.33.self_attn.kv_b_proj": 4, "model.layers.33.self_attn.linear_gate": 4, "model.layers.33.self_attn.o_proj": 4, "model.layers.33.self_attn.q_a_proj": 4, "model.layers.33.self_attn.q_b_proj": 4, "model.layers.34.mlp.experts": 4, "model.layers.34.mlp.routed_expert_down_proj": 4, "model.layers.34.mlp.routed_expert_up_proj": 4, "model.layers.34.mlp.shared_experts.down_proj": 4, "model.layers.34.mlp.shared_experts.gate_up_proj": 4, "model.layers.34.self_attn.kv_a_proj_with_mqa": 4, "model.layers.34.self_attn.kv_b_proj": 4, "model.layers.34.self_attn.linear_gate": 4, "model.layers.34.self_attn.o_proj": 4, "model.layers.34.self_attn.q_a_proj": 4, "model.layers.34.self_attn.q_b_proj": 4, "model.layers.35.mlp.experts": 4, "model.layers.35.mlp.routed_expert_down_proj": 4, "model.layers.35.mlp.routed_expert_up_proj": 4, "model.layers.35.mlp.shared_experts.down_proj": 4, "model.layers.35.mlp.shared_experts.gate_up_proj": 4, "model.layers.35.self_attn.kv_a_proj_with_mqa": 4, "model.layers.35.self_attn.kv_b_proj": 4, "model.layers.35.self_attn.linear_gate": 4, "model.layers.35.self_attn.o_proj": 4, "model.layers.35.self_attn.q_a_proj": 4, "model.layers.35.self_attn.q_b_proj": 4, "model.layers.36.mlp.experts": 4, "model.layers.36.mlp.routed_expert_down_proj": 4, "model.layers.36.mlp.routed_expert_up_proj": 4, "model.layers.36.mlp.shared_experts.down_proj": 4, "model.layers.36.mlp.shared_experts.gate_up_proj": 4, "model.layers.36.self_attn.kv_a_proj_with_mqa": 4, "model.layers.36.self_attn.kv_b_proj": 4, "model.layers.36.self_attn.linear_gate": 4, "model.layers.36.self_attn.o_proj": 4, "model.layers.36.self_attn.q_a_proj": 4, "model.layers.36.self_attn.q_b_proj": 4, "model.layers.37.mlp.experts": 4, "model.layers.37.mlp.routed_expert_down_proj": 4, "model.layers.37.mlp.routed_expert_up_proj": 4, "model.layers.37.mlp.shared_experts.down_proj": 4, "model.layers.37.mlp.shared_experts.gate_up_proj": 4, "model.layers.37.self_attn.indexer.head_weight_projection": 4, "model.layers.37.self_attn.indexer.query_projection": 4, "model.layers.37.self_attn.indexer.token_key_projection": 4, "model.layers.37.self_attn.kv_a_proj_with_mqa": 4, "model.layers.37.self_attn.kv_b_proj": 4, "model.layers.37.self_attn.linear_gate": 4, "model.layers.37.self_attn.o_proj": 4, "model.layers.37.self_attn.q_a_proj": 4, "model.layers.37.self_attn.q_b_proj": 4, "model.layers.38.mlp.experts": 4, "model.layers.38.mlp.routed_expert_down_proj": 4, "model.layers.38.mlp.routed_expert_up_proj": 4, "model.layers.38.mlp.shared_experts.down_proj": 4, "model.layers.38.mlp.shared_experts.gate_up_proj": 4, "model.layers.38.self_attn.kv_a_proj_with_mqa": 4, "model.layers.38.self_attn.kv_b_proj": 4, "model.layers.38.self_attn.linear_gate": 4, "model.layers.38.self_attn.o_proj": 4, "model.layers.38.self_attn.q_a_proj": 4, "model.layers.38.self_attn.q_b_proj": 4, "model.layers.39.mlp.experts": 4, "model.layers.39.mlp.routed_expert_down_proj": 4, "model.layers.39.mlp.routed_expert_up_proj": 4, "model.layers.39.mlp.shared_experts.down_proj": 4, "model.layers.39.mlp.shared_experts.gate_up_proj": 4, "model.layers.39.self_attn.kv_a_proj_with_mqa": 4, "model.layers.39.self_attn.kv_b_proj": 4, "model.layers.39.self_attn.linear_gate": 4, "model.layers.39.self_attn.o_proj": 4, "model.layers.39.self_attn.q_a_proj": 4, "model.layers.39.self_attn.q_b_proj": 4, "model.layers.40.mlp.experts": 4, "model.layers.40.mlp.routed_expert_down_proj": 4, "model.layers.40.mlp.routed_expert_up_proj": 4, "model.layers.40.mlp.shared_experts.down_proj": 4, "model.layers.40.mlp.shared_experts.gate_up_proj": 4, "model.layers.40.self_attn.kv_a_proj_with_mqa": 4, "model.layers.40.self_attn.kv_b_proj": 4, "model.layers.40.self_attn.linear_gate": 4, "model.layers.40.self_attn.o_proj": 4, "model.layers.40.self_attn.q_a_proj": 4, "model.layers.40.self_attn.q_b_proj": 4, "model.layers.41.mlp.experts": 4, "model.layers.41.mlp.routed_expert_down_proj": 4, "model.layers.41.mlp.routed_expert_up_proj": 4, "model.layers.41.mlp.shared_experts.down_proj": 4, "model.layers.41.mlp.shared_experts.gate_up_proj": 4, "model.layers.41.self_attn.indexer.head_weight_projection": 4, "model.layers.41.self_attn.indexer.query_projection": 4, "model.layers.41.self_attn.indexer.token_key_projection": 4, "model.layers.41.self_attn.kv_a_proj_with_mqa": 4, "model.layers.41.self_attn.kv_b_proj": 4, "model.layers.41.self_attn.linear_gate": 4, "model.layers.41.self_attn.o_proj": 4, "model.layers.41.self_attn.q_a_proj": 4, "model.layers.41.self_attn.q_b_proj": 4, "visual.layers.0.self_attn.qkv": 8, "visual.layers.0.self_attn.o_proj": 8, "visual.layers.0.mlp.dense_h_to_4h": 8, "visual.layers.0.mlp.dense_4h_to_h": 8, "visual.layers.1.self_attn.qkv": 8, "visual.layers.1.self_attn.o_proj": 8, "visual.layers.1.mlp.dense_h_to_4h": 8, "visual.layers.1.mlp.dense_4h_to_h": 8, "visual.layers.2.self_attn.qkv": 8, "visual.layers.2.self_attn.o_proj": 8, "visual.layers.2.mlp.dense_h_to_4h": 8, "visual.layers.2.mlp.dense_4h_to_h": 8, "visual.layers.3.self_attn.qkv": 8, "visual.layers.3.self_attn.o_proj": 8, "visual.layers.3.mlp.dense_h_to_4h": 8, "visual.layers.3.mlp.dense_4h_to_h": 8, "visual.layers.4.self_attn.qkv": 8, "visual.layers.4.self_attn.o_proj": 8, "visual.layers.4.mlp.dense_h_to_4h": 8, "visual.layers.4.mlp.dense_4h_to_h": 8, "visual.layers.5.self_attn.qkv": 8, "visual.layers.5.self_attn.o_proj": 8, "visual.layers.5.mlp.dense_h_to_4h": 8, "visual.layers.5.mlp.dense_4h_to_h": 8, "visual.layers.6.self_attn.qkv": 8, "visual.layers.6.self_attn.o_proj": 8, "visual.layers.6.mlp.dense_h_to_4h": 8, "visual.layers.6.mlp.dense_4h_to_h": 8, "visual.layers.7.self_attn.qkv": 8, "visual.layers.7.self_attn.o_proj": 8, "visual.layers.7.mlp.dense_h_to_4h": 8, "visual.layers.7.mlp.dense_4h_to_h": 8, "visual.layers.8.self_attn.qkv": 8, "visual.layers.8.self_attn.o_proj": 8, "visual.layers.8.mlp.dense_h_to_4h": 8, "visual.layers.8.mlp.dense_4h_to_h": 8, "visual.layers.9.self_attn.qkv": 8, "visual.layers.9.self_attn.o_proj": 8, "visual.layers.9.mlp.dense_h_to_4h": 8, "visual.layers.9.mlp.dense_4h_to_h": 8, "visual.layers.10.self_attn.qkv": 8, "visual.layers.10.self_attn.o_proj": 8, "visual.layers.10.mlp.dense_h_to_4h": 8, "visual.layers.10.mlp.dense_4h_to_h": 8, "visual.layers.11.self_attn.qkv": 8, "visual.layers.11.self_attn.o_proj": 8, "visual.layers.11.mlp.dense_h_to_4h": 8, "visual.layers.11.mlp.dense_4h_to_h": 8, "visual.layers.12.self_attn.qkv": 8, "visual.layers.12.self_attn.o_proj": 8, "visual.layers.12.mlp.dense_h_to_4h": 8, "visual.layers.12.mlp.dense_4h_to_h": 8, "visual.layers.13.self_attn.qkv": 8, "visual.layers.13.self_attn.o_proj": 8, "visual.layers.13.mlp.dense_h_to_4h": 8, "visual.layers.13.mlp.dense_4h_to_h": 8, "visual.layers.14.self_attn.qkv": 8, "visual.layers.14.self_attn.o_proj": 8, "visual.layers.14.mlp.dense_h_to_4h": 8, "visual.layers.14.mlp.dense_4h_to_h": 8, "visual.layers.15.self_attn.qkv": 8, "visual.layers.15.self_attn.o_proj": 8, "visual.layers.15.mlp.dense_h_to_4h": 8, "visual.layers.15.mlp.dense_4h_to_h": 8, "visual.layers.16.self_attn.qkv": 8, "visual.layers.16.self_attn.o_proj": 8, "visual.layers.16.mlp.dense_h_to_4h": 8, "visual.layers.16.mlp.dense_4h_to_h": 8, "visual.layers.17.self_attn.qkv": 8, "visual.layers.17.self_attn.o_proj": 8, "visual.layers.17.mlp.dense_h_to_4h": 8, "visual.layers.17.mlp.dense_4h_to_h": 8, "visual.layers.18.self_attn.qkv": 8, "visual.layers.18.self_attn.o_proj": 8, "visual.layers.18.mlp.dense_h_to_4h": 8, "visual.layers.18.mlp.dense_4h_to_h": 8, "visual.layers.19.self_attn.qkv": 8, "visual.layers.19.self_attn.o_proj": 8, "visual.layers.19.mlp.dense_h_to_4h": 8, "visual.layers.19.mlp.dense_4h_to_h": 8, "visual.layers.20.self_attn.qkv": 8, "visual.layers.20.self_attn.o_proj": 8, "visual.layers.20.mlp.dense_h_to_4h": 8, "visual.layers.20.mlp.dense_4h_to_h": 8, "visual.layers.21.self_attn.qkv": 8, "visual.layers.21.self_attn.o_proj": 8, "visual.layers.21.mlp.dense_h_to_4h": 8, "visual.layers.21.mlp.dense_4h_to_h": 8, "visual.layers.22.self_attn.qkv": 8, "visual.layers.22.self_attn.o_proj": 8, "visual.layers.22.mlp.dense_h_to_4h": 8, "visual.layers.22.mlp.dense_4h_to_h": 8, "visual.layers.23.self_attn.qkv": 8, "visual.layers.23.self_attn.o_proj": 8, "visual.layers.23.mlp.dense_h_to_4h": 8, "visual.layers.23.mlp.dense_4h_to_h": 8, "visual.layers.24.self_attn.qkv": 8, "visual.layers.24.self_attn.o_proj": 8, "visual.layers.24.mlp.dense_h_to_4h": 8, "visual.layers.24.mlp.dense_4h_to_h": 8, "visual.layers.25.self_attn.qkv": 8, "visual.layers.25.self_attn.o_proj": 8, "visual.layers.25.mlp.dense_h_to_4h": 8, "visual.layers.25.mlp.dense_4h_to_h": 8, "visual.layers.26.self_attn.qkv": 8, "visual.layers.26.self_attn.o_proj": 8, "visual.layers.26.mlp.dense_h_to_4h": 8, "visual.layers.26.mlp.dense_4h_to_h": 8 } } }, "transformers_version": "5.23.0", "video_end_token_id": 120123, "video_start_token_id": 120122, "video_token_id": 120124, "vision_config": { "add_patchemb_bias": true, "anyres_vit_max_image_size": 2048, "attention_backend": "hf_align_sdpa", "attention_dropout": 0.0, "bias_activation_fusion": true, "cat_extra_token": 0, "hidden_act": "gelu", "hidden_dropout": 0.0, "hidden_size": 1152, "img_max_token_num": 4096, "intermediate_size": 4304, "interpolate_mode": "bilinear", "learnable_mlp_pooling_size": 0, "max_image_size": 2048, "max_vit_seq_len": 16384, "min_image_size": 512, "model_type": "hy_v4_flash", "num_attention_heads": 16, "num_channels": 3, "num_hidden_layers": 27, "num_key_value_heads": 16, "out_hidden_size": 3072, "packed_seq_alignment": 128, "patch_size": 16, "perceive_post_norm": false, "perceive_pre_norm": true, "projector_type": "rmsnorm_mlp_adapter", "remove_prenorm": true, "resize_resolution": 2048, "rms_norm_eps": 1e-05, "rope_2d_percent": 1.0, "rope_2d_theta": 10000.0, "spatial_merge_size": 2, "spatial_patch_size": 1, "temporal_patch_size": 1, "text_hidden_size": 3072, "video_max_image_size": 768, "video_min_image_size": 256, "video_spatial_compression": false, "video_temporal_compression": false, "vision_full_attention": false }, "vision_start_token_id": 120118, "speculative_config": { "method": "dfly", "model": "voodooquant/Hy4-flash-DFly2-PTQR-INT8-W8A8-GS128", "num_speculative_tokens": 7, "draft_sample_method": "probabilistic" }, "dfly_mtp_fusion": "slot0", "dfly_target_index_topk": 2048, "dfly_context_local_window": null, "dfly_enable_hidden_correction": true, "dfly_num_hidden_layers": 5, "dfly_mask_token_id": 120009, "dfly_target_index_layer": [ 25, 29, 33, 37, 41 ], "dfly_target_kv_layers": [ 25, 29, 33, 37, 41 ], "quantization_config": { "quant_method": "hy4_neuqi", "group_size": 128, "quantized_modules": { "model.layers.0.mlp.down_proj": 4, "model.layers.0.mlp.gate_up_proj": 4, "model.layers.0.self_attn.indexer.head_weight_projection": 4, "model.layers.0.self_attn.indexer.query_projection": 4, "model.layers.0.self_attn.indexer.token_key_projection": 4, "model.layers.0.self_attn.kv_a_proj_with_mqa": 4, "model.layers.0.self_attn.kv_b_proj": 4, "model.layers.0.self_attn.linear_gate": 4, "model.layers.0.self_attn.o_proj": 4, "model.layers.0.self_attn.q_a_proj": 4, "model.layers.0.self_attn.q_b_proj": 4, "model.layers.1.mlp.experts": 4, "model.layers.1.mlp.routed_expert_down_proj": 4, "model.layers.1.mlp.routed_expert_up_proj": 4, "model.layers.1.mlp.shared_experts.down_proj": 4, "model.layers.1.mlp.shared_experts.gate_up_proj": 4, "model.layers.1.self_attn.indexer.head_weight_projection": 4, "model.layers.1.self_attn.indexer.query_projection": 4, "model.layers.1.self_attn.indexer.token_key_projection": 4, "model.layers.1.self_attn.kv_a_proj_with_mqa": 4, "model.layers.1.self_attn.kv_b_proj": 4, "model.layers.1.self_attn.linear_gate": 4, "model.layers.1.self_attn.o_proj": 4, "model.layers.1.self_attn.q_a_proj": 4, "model.layers.1.self_attn.q_b_proj": 4, "model.layers.2.mlp.experts": 4, "model.layers.2.mlp.routed_expert_down_proj": 4, "model.layers.2.mlp.routed_expert_up_proj": 4, "model.layers.2.mlp.shared_experts.down_proj": 4, "model.layers.2.mlp.shared_experts.gate_up_proj": 4, "model.layers.2.self_attn.kv_a_proj_with_mqa": 4, "model.layers.2.self_attn.kv_b_proj": 4, "model.layers.2.self_attn.linear_gate": 4, "model.layers.2.self_attn.o_proj": 4, "model.layers.2.self_attn.q_a_proj": 4, "model.layers.2.self_attn.q_b_proj": 4, "model.layers.3.mlp.experts": 4, "model.layers.3.mlp.routed_expert_down_proj": 4, "model.layers.3.mlp.routed_expert_up_proj": 4, "model.layers.3.mlp.shared_experts.down_proj": 4, "model.layers.3.mlp.shared_experts.gate_up_proj": 4, "model.layers.3.self_attn.kv_a_proj_with_mqa": 4, "model.layers.3.self_attn.kv_b_proj": 4, "model.layers.3.self_attn.linear_gate": 4, "model.layers.3.self_attn.o_proj": 4, "model.layers.3.self_attn.q_a_proj": 4, "model.layers.3.self_attn.q_b_proj": 4, "model.layers.4.mlp.experts": 4, "model.layers.4.mlp.routed_expert_down_proj": 4, "model.layers.4.mlp.routed_expert_up_proj": 4, "model.layers.4.mlp.shared_experts.down_proj": 4, "model.layers.4.mlp.shared_experts.gate_up_proj": 4, "model.layers.4.self_attn.kv_a_proj_with_mqa": 4, "model.layers.4.self_attn.kv_b_proj": 4, "model.layers.4.self_attn.linear_gate": 4, "model.layers.4.self_attn.o_proj": 4, "model.layers.4.self_attn.q_a_proj": 4, "model.layers.4.self_attn.q_b_proj": 4, "model.layers.5.mlp.experts": 4, "model.layers.5.mlp.routed_expert_down_proj": 4, "model.layers.5.mlp.routed_expert_up_proj": 4, "model.layers.5.mlp.shared_experts.down_proj": 4, "model.layers.5.mlp.shared_experts.gate_up_proj": 4, "model.layers.5.self_attn.indexer.head_weight_projection": 4, "model.layers.5.self_attn.indexer.query_projection": 4, "model.layers.5.self_attn.indexer.token_key_projection": 4, "model.layers.5.self_attn.kv_a_proj_with_mqa": 4, "model.layers.5.self_attn.kv_b_proj": 4, "model.layers.5.self_attn.linear_gate": 4, "model.layers.5.self_attn.o_proj": 4, "model.layers.5.self_attn.q_a_proj": 4, "model.layers.5.self_attn.q_b_proj": 4, "model.layers.6.mlp.experts": 4, "model.layers.6.mlp.routed_expert_down_proj": 4, "model.layers.6.mlp.routed_expert_up_proj": 4, "model.layers.6.mlp.shared_experts.down_proj": 4, "model.layers.6.mlp.shared_experts.gate_up_proj": 4, "model.layers.6.self_attn.kv_a_proj_with_mqa": 4, "model.layers.6.self_attn.kv_b_proj": 4, "model.layers.6.self_attn.linear_gate": 4, "model.layers.6.self_attn.o_proj": 4, "model.layers.6.self_attn.q_a_proj": 4, "model.layers.6.self_attn.q_b_proj": 4, "model.layers.7.mlp.experts": 4, "model.layers.7.mlp.routed_expert_down_proj": 4, "model.layers.7.mlp.routed_expert_up_proj": 4, "model.layers.7.mlp.shared_experts.down_proj": 4, "model.layers.7.mlp.shared_experts.gate_up_proj": 4, "model.layers.7.self_attn.kv_a_proj_with_mqa": 4, "model.layers.7.self_attn.kv_b_proj": 4, "model.layers.7.self_attn.linear_gate": 4, "model.layers.7.self_attn.o_proj": 4, "model.layers.7.self_attn.q_a_proj": 4, "model.layers.7.self_attn.q_b_proj": 4, "model.layers.8.mlp.experts": 4, "model.layers.8.mlp.routed_expert_down_proj": 4, "model.layers.8.mlp.routed_expert_up_proj": 4, "model.layers.8.mlp.shared_experts.down_proj": 4, "model.layers.8.mlp.shared_experts.gate_up_proj": 4, "model.layers.8.self_attn.kv_a_proj_with_mqa": 4, "model.layers.8.self_attn.kv_b_proj": 4, "model.layers.8.self_attn.linear_gate": 4, "model.layers.8.self_attn.o_proj": 4, "model.layers.8.self_attn.q_a_proj": 4, "model.layers.8.self_attn.q_b_proj": 4, "model.layers.9.mlp.experts": 4, "model.layers.9.mlp.routed_expert_down_proj": 4, "model.layers.9.mlp.routed_expert_up_proj": 4, "model.layers.9.mlp.shared_experts.down_proj": 4, "model.layers.9.mlp.shared_experts.gate_up_proj": 4, "model.layers.9.self_attn.indexer.head_weight_projection": 4, "model.layers.9.self_attn.indexer.query_projection": 4, "model.layers.9.self_attn.indexer.token_key_projection": 4, "model.layers.9.self_attn.kv_a_proj_with_mqa": 4, "model.layers.9.self_attn.kv_b_proj": 4, "model.layers.9.self_attn.linear_gate": 4, "model.layers.9.self_attn.o_proj": 4, "model.layers.9.self_attn.q_a_proj": 4, "model.layers.9.self_attn.q_b_proj": 4, "model.layers.10.mlp.experts": 4, "model.layers.10.mlp.routed_expert_down_proj": 4, "model.layers.10.mlp.routed_expert_up_proj": 4, "model.layers.10.mlp.shared_experts.down_proj": 4, "model.layers.10.mlp.shared_experts.gate_up_proj": 4, "model.layers.10.self_attn.kv_a_proj_with_mqa": 4, "model.layers.10.self_attn.kv_b_proj": 4, "model.layers.10.self_attn.linear_gate": 4, "model.layers.10.self_attn.o_proj": 4, "model.layers.10.self_attn.q_a_proj": 4, "model.layers.10.self_attn.q_b_proj": 4, "model.layers.11.mlp.experts": 4, "model.layers.11.mlp.routed_expert_down_proj": 4, "model.layers.11.mlp.routed_expert_up_proj": 4, "model.layers.11.mlp.shared_experts.down_proj": 4, "model.layers.11.mlp.shared_experts.gate_up_proj": 4, "model.layers.11.self_attn.kv_a_proj_with_mqa": 4, "model.layers.11.self_attn.kv_b_proj": 4, "model.layers.11.self_attn.linear_gate": 4, "model.layers.11.self_attn.o_proj": 4, "model.layers.11.self_attn.q_a_proj": 4, "model.layers.11.self_attn.q_b_proj": 4, "model.layers.12.mlp.experts": 4, "model.layers.12.mlp.routed_expert_down_proj": 4, "model.layers.12.mlp.routed_expert_up_proj": 4, "model.layers.12.mlp.shared_experts.down_proj": 4, "model.layers.12.mlp.shared_experts.gate_up_proj": 4, "model.layers.12.self_attn.kv_a_proj_with_mqa": 4, "model.layers.12.self_attn.kv_b_proj": 4, "model.layers.12.self_attn.linear_gate": 4, "model.layers.12.self_attn.o_proj": 4, "model.layers.12.self_attn.q_a_proj": 4, "model.layers.12.self_attn.q_b_proj": 4, "model.layers.13.mlp.experts": 4, "model.layers.13.mlp.routed_expert_down_proj": 4, "model.layers.13.mlp.routed_expert_up_proj": 4, "model.layers.13.mlp.shared_experts.down_proj": 4, "model.layers.13.mlp.shared_experts.gate_up_proj": 4, "model.layers.13.self_attn.indexer.head_weight_projection": 4, "model.layers.13.self_attn.indexer.query_projection": 4, "model.layers.13.self_attn.indexer.token_key_projection": 4, "model.layers.13.self_attn.kv_a_proj_with_mqa": 4, "model.layers.13.self_attn.kv_b_proj": 4, "model.layers.13.self_attn.linear_gate": 4, "model.layers.13.self_attn.o_proj": 4, "model.layers.13.self_attn.q_a_proj": 4, "model.layers.13.self_attn.q_b_proj": 4, "model.layers.14.mlp.experts": 4, "model.layers.14.mlp.routed_expert_down_proj": 4, "model.layers.14.mlp.routed_expert_up_proj": 4, "model.layers.14.mlp.shared_experts.down_proj": 4, "model.layers.14.mlp.shared_experts.gate_up_proj": 4, "model.layers.14.self_attn.kv_a_proj_with_mqa": 4, "model.layers.14.self_attn.kv_b_proj": 4, "model.layers.14.self_attn.linear_gate": 4, "model.layers.14.self_attn.o_proj": 4, "model.layers.14.self_attn.q_a_proj": 4, "model.layers.14.self_attn.q_b_proj": 4, "model.layers.15.mlp.experts": 4, "model.layers.15.mlp.routed_expert_down_proj": 4, "model.layers.15.mlp.routed_expert_up_proj": 4, "model.layers.15.mlp.shared_experts.down_proj": 4, "model.layers.15.mlp.shared_experts.gate_up_proj": 4, "model.layers.15.self_attn.kv_a_proj_with_mqa": 4, "model.layers.15.self_attn.kv_b_proj": 4, "model.layers.15.self_attn.linear_gate": 4, "model.layers.15.self_attn.o_proj": 4, "model.layers.15.self_attn.q_a_proj": 4, "model.layers.15.self_attn.q_b_proj": 4, "model.layers.16.mlp.experts": 4, "model.layers.16.mlp.routed_expert_down_proj": 4, "model.layers.16.mlp.routed_expert_up_proj": 4, "model.layers.16.mlp.shared_experts.down_proj": 4, "model.layers.16.mlp.shared_experts.gate_up_proj": 4, "model.layers.16.self_attn.kv_a_proj_with_mqa": 4, "model.layers.16.self_attn.kv_b_proj": 4, "model.layers.16.self_attn.linear_gate": 4, "model.layers.16.self_attn.o_proj": 4, "model.layers.16.self_attn.q_a_proj": 4, "model.layers.16.self_attn.q_b_proj": 4, "model.layers.17.mlp.experts": 4, "model.layers.17.mlp.routed_expert_down_proj": 4, "model.layers.17.mlp.routed_expert_up_proj": 4, "model.layers.17.mlp.shared_experts.down_proj": 4, "model.layers.17.mlp.shared_experts.gate_up_proj": 4, "model.layers.17.self_attn.indexer.head_weight_projection": 4, "model.layers.17.self_attn.indexer.query_projection": 4, "model.layers.17.self_attn.indexer.token_key_projection": 4, "model.layers.17.self_attn.kv_a_proj_with_mqa": 4, "model.layers.17.self_attn.kv_b_proj": 4, "model.layers.17.self_attn.linear_gate": 4, "model.layers.17.self_attn.o_proj": 4, "model.layers.17.self_attn.q_a_proj": 4, "model.layers.17.self_attn.q_b_proj": 4, "model.layers.18.mlp.experts": 4, "model.layers.18.mlp.routed_expert_down_proj": 4, "model.layers.18.mlp.routed_expert_up_proj": 4, "model.layers.18.mlp.shared_experts.down_proj": 4, "model.layers.18.mlp.shared_experts.gate_up_proj": 4, "model.layers.18.self_attn.kv_a_proj_with_mqa": 4, "model.layers.18.self_attn.kv_b_proj": 4, "model.layers.18.self_attn.linear_gate": 4, "model.layers.18.self_attn.o_proj": 4, "model.layers.18.self_attn.q_a_proj": 4, "model.layers.18.self_attn.q_b_proj": 4, "model.layers.19.mlp.experts": 4, "model.layers.19.mlp.routed_expert_down_proj": 4, "model.layers.19.mlp.routed_expert_up_proj": 4, "model.layers.19.mlp.shared_experts.down_proj": 4, "model.layers.19.mlp.shared_experts.gate_up_proj": 4, "model.layers.19.self_attn.kv_a_proj_with_mqa": 4, "model.layers.19.self_attn.kv_b_proj": 4, "model.layers.19.self_attn.linear_gate": 4, "model.layers.19.self_attn.o_proj": 4, "model.layers.19.self_attn.q_a_proj": 4, "model.layers.19.self_attn.q_b_proj": 4, "model.layers.20.mlp.experts": 4, "model.layers.20.mlp.routed_expert_down_proj": 4, "model.layers.20.mlp.routed_expert_up_proj": 4, "model.layers.20.mlp.shared_experts.down_proj": 4, "model.layers.20.mlp.shared_experts.gate_up_proj": 4, "model.layers.20.self_attn.kv_a_proj_with_mqa": 4, "model.layers.20.self_attn.kv_b_proj": 4, "model.layers.20.self_attn.linear_gate": 4, "model.layers.20.self_attn.o_proj": 4, "model.layers.20.self_attn.q_a_proj": 4, "model.layers.20.self_attn.q_b_proj": 4, "model.layers.21.mlp.experts": 4, "model.layers.21.mlp.routed_expert_down_proj": 4, "model.layers.21.mlp.routed_expert_up_proj": 4, "model.layers.21.mlp.shared_experts.down_proj": 4, "model.layers.21.mlp.shared_experts.gate_up_proj": 4, "model.layers.21.self_attn.indexer.head_weight_projection": 4, "model.layers.21.self_attn.indexer.query_projection": 4, "model.layers.21.self_attn.indexer.token_key_projection": 4, "model.layers.21.self_attn.kv_a_proj_with_mqa": 4, "model.layers.21.self_attn.kv_b_proj": 4, "model.layers.21.self_attn.linear_gate": 4, "model.layers.21.self_attn.o_proj": 4, "model.layers.21.self_attn.q_a_proj": 4, "model.layers.21.self_attn.q_b_proj": 4, "model.layers.22.mlp.experts": 4, "model.layers.22.mlp.routed_expert_down_proj": 4, "model.layers.22.mlp.routed_expert_up_proj": 4, "model.layers.22.mlp.shared_experts.down_proj": 4, "model.layers.22.mlp.shared_experts.gate_up_proj": 4, "model.layers.22.self_attn.kv_a_proj_with_mqa": 4, "model.layers.22.self_attn.kv_b_proj": 4, "model.layers.22.self_attn.linear_gate": 4, "model.layers.22.self_attn.o_proj": 4, "model.layers.22.self_attn.q_a_proj": 4, "model.layers.22.self_attn.q_b_proj": 4, "model.layers.23.mlp.experts": 4, "model.layers.23.mlp.routed_expert_down_proj": 4, "model.layers.23.mlp.routed_expert_up_proj": 4, "model.layers.23.mlp.shared_experts.down_proj": 4, "model.layers.23.mlp.shared_experts.gate_up_proj": 4, "model.layers.23.self_attn.kv_a_proj_with_mqa": 4, "model.layers.23.self_attn.kv_b_proj": 4, "model.layers.23.self_attn.linear_gate": 4, "model.layers.23.self_attn.o_proj": 4, "model.layers.23.self_attn.q_a_proj": 4, "model.layers.23.self_attn.q_b_proj": 4, "model.layers.24.mlp.experts": 4, "model.layers.24.mlp.routed_expert_down_proj": 4, "model.layers.24.mlp.routed_expert_up_proj": 4, "model.layers.24.mlp.shared_experts.down_proj": 4, "model.layers.24.mlp.shared_experts.gate_up_proj": 4, "model.layers.24.self_attn.kv_a_proj_with_mqa": 4, "model.layers.24.self_attn.kv_b_proj": 4, "model.layers.24.self_attn.linear_gate": 4, "model.layers.24.self_attn.o_proj": 4, "model.layers.24.self_attn.q_a_proj": 4, "model.layers.24.self_attn.q_b_proj": 4, "model.layers.25.mlp.experts": 4, "model.layers.25.mlp.routed_expert_down_proj": 4, "model.layers.25.mlp.routed_expert_up_proj": 4, "model.layers.25.mlp.shared_experts.down_proj": 4, "model.layers.25.mlp.shared_experts.gate_up_proj": 4, "model.layers.25.self_attn.indexer.head_weight_projection": 4, "model.layers.25.self_attn.indexer.query_projection": 4, "model.layers.25.self_attn.indexer.token_key_projection": 4, "model.layers.25.self_attn.kv_a_proj_with_mqa": 4, "model.layers.25.self_attn.kv_b_proj": 4, "model.layers.25.self_attn.linear_gate": 4, "model.layers.25.self_attn.o_proj": 4, "model.layers.25.self_attn.q_a_proj": 4, "model.layers.25.self_attn.q_b_proj": 4, "model.layers.26.mlp.experts": 4, "model.layers.26.mlp.routed_expert_down_proj": 4, "model.layers.26.mlp.routed_expert_up_proj": 4, "model.layers.26.mlp.shared_experts.down_proj": 4, "model.layers.26.mlp.shared_experts.gate_up_proj": 4, "model.layers.26.self_attn.kv_a_proj_with_mqa": 4, "model.layers.26.self_attn.kv_b_proj": 4, "model.layers.26.self_attn.linear_gate": 4, "model.layers.26.self_attn.o_proj": 4, "model.layers.26.self_attn.q_a_proj": 4, "model.layers.26.self_attn.q_b_proj": 4, "model.layers.27.mlp.experts": 4, "model.layers.27.mlp.routed_expert_down_proj": 4, "model.layers.27.mlp.routed_expert_up_proj": 4, "model.layers.27.mlp.shared_experts.down_proj": 4, "model.layers.27.mlp.shared_experts.gate_up_proj": 4, "model.layers.27.self_attn.kv_a_proj_with_mqa": 4, "model.layers.27.self_attn.kv_b_proj": 4, "model.layers.27.self_attn.linear_gate": 4, "model.layers.27.self_attn.o_proj": 4, "model.layers.27.self_attn.q_a_proj": 4, "model.layers.27.self_attn.q_b_proj": 4, "model.layers.28.mlp.experts": 4, "model.layers.28.mlp.routed_expert_down_proj": 4, "model.layers.28.mlp.routed_expert_up_proj": 4, "model.layers.28.mlp.shared_experts.down_proj": 4, "model.layers.28.mlp.shared_experts.gate_up_proj": 4, "model.layers.28.self_attn.kv_a_proj_with_mqa": 4, "model.layers.28.self_attn.kv_b_proj": 4, "model.layers.28.self_attn.linear_gate": 4, "model.layers.28.self_attn.o_proj": 4, "model.layers.28.self_attn.q_a_proj": 4, "model.layers.28.self_attn.q_b_proj": 4, "model.layers.29.mlp.experts": 4, "model.layers.29.mlp.routed_expert_down_proj": 4, "model.layers.29.mlp.routed_expert_up_proj": 4, "model.layers.29.mlp.shared_experts.down_proj": 4, "model.layers.29.mlp.shared_experts.gate_up_proj": 4, "model.layers.29.self_attn.indexer.head_weight_projection": 4, "model.layers.29.self_attn.indexer.query_projection": 4, "model.layers.29.self_attn.indexer.token_key_projection": 4, "model.layers.29.self_attn.kv_a_proj_with_mqa": 4, "model.layers.29.self_attn.kv_b_proj": 4, "model.layers.29.self_attn.linear_gate": 4, "model.layers.29.self_attn.o_proj": 4, "model.layers.29.self_attn.q_a_proj": 4, "model.layers.29.self_attn.q_b_proj": 4, "model.layers.30.mlp.experts": 4, "model.layers.30.mlp.routed_expert_down_proj": 4, "model.layers.30.mlp.routed_expert_up_proj": 4, "model.layers.30.mlp.shared_experts.down_proj": 4, "model.layers.30.mlp.shared_experts.gate_up_proj": 4, "model.layers.30.self_attn.kv_a_proj_with_mqa": 4, "model.layers.30.self_attn.kv_b_proj": 4, "model.layers.30.self_attn.linear_gate": 4, "model.layers.30.self_attn.o_proj": 4, "model.layers.30.self_attn.q_a_proj": 4, "model.layers.30.self_attn.q_b_proj": 4, "model.layers.31.mlp.experts": 4, "model.layers.31.mlp.routed_expert_down_proj": 4, "model.layers.31.mlp.routed_expert_up_proj": 4, "model.layers.31.mlp.shared_experts.down_proj": 4, "model.layers.31.mlp.shared_experts.gate_up_proj": 4, "model.layers.31.self_attn.kv_a_proj_with_mqa": 4, "model.layers.31.self_attn.kv_b_proj": 4, "model.layers.31.self_attn.linear_gate": 4, "model.layers.31.self_attn.o_proj": 4, "model.layers.31.self_attn.q_a_proj": 4, "model.layers.31.self_attn.q_b_proj": 4, "model.layers.32.mlp.experts": 4, "model.layers.32.mlp.routed_expert_down_proj": 4, "model.layers.32.mlp.routed_expert_up_proj": 4, "model.layers.32.mlp.shared_experts.down_proj": 4, "model.layers.32.mlp.shared_experts.gate_up_proj": 4, "model.layers.32.self_attn.kv_a_proj_with_mqa": 4, "model.layers.32.self_attn.kv_b_proj": 4, "model.layers.32.self_attn.linear_gate": 4, "model.layers.32.self_attn.o_proj": 4, "model.layers.32.self_attn.q_a_proj": 4, "model.layers.32.self_attn.q_b_proj": 4, "model.layers.33.mlp.experts": 4, "model.layers.33.mlp.routed_expert_down_proj": 4, "model.layers.33.mlp.routed_expert_up_proj": 4, "model.layers.33.mlp.shared_experts.down_proj": 4, "model.layers.33.mlp.shared_experts.gate_up_proj": 4, "model.layers.33.self_attn.indexer.head_weight_projection": 4, "model.layers.33.self_attn.indexer.query_projection": 4, "model.layers.33.self_attn.indexer.token_key_projection": 4, "model.layers.33.self_attn.kv_a_proj_with_mqa": 4, "model.layers.33.self_attn.kv_b_proj": 4, "model.layers.33.self_attn.linear_gate": 4, "model.layers.33.self_attn.o_proj": 4, "model.layers.33.self_attn.q_a_proj": 4, "model.layers.33.self_attn.q_b_proj": 4, "model.layers.34.mlp.experts": 4, "model.layers.34.mlp.routed_expert_down_proj": 4, "model.layers.34.mlp.routed_expert_up_proj": 4, "model.layers.34.mlp.shared_experts.down_proj": 4, "model.layers.34.mlp.shared_experts.gate_up_proj": 4, "model.layers.34.self_attn.kv_a_proj_with_mqa": 4, "model.layers.34.self_attn.kv_b_proj": 4, "model.layers.34.self_attn.linear_gate": 4, "model.layers.34.self_attn.o_proj": 4, "model.layers.34.self_attn.q_a_proj": 4, "model.layers.34.self_attn.q_b_proj": 4, "model.layers.35.mlp.experts": 4, "model.layers.35.mlp.routed_expert_down_proj": 4, "model.layers.35.mlp.routed_expert_up_proj": 4, "model.layers.35.mlp.shared_experts.down_proj": 4, "model.layers.35.mlp.shared_experts.gate_up_proj": 4, "model.layers.35.self_attn.kv_a_proj_with_mqa": 4, "model.layers.35.self_attn.kv_b_proj": 4, "model.layers.35.self_attn.linear_gate": 4, "model.layers.35.self_attn.o_proj": 4, "model.layers.35.self_attn.q_a_proj": 4, "model.layers.35.self_attn.q_b_proj": 4, "model.layers.36.mlp.experts": 4, "model.layers.36.mlp.routed_expert_down_proj": 4, "model.layers.36.mlp.routed_expert_up_proj": 4, "model.layers.36.mlp.shared_experts.down_proj": 4, "model.layers.36.mlp.shared_experts.gate_up_proj": 4, "model.layers.36.self_attn.kv_a_proj_with_mqa": 4, "model.layers.36.self_attn.kv_b_proj": 4, "model.layers.36.self_attn.linear_gate": 4, "model.layers.36.self_attn.o_proj": 4, "model.layers.36.self_attn.q_a_proj": 4, "model.layers.36.self_attn.q_b_proj": 4, "model.layers.37.mlp.experts": 4, "model.layers.37.mlp.routed_expert_down_proj": 4, "model.layers.37.mlp.routed_expert_up_proj": 4, "model.layers.37.mlp.shared_experts.down_proj": 4, "model.layers.37.mlp.shared_experts.gate_up_proj": 4, "model.layers.37.self_attn.indexer.head_weight_projection": 4, "model.layers.37.self_attn.indexer.query_projection": 4, "model.layers.37.self_attn.indexer.token_key_projection": 4, "model.layers.37.self_attn.kv_a_proj_with_mqa": 4, "model.layers.37.self_attn.kv_b_proj": 4, "model.layers.37.self_attn.linear_gate": 4, "model.layers.37.self_attn.o_proj": 4, "model.layers.37.self_attn.q_a_proj": 4, "model.layers.37.self_attn.q_b_proj": 4, "model.layers.38.mlp.experts": 4, "model.layers.38.mlp.routed_expert_down_proj": 4, "model.layers.38.mlp.routed_expert_up_proj": 4, "model.layers.38.mlp.shared_experts.down_proj": 4, "model.layers.38.mlp.shared_experts.gate_up_proj": 4, "model.layers.38.self_attn.kv_a_proj_with_mqa": 4, "model.layers.38.self_attn.kv_b_proj": 4, "model.layers.38.self_attn.linear_gate": 4, "model.layers.38.self_attn.o_proj": 4, "model.layers.38.self_attn.q_a_proj": 4, "model.layers.38.self_attn.q_b_proj": 4, "model.layers.39.mlp.experts": 4, "model.layers.39.mlp.routed_expert_down_proj": 4, "model.layers.39.mlp.routed_expert_up_proj": 4, "model.layers.39.mlp.shared_experts.down_proj": 4, "model.layers.39.mlp.shared_experts.gate_up_proj": 4, "model.layers.39.self_attn.kv_a_proj_with_mqa": 4, "model.layers.39.self_attn.kv_b_proj": 4, "model.layers.39.self_attn.linear_gate": 4, "model.layers.39.self_attn.o_proj": 4, "model.layers.39.self_attn.q_a_proj": 4, "model.layers.39.self_attn.q_b_proj": 4, "model.layers.40.mlp.experts": 4, "model.layers.40.mlp.routed_expert_down_proj": 4, "model.layers.40.mlp.routed_expert_up_proj": 4, "model.layers.40.mlp.shared_experts.down_proj": 4, "model.layers.40.mlp.shared_experts.gate_up_proj": 4, "model.layers.40.self_attn.kv_a_proj_with_mqa": 4, "model.layers.40.self_attn.kv_b_proj": 4, "model.layers.40.self_attn.linear_gate": 4, "model.layers.40.self_attn.o_proj": 4, "model.layers.40.self_attn.q_a_proj": 4, "model.layers.40.self_attn.q_b_proj": 4, "model.layers.41.mlp.experts": 4, "model.layers.41.mlp.routed_expert_down_proj": 4, "model.layers.41.mlp.routed_expert_up_proj": 4, "model.layers.41.mlp.shared_experts.down_proj": 4, "model.layers.41.mlp.shared_experts.gate_up_proj": 4, "model.layers.41.self_attn.indexer.head_weight_projection": 4, "model.layers.41.self_attn.indexer.query_projection": 4, "model.layers.41.self_attn.indexer.token_key_projection": 4, "model.layers.41.self_attn.kv_a_proj_with_mqa": 4, "model.layers.41.self_attn.kv_b_proj": 4, "model.layers.41.self_attn.linear_gate": 4, "model.layers.41.self_attn.o_proj": 4, "model.layers.41.self_attn.q_a_proj": 4, "model.layers.41.self_attn.q_b_proj": 4, "visual.layers.0.self_attn.qkv": 8, "visual.layers.0.self_attn.o_proj": 8, "visual.layers.0.mlp.dense_h_to_4h": 8, "visual.layers.0.mlp.dense_4h_to_h": 8, "visual.layers.1.self_attn.qkv": 8, "visual.layers.1.self_attn.o_proj": 8, "visual.layers.1.mlp.dense_h_to_4h": 8, "visual.layers.1.mlp.dense_4h_to_h": 8, "visual.layers.2.self_attn.qkv": 8, "visual.layers.2.self_attn.o_proj": 8, "visual.layers.2.mlp.dense_h_to_4h": 8, "visual.layers.2.mlp.dense_4h_to_h": 8, "visual.layers.3.self_attn.qkv": 8, "visual.layers.3.self_attn.o_proj": 8, "visual.layers.3.mlp.dense_h_to_4h": 8, "visual.layers.3.mlp.dense_4h_to_h": 8, "visual.layers.4.self_attn.qkv": 8, "visual.layers.4.self_attn.o_proj": 8, "visual.layers.4.mlp.dense_h_to_4h": 8, "visual.layers.4.mlp.dense_4h_to_h": 8, "visual.layers.5.self_attn.qkv": 8, "visual.layers.5.self_attn.o_proj": 8, "visual.layers.5.mlp.dense_h_to_4h": 8, "visual.layers.5.mlp.dense_4h_to_h": 8, "visual.layers.6.self_attn.qkv": 8, "visual.layers.6.self_attn.o_proj": 8, "visual.layers.6.mlp.dense_h_to_4h": 8, "visual.layers.6.mlp.dense_4h_to_h": 8, "visual.layers.7.self_attn.qkv": 8, "visual.layers.7.self_attn.o_proj": 8, "visual.layers.7.mlp.dense_h_to_4h": 8, "visual.layers.7.mlp.dense_4h_to_h": 8, "visual.layers.8.self_attn.qkv": 8, "visual.layers.8.self_attn.o_proj": 8, "visual.layers.8.mlp.dense_h_to_4h": 8, "visual.layers.8.mlp.dense_4h_to_h": 8, "visual.layers.9.self_attn.qkv": 8, "visual.layers.9.self_attn.o_proj": 8, "visual.layers.9.mlp.dense_h_to_4h": 8, "visual.layers.9.mlp.dense_4h_to_h": 8, "visual.layers.10.self_attn.qkv": 8, "visual.layers.10.self_attn.o_proj": 8, "visual.layers.10.mlp.dense_h_to_4h": 8, "visual.layers.10.mlp.dense_4h_to_h": 8, "visual.layers.11.self_attn.qkv": 8, "visual.layers.11.self_attn.o_proj": 8, "visual.layers.11.mlp.dense_h_to_4h": 8, "visual.layers.11.mlp.dense_4h_to_h": 8, "visual.layers.12.self_attn.qkv": 8, "visual.layers.12.self_attn.o_proj": 8, "visual.layers.12.mlp.dense_h_to_4h": 8, "visual.layers.12.mlp.dense_4h_to_h": 8, "visual.layers.13.self_attn.qkv": 8, "visual.layers.13.self_attn.o_proj": 8, "visual.layers.13.mlp.dense_h_to_4h": 8, "visual.layers.13.mlp.dense_4h_to_h": 8, "visual.layers.14.self_attn.qkv": 8, "visual.layers.14.self_attn.o_proj": 8, "visual.layers.14.mlp.dense_h_to_4h": 8, "visual.layers.14.mlp.dense_4h_to_h": 8, "visual.layers.15.self_attn.qkv": 8, "visual.layers.15.self_attn.o_proj": 8, "visual.layers.15.mlp.dense_h_to_4h": 8, "visual.layers.15.mlp.dense_4h_to_h": 8, "visual.layers.16.self_attn.qkv": 8, "visual.layers.16.self_attn.o_proj": 8, "visual.layers.16.mlp.dense_h_to_4h": 8, "visual.layers.16.mlp.dense_4h_to_h": 8, "visual.layers.17.self_attn.qkv": 8, "visual.layers.17.self_attn.o_proj": 8, "visual.layers.17.mlp.dense_h_to_4h": 8, "visual.layers.17.mlp.dense_4h_to_h": 8, "visual.layers.18.self_attn.qkv": 8, "visual.layers.18.self_attn.o_proj": 8, "visual.layers.18.mlp.dense_h_to_4h": 8, "visual.layers.18.mlp.dense_4h_to_h": 8, "visual.layers.19.self_attn.qkv": 8, "visual.layers.19.self_attn.o_proj": 8, "visual.layers.19.mlp.dense_h_to_4h": 8, "visual.layers.19.mlp.dense_4h_to_h": 8, "visual.layers.20.self_attn.qkv": 8, "visual.layers.20.self_attn.o_proj": 8, "visual.layers.20.mlp.dense_h_to_4h": 8, "visual.layers.20.mlp.dense_4h_to_h": 8, "visual.layers.21.self_attn.qkv": 8, "visual.layers.21.self_attn.o_proj": 8, "visual.layers.21.mlp.dense_h_to_4h": 8, "visual.layers.21.mlp.dense_4h_to_h": 8, "visual.layers.22.self_attn.qkv": 8, "visual.layers.22.self_attn.o_proj": 8, "visual.layers.22.mlp.dense_h_to_4h": 8, "visual.layers.22.mlp.dense_4h_to_h": 8, "visual.layers.23.self_attn.qkv": 8, "visual.layers.23.self_attn.o_proj": 8, "visual.layers.23.mlp.dense_h_to_4h": 8, "visual.layers.23.mlp.dense_4h_to_h": 8, "visual.layers.24.self_attn.qkv": 8, "visual.layers.24.self_attn.o_proj": 8, "visual.layers.24.mlp.dense_h_to_4h": 8, "visual.layers.24.mlp.dense_4h_to_h": 8, "visual.layers.25.self_attn.qkv": 8, "visual.layers.25.self_attn.o_proj": 8, "visual.layers.25.mlp.dense_h_to_4h": 8, "visual.layers.25.mlp.dense_4h_to_h": 8, "visual.layers.26.self_attn.qkv": 8, "visual.layers.26.self_attn.o_proj": 8, "visual.layers.26.mlp.dense_h_to_4h": 8, "visual.layers.26.mlp.dense_4h_to_h": 8 } }, "modification_notice": "Modified by voodooquant from Tencent Hy4-flash. See NOTICE and LICENSE."}123version https://git-lfs.github.com/spec/v1oid sha256:9635a8aafc38909ac013a056ef4d0968485732cca33c56080aa7d5325f7043aesize 9011146752123version https://git-lfs.github.com/spec/v1oid sha256:6a81513f868f26754f67eac6fa80d42887ad31ed92d03263af0fa1f538fa891dsize 9010896896123version https://git-lfs.github.com/spec/v1oid sha256:f5f3985ef0ccd16be9d2343b512ccd0106a1669645a7f89d3de3cd1206d723a6size 9011425280123version https://git-lfs.github.com/spec/v1oid sha256:d5178aeffa5acfbd78879eed1af956d92b426dc24362c92b075594e1c19406fesize 901169152012345678910{ "bos_token_id": 120000, "do_sample": true, "eos_token_id": 120025, "pad_token_id": 120002, "temperature": 0.9, "top_k": -1, "top_p": 1, "transformers_version": "5.23.0"}123version https://git-lfs.github.com/spec/v1oid sha256:18e939f60018e7e88be784f1482653195440940831d34cf0a687e61c7dae3f95size 107693520123version https://git-lfs.github.com/spec/v1oid sha256:207ecfd8734cb55cbf9960c391e3f96cb66fb9bfded1aa742f0db8950b3c2192size 133843992123version https://git-lfs.github.com/spec/v1oid sha256:6b6b1c9a82aeec2fad44ef2b73145ef1ce3bd6c93a3ded6426fe42a4740f35dasize 134152192123version https://git-lfs.github.com/spec/v1oid sha256:f21e3637789ff8d0a6d0c31c7aba906bf8945f52eaa7f7fbe2a75ce67d700cfesize 134152192123version https://git-lfs.github.com/spec/v1oid sha256:fb3b209a352e9b4d675b45a9630bdd434c61e890e878b72275ac856111b65804size 134152192123version https://git-lfs.github.com/spec/v1oid sha256:61d520f6d62bda8beb2b8312c5b673d13f99f50b46205c914fc10f43d6399c54size 134152192123version https://git-lfs.github.com/spec/v1oid sha256:aeb5816f8cede4e9c9116fed0016f3cb3420d08e60eb5261d083b29d2bcafdefsize 132882432123version https://git-lfs.github.com/spec/v1oid sha256:e9b6d3281c7e9b381b7dfeac170c663260beaaaa63d13706c709c00056b3a294size 132878336123version https://git-lfs.github.com/spec/v1oid sha256:a1df37e9aca8d2fced8ddd469ef9a2dc2ffd0b47d82f23f939e6ab400cb384besize 132878336123version https://git-lfs.github.com/spec/v1oid sha256:3659b9667b55eaf35ade7e57d3d005d2d80136eaa99c53e3ee8a62e7c1842d84size 132878336123version https://git-lfs.github.com/spec/v1oid sha256:17ef8365bdf6f58ede414060825e23fb19120dba66da1dd93acc8dff8be43ea6size 132878336123version https://git-lfs.github.com/spec/v1oid sha256:41f34c4b3cf4d5da7c5620d618fd0fd972bb443d7ad1f091357797ec3d29a317size 132878336123version https://git-lfs.github.com/spec/v1oid sha256:b3f0b8f5e9f47a3b9f4ca9ad7055e1c28d8fc2d86e735102205e87f3648e08c0size 132878336123version https://git-lfs.github.com/spec/v1oid sha256:3af6facf646477c9b63452acd29f830d6f2f831146780e94b4755c7d0b4e8cd0size 132878336123version https://git-lfs.github.com/spec/v1oid sha256:1bfaafb745705abf00495754686e4187c1adf9cbbbf674491777e4230a0e4c5csize 132878336123version https://git-lfs.github.com/spec/v1oid sha256:25520d770eb0522a614c7a0a4b113f836e8a45f05caace501ca8bcb39a193754size 129826176123version https://git-lfs.github.com/spec/v1oid sha256:e66f3449a68c5c12fc0ad9f216671909aec0814b00badaaf3e1abc28aefe4b37size 32878592123version https://git-lfs.github.com/spec/v1oid sha256:112ed99e4204a6e03a73e9acfdb4fc7221cf64ea0f995316256414c6b8d6c465size 133697616123version https://git-lfs.github.com/spec/v1oid sha256:661c96c8e16fcdc8653a3209eaab84e1b0b38f4b2533d944caa8915af7e0a5a4size 134152192123version https://git-lfs.github.com/spec/v1oid sha256:adacc7f5ad1b4c8416e239e4170794fbe8a0154a6dbae5ef46323c36aac00b4dsize 134152192123version https://git-lfs.github.com/spec/v1oid sha256:8f4b083bc599393dcc1cb5f0b976c8b6739a27b3dd7ba528e015f8a85cc8e08fsize 134152192123version https://git-lfs.github.com/spec/v1oid sha256:18e109d83dfa08591d6cadac17f88a8b5996cb61327b12f307795590c70f9c7bsize 134148096123version https://git-lfs.github.com/spec/v1oid sha256:1e71b7bf3912d6ae4f7520e88091c9e2f006f17ecc90d6038a203a9f893a6176size 132878336123version https://git-lfs.github.com/spec/v1oid sha256:d2f7bbb2456277fa33fc78c29f0cbf5c9018f67514e83e6b8b2b3fe3116cc2d2size 132878336123version https://git-lfs.github.com/spec/v1oid sha256:793524b8c49fc0c3cdf19e4f782915c140bb01a3048320189cba31ceecf9d546size 132878336123version https://git-lfs.github.com/spec/v1oid sha256:8b0d122599654ba7f173c7ce4b8306116e2aca0dfa8051eec38250b9dd87bac1size 132878336123version https://git-lfs.github.com/spec/v1oid sha256:bf5a49f3177277cb46dfe9c72cc717b0e294cc0c3e150fe6c12dfc365646a869size 132878336123version https://git-lfs.github.com/spec/v1oid sha256:4e4ad0e26b4bbd4bedc97782f408fb6b8da102afed34fc13dd703be455875a62size 132878336123version https://git-lfs.github.com/spec/v1oid sha256:5c9096295546c00e6456b7888e76649a8aa5125b9b55a538e35f7393af5248bdsize 132878336123version https://git-lfs.github.com/spec/v1oid sha256:f3e8936476112af2a9fa8f137d852603bfe6e3b3aff0f4c7d90edbdb11930b4dsize 132878336123version https://git-lfs.github.com/spec/v1oid sha256:339013630b41e2c90aadea5bd2d793364731345cc30e1217b96cf1ee68eaa247size 132878336123version https://git-lfs.github.com/spec/v1oid sha256:d9406a25b612ed5d529a50d9c9952da8d4d28491dfb3b7dc3c2dc90eebbd0b9bsize 111344896123version https://git-lfs.github.com/spec/v1oid sha256:da13c451b70d42525b7df9d8a3f14c26151b80207b1136635680b1db8f75535dsize 37335040123version https://git-lfs.github.com/spec/v1oid sha256:cc813ac4b0d5b426065b67e0564d42d696abdae2a77e84f609fadd3d8e4845f8size 133697616123version https://git-lfs.github.com/spec/v1oid sha256:450a121aec6f961299f4ea605aea7a47346d155cfa272aa60a53fb9ad45e637asize 134152192.gitattributes+1
LICENSEAdded+245
NOTICEAdded+6
README.mdAdded+65
backbone-0000.safetensorsAdded+3
backbone-0001.safetensorsAdded+3
backbone-0002.safetensorsAdded+3
calibration.jsonAdded+297
chat_template.jinjaAdded+355
config.jsonAdded+1714
engram/engram-12.q4_0Added+3
engram/engram-2.q4_0Added+3
engram/engram-22.q4_0Added+3
engram/engram-32.q4_0Added+3
generation_config.jsonAdded+10
layer-00-0000.safetensorsAdded+3
layer-01-0000.safetensorsAdded+3
layer-01-0001.safetensorsAdded+3
layer-01-0002.safetensorsAdded+3
layer-01-0003.safetensorsAdded+3
layer-01-0004.safetensorsAdded+3
layer-01-0005.safetensorsAdded+3
layer-01-0006.safetensorsAdded+3
layer-01-0007.safetensorsAdded+3
layer-01-0008.safetensorsAdded+3
layer-01-0009.safetensorsAdded+3
layer-01-0010.safetensorsAdded+3
layer-01-0011.safetensorsAdded+3
layer-01-0012.safetensorsAdded+3
layer-01-0013.safetensorsAdded+3
layer-01-0014.safetensorsAdded+3
layer-01-0015.safetensorsAdded+3
layer-02-0000.safetensorsAdded+3
layer-02-0001.safetensorsAdded+3
layer-02-0002.safetensorsAdded+3
layer-02-0003.safetensorsAdded+3
layer-02-0004.safetensorsAdded+3
layer-02-0005.safetensorsAdded+3
layer-02-0006.safetensorsAdded+3
layer-02-0007.safetensorsAdded+3
layer-02-0008.safetensorsAdded+3
layer-02-0009.safetensorsAdded+3
layer-02-0010.safetensorsAdded+3
layer-02-0011.safetensorsAdded+3
layer-02-0012.safetensorsAdded+3
layer-02-0013.safetensorsAdded+3
layer-02-0014.safetensorsAdded+3
layer-02-0015.safetensorsAdded+3
layer-03-0000.safetensorsAdded+3
layer-03-0001.safetensorsAdded+3