Image-Text-to-Text
MLX
Safetensors
inkling2_loop
conversational
Mixture of Experts
nvfp4
mxfp8
4-bit precision
Instructions to use thoddnn/Inkling-2-Mini-nvfp4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use thoddnn/Inkling-2-Mini-nvfp4 with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("thoddnn/Inkling-2-Mini-nvfp4") config = load_config("thoddnn/Inkling-2-Mini-nvfp4") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use thoddnn/Inkling-2-Mini-nvfp4 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "thoddnn/Inkling-2-Mini-nvfp4"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "thoddnn/Inkling-2-Mini-nvfp4" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use thoddnn/Inkling-2-Mini-nvfp4 with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "thoddnn/Inkling-2-Mini-nvfp4"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default thoddnn/Inkling-2-Mini-nvfp4
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use thoddnn/Inkling-2-Mini-nvfp4 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "thoddnn/Inkling-2-Mini-nvfp4"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "thoddnn/Inkling-2-Mini-nvfp4" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Commit ·
df175e5
0
Parent(s):
Duplicate from nativ-community/Inkling-2-Mini-nvfp4
Browse filesCo-authored-by: Prince Canuma <prince-canuma@users.noreply.huggingface.co>
- .gitattributes +37 -0
- LICENSE +202 -0
- README.md +105 -0
- UPSTREAM_README.md +212 -0
- chat_template.jinja +137 -0
- checksums.json +98 -0
- config.json +855 -0
- conversion.json +12 -0
- generation_config.json +6 -0
- hf_quant_config.json +1255 -0
- model-00001-of-00004.safetensors +3 -0
- model-00002-of-00004.safetensors +3 -0
- model-00003-of-00004.safetensors +3 -0
- model-00004-of-00004.safetensors +3 -0
- model.safetensors.index.json +0 -0
- mtp.safetensors +3 -0
- processor_config.json +25 -0
- runtime/LICENSE +21 -0
- runtime/README.md +7 -0
- runtime/inkling2-mini.patch +621 -0
- runtime/mlx_vlm-0.8.0+inkling2mini-py3-none-any.whl +3 -0
- special_tokens_map.json +21 -0
- tiktoken/tokenizer.model +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +85 -0
- validation.json +46 -0
.gitattributes
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
runtime/mlx_vlm-0.8.0+inkling2mini-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright [yyyy] [name of copyright owner]
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
README.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: mlx
|
| 4 |
+
pipeline_tag: image-text-to-text
|
| 5 |
+
base_model: thinkingmachines/Inkling-2-Mini
|
| 6 |
+
tags:
|
| 7 |
+
- mlx
|
| 8 |
+
- conversational
|
| 9 |
+
- image-text-to-text
|
| 10 |
+
- moe
|
| 11 |
+
- nvfp4
|
| 12 |
+
- mxfp8
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Inkling 2 Mini — MLX
|
| 16 |
+
|
| 17 |
+
MLX conversion of [thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini), preserving its native mixed precision. The checkpoint accepts text and images and generates text.
|
| 18 |
+
|
| 19 |
+
The first 20 MoE layers retain NVFP4 expert weights; the last four retain MXFP8. Other parameters retain their original BF16/FP32 dtypes. The 24 physical decoder layers execute 48 layer visits through the model's three-pass middle loop. The original bundled DSpark draft is included as `mtp.safetensors`.
|
| 20 |
+
|
| 21 |
+
Target weights: **19.53 GB** across four shards. Bundled draft: **0.64 GB**. The upstream model recommends Apple silicon with 32 GB or more memory; longer contexts need additional memory.
|
| 22 |
+
|
| 23 |
+
## Required runtime
|
| 24 |
+
|
| 25 |
+
This release includes a patched MLX-VLM build with Inkling 2 Mini loop support. Use this build for the examples below; the upstream base revision did not yet support `inkling2_loop`.
|
| 26 |
+
|
| 27 |
+
```bash
|
| 28 |
+
python -m pip install --upgrade "https://huggingface.co/nativ-community/Inkling-2-Mini-nvfp4/resolve/main/runtime/mlx_vlm-0.8.0+inkling2mini-py3-none-any.whl"
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
The wheel is based on [MLX-VLM commit 392052b4439c](https://github.com/Blaizzy/mlx-vlm/tree/392052b4439cf027ab42674d9977f62bb3dfa056). Its source changes are available in [runtime/inkling2-mini.patch](runtime/inkling2-mini.patch). The wheel contains the Python runtime source, and its code retains the MLX-VLM license and upstream notices.
|
| 32 |
+
|
| 33 |
+
## Text generation
|
| 34 |
+
|
| 35 |
+
```python
|
| 36 |
+
from mlx_vlm import load, generate
|
| 37 |
+
from mlx_vlm.prompt_utils import apply_chat_template
|
| 38 |
+
|
| 39 |
+
model_id = "nativ-community/Inkling-2-Mini-nvfp4"
|
| 40 |
+
model, processor = load(model_id)
|
| 41 |
+
prompt = apply_chat_template(
|
| 42 |
+
processor, model.config,
|
| 43 |
+
"Explain in one sentence why ice floats on water.",
|
| 44 |
+
reasoning_effort="none",
|
| 45 |
+
)
|
| 46 |
+
result = generate(
|
| 47 |
+
model, processor, prompt,
|
| 48 |
+
max_tokens=256, temperature=0, prefill_step_size=128,
|
| 49 |
+
)
|
| 50 |
+
print(result.text)
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
The model may still emit reasoning when `reasoning_effort="none"`. Its message tokens distinguish reasoning from the final answer; stripping all special tokens concatenates these sections.
|
| 54 |
+
|
| 55 |
+
## Image input
|
| 56 |
+
|
| 57 |
+
```python
|
| 58 |
+
prompt = apply_chat_template(
|
| 59 |
+
processor, model.config, "Describe this image.",
|
| 60 |
+
num_images=1, reasoning_effort="none",
|
| 61 |
+
)
|
| 62 |
+
result = generate(
|
| 63 |
+
model, processor, prompt, image=["image.png"],
|
| 64 |
+
max_tokens=256, temperature=0, prefill_step_size=128,
|
| 65 |
+
)
|
| 66 |
+
print(result.text)
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
## Bundled speculative draft
|
| 70 |
+
|
| 71 |
+
```python
|
| 72 |
+
from mlx_vlm.speculative.drafters import load_drafter
|
| 73 |
+
|
| 74 |
+
draft, kind = load_drafter(model_id)
|
| 75 |
+
result = generate(
|
| 76 |
+
model, processor, prompt, image=["image.png"],
|
| 77 |
+
draft_model=draft, draft_kind=kind,
|
| 78 |
+
max_tokens=256, temperature=0, prefill_step_size=128,
|
| 79 |
+
)
|
| 80 |
+
print(result.text)
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
## Validation and provenance
|
| 84 |
+
|
| 85 |
+
- Strict checkpoint reload succeeded; all **1,271 target tensors** are exactly equal to the sanitized source tensors, including packed weights, scales, and floating-point parameters.
|
| 86 |
+
- **67 targeted tests passed**, covering native and converted loading, mixed precision, loop caches, image inputs, and speculative generation/reset.
|
| 87 |
+
- The loop message gates and message attention were compared with the upstream Transformers implementation on small FP32 tensors; maximum absolute errors were below 4e-7.
|
| 88 |
+
- Real-weight smoke checks on an Apple M3 Ultra correctly answered arithmetic, explained ice buoyancy, and recognized a red circle. Standard and bundled-draft arithmetic generation produced the same 45 greedy tokens.
|
| 89 |
+
|
| 90 |
+
These checks establish conversion integrity and basic inference behavior. They do not establish full-model numerical parity with the original runtime or benchmark accuracy. MLX-VLM uses floating-point activations rather than the reference runtime's activation quantization. The advertised 1M context window was not exercised in these checks.
|
| 91 |
+
|
| 92 |
+
Source revision: [`6e7c8248f75265bdd4fbab5273304243b5d8c2cb`](https://huggingface.co/thinkingmachines/Inkling-2-Mini/tree/6e7c8248f75265bdd4fbab5273304243b5d8c2cb). See [conversion.json](conversion.json), [validation.json](validation.json), and the [upstream model card](UPSTREAM_README.md) for architecture, training, evaluations, limitations, and licensing.
|
| 93 |
+
|
| 94 |
+
## Reproduce the conversion
|
| 95 |
+
|
| 96 |
+
With the included runtime installed:
|
| 97 |
+
|
| 98 |
+
```bash
|
| 99 |
+
python -m mlx_vlm convert \
|
| 100 |
+
--hf-path thinkingmachines/Inkling-2-Mini \
|
| 101 |
+
--revision 6e7c8248f75265bdd4fbab5273304243b5d8c2cb \
|
| 102 |
+
--mlx-path Inkling-2-Mini-nvfp4
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
Copy the original `mtp.safetensors` into the output folder to retain the bundled draft. This conversion does not requantize the source experts.
|
UPSTREAM_README.md
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
license_link: https://www.apache.org/licenses/LICENSE-2.0
|
| 4 |
+
pipeline_tag: image-text-to-text
|
| 5 |
+
tags:
|
| 6 |
+
- conversational
|
| 7 |
+
- image-text-to-text
|
| 8 |
+
- moe
|
| 9 |
+
library_name: transformers
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Inkling 2 Mini
|
| 13 |
+
|
| 14 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png" style="display: block;margin-left: auto;margin-right: auto;width: 30%;">
|
| 15 |
+
|
| 16 |
+
<p align="center">
|
| 17 |
+
<a href="https://tinker.thinkingmachines.ai/playground">Playground</a> |
|
| 18 |
+
<a href="https://github.com/thinking-machines-lab/tinker-cookbook">Tinker Cookbook</a>
|
| 19 |
+
</p>
|
| 20 |
+
|
| 21 |
+
## 1. General Information
|
| 22 |
+
|
| 23 |
+
Inkling 2 Mini is a general-purpose multimodal model that accepts text and image inputs and generates text outputs. It is intended for use in English and other languages, and across multiple coding languages. The model is designed to be used by developers building AI-powered applications, including agentic and tool-use systems, coding assistants, chatbots, and retrieval-augmented generation systems, and is suitable for general-purpose conversational use, instruction-following, and other natural language and visual tasks. It is released with open weights to support research, fine-tuning and integration into third-party products by downstream developers.
|
| 24 |
+
|
| 25 |
+
**Languages:** English, general multilingual support
|
| 26 |
+
|
| 27 |
+
**Model provider:** Thinking Machines Lab, Inc.
|
| 28 |
+
|
| 29 |
+
**Date of release:** November 20, 2026
|
| 30 |
+
|
| 31 |
+
**License:** Apache 2.0
|
| 32 |
+
|
| 33 |
+
[Model Acceptable Use Policy](https://thinkingmachines.ai/model-acceptable-use-policy/)
|
| 34 |
+
|
| 35 |
+
## 2. Getting Started
|
| 36 |
+
|
| 37 |
+
The weights are available for download through Hugging Face [here](https://huggingface.co/thinkingmachines/Inkling-2-Mini).
|
| 38 |
+
|
| 39 |
+
Developers can also access the model using the Tinker fine-tuning platform, which provides API access.
|
| 40 |
+
|
| 41 |
+
* For accessing our model via Tinker, you can get started by referring to the Tinker Cookbook [here](https://github.com/thinking-machines-lab/tinker-cookbook), and installing the tml-renderers package [here](https://pypi.org/project/tml-renderers/).
|
| 42 |
+
* Tinker playground also provides inference-only access to the model [here](https://tinker.thinkingmachines.ai/playground).
|
| 43 |
+
|
| 44 |
+
### Required hardware
|
| 45 |
+
|
| 46 |
+
The model is distributed as a single checkpoint of about 20GB, in mixed NVFP4 and MXFP8 precisions.
|
| 47 |
+
|
| 48 |
+
Given its small size, it is possible to run this checkpoint on local AI compute for inference. We support:
|
| 49 |
+
|
| 50 |
+
* 1x NVIDIA DGX Spark
|
| 51 |
+
* Apple silicon devices with 32GB or more memory (MacBooks, Mac minis and Studios)
|
| 52 |
+
* Other GPUs and platforms are possible, with 32GB or more of VRAM recommended
|
| 53 |
+
|
| 54 |
+
### Required software
|
| 55 |
+
|
| 56 |
+
Inkling 2 Mini supports local inference using the following frameworks, along with their dependency libraries:
|
| 57 |
+
|
| 58 |
+
* [Hugging Face](https://hf.co/blog/inkling2mini)
|
| 59 |
+
* [SGLang](https://docs.sglang.io/cookbook/autoregressive/ThinkingMachines/Inkling-2-Mini)
|
| 60 |
+
* [vLLM](https://recipes.vllm.ai/thinkingmachines/Inkling-2-Mini)
|
| 61 |
+
* [TokenSpeed](https://lightseek.org/tokenspeed/recipes/models#inkling-2-mini)
|
| 62 |
+
* NVIDIA Dynamo
|
| 63 |
+
* [Unsloth](https://unsloth.ai/docs/inkling-2-mini), including quantized GGUF versions
|
| 64 |
+
* llama.cpp, for quantized GGUF versions
|
| 65 |
+
* Ollama and Exo Labs, on Apple silicon
|
| 66 |
+
|
| 67 |
+
Inkling 2 Mini can also be post-trained with:
|
| 68 |
+
|
| 69 |
+
* [Miles](https://miles.radixark.com/docs/models/thinkingmachines/inkling-2-mini)
|
| 70 |
+
* [SkyRL](https://docs.skyrl.ai/docs/models/inkling2)
|
| 71 |
+
|
| 72 |
+
## 3. Model Properties
|
| 73 |
+
|
| 74 |
+
### Model type
|
| 75 |
+
|
| 76 |
+
Multimodal autoregressive looped transformer
|
| 77 |
+
|
| 78 |
+
### Architecture type
|
| 79 |
+
|
| 80 |
+
A 24-layer decoder-only transformer with sparse Mixture-of-Experts (MoE) feed-forward layers. The middle 12 layers run three times with shared weights, giving 48 layer applications per token from 24 layers of weights. In each layer, each token is routed to 8 of 128 experts. Attention is a hybrid of local and global layers. The model is natively multimodal – images are encoded via a vision transformer – with image and text inputs projected into a shared hidden space and processed jointly by the decoder.
|
| 81 |
+
|
| 82 |
+
### Parameters
|
| 83 |
+
|
| 84 |
+
26.4B, 3.4B active
|
| 85 |
+
|
| 86 |
+
Note: each extra pass through the looped layers adds about 1.0B effective active parameters. Since the model runs with three passes, there are 5.4B effective active parameters per token.
|
| 87 |
+
|
| 88 |
+
### Numerics support
|
| 89 |
+
|
| 90 |
+
NVFP4 and MXFP8
|
| 91 |
+
|
| 92 |
+
### Input modalities
|
| 93 |
+
|
| 94 |
+
* Text: UTF-8 encoded text
|
| 95 |
+
* Image: Any pixel-based image input. For optimal performance, each image dimension should be between 40px to 4096px.
|
| 96 |
+
|
| 97 |
+
Inkling 2 Mini supports a context window of up to 1M tokens.
|
| 98 |
+
|
| 99 |
+
### Output modalities
|
| 100 |
+
|
| 101 |
+
Text
|
| 102 |
+
|
| 103 |
+
## 4. Training
|
| 104 |
+
|
| 105 |
+
Training data includes a broad variety of content types, including text, images, video. Training data for the model was drawn from publicly available sources, acquired from third-parties, generated internally, or synthetically generated or augmented. Publicly available data includes content from the public internet and publicly accessible repositories.
|
| 106 |
+
|
| 107 |
+
Data curation includes cleaning, processing, and modifying datasets. These processing steps, which vary by data type, may include deduplication and filtering to remove junk or other low-quality data, or to advance safety or other objectives.
|
| 108 |
+
|
| 109 |
+
## 5. Evaluations
|
| 110 |
+
|
| 111 |
+
<table>
|
| 112 |
+
<thead>
|
| 113 |
+
<tr><th style="border-right-color:rgba(128,128,128,0.45)"></th><th style="border-right-color:rgba(128,128,128,0.45)">Inkling 2 Mini</th><th style="font-weight:400">Gemma 4 31B</th><th style="font-weight:400">Muse Glimmer</th><th style="font-weight:400">Qwen3.8-27B</th><th style="font-weight:400">Nemotron 3.5 Super VL</th></tr>
|
| 114 |
+
</thead>
|
| 115 |
+
<tbody>
|
| 116 |
+
<tr><td style="background-color:rgba(128,128,128,0.1);font-weight:600;border-right-color:rgba(128,128,128,0.45)">Model Info</td><td style="background-color:rgba(128,128,128,0.1);border-right-color:rgba(128,128,128,0.45)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td></tr>
|
| 117 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">Params (B)<br><span style="font-size:11px;opacity:0.7">activated / total</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)">5/26</td><td style="text-align:center;vertical-align:middle">31/31</td><td style="text-align:center;vertical-align:middle">30/30</td><td style="text-align:center;vertical-align:middle">27/27</td><td style="text-align:center;vertical-align:middle">12/125</td></tr>
|
| 118 |
+
<tr><td style="background-color:rgba(128,128,128,0.1);font-weight:600;border-right-color:rgba(128,128,128,0.45)">Third Party Index</td><td style="background-color:rgba(128,128,128,0.1);border-right-color:rgba(128,128,128,0.45)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td></tr>
|
| 119 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">AA Index (v5.0)</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">20.1</span></td><td style="text-align:center">4.4</td><td style="text-align:center">6.3</td><td style="text-align:center"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">20.1</span></td><td style="text-align:center">13.6</td></tr>
|
| 120 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">Vals Index (v2.2)</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">46.5%</span></td><td style="text-align:center">–</td><td style="text-align:center">–</td><td style="text-align:center">–</td><td style="text-align:center"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">29.8%</span></td></tr>
|
| 121 |
+
<tr><td style="background-color:rgba(128,128,128,0.1);font-weight:600;border-right-color:rgba(128,128,128,0.45)">Coding and Autoresearch</td><td style="background-color:rgba(128,128,128,0.1);border-right-color:rgba(128,128,128,0.45)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td></tr>
|
| 122 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">FrontierCode v2.0<br><span style="font-size:11px;opacity:0.7">stirrup v0.2.1</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">15.1%</span></td><td style="text-align:center;vertical-align:middle">0.0%</td><td style="text-align:center;vertical-align:middle">1.5%</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">14.9%</span></td><td style="text-align:center;vertical-align:middle">6.1%</td></tr>
|
| 123 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">DeepSWE v1.1<br><span style="font-size:11px;opacity:0.7">mini-swe-agent v2.4.6</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">48.2%</span></td><td style="text-align:center;vertical-align:middle">0.3%</td><td style="text-align:center;vertical-align:middle">4.4%</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">42.2%</span></td><td style="text-align:center;vertical-align:middle">24.7%</td></tr>
|
| 124 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">Terminal Bench v4.0<br><span style="font-size:11px;opacity:0.7">mini-swe-agent v2.4.6</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">5.6%</span></td><td style="text-align:center;vertical-align:middle">0.0%</td><td style="text-align:center;vertical-align:middle">0.5%</td><td style="text-align:center;vertical-align:middle"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">5.6%</span></td><td style="text-align:center;vertical-align:middle">0.0%</td></tr>
|
| 125 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">Terminal Bench v2.1<br><span style="font-size:11px;opacity:0.7">Inkling 2 Mini in pi v0.83.0</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">71.6%</span></td><td style="text-align:center;vertical-align:middle">43.4%</td><td style="text-align:center;vertical-align:middle">51.7%</td><td style="text-align:center;vertical-align:middle"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">73.0%</span></td><td style="text-align:center;vertical-align:middle">60.7%</td></tr>
|
| 126 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">SWEBench Pro v2 (Hard)<br><span style="font-size:11px;opacity:0.7">mini-swe-agent v2.4.6</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">77.9%</span></td><td style="text-align:center;vertical-align:middle">14.2%</td><td style="text-align:center;vertical-align:middle">44.3%</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">73.8%</span></td><td style="text-align:center;vertical-align:middle">44.1%</td></tr>
|
| 127 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">SWEBench Multilingual<br><span style="font-size:11px;opacity:0.7">Inkling 2 Mini with bash only</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">73.7%</span></td><td style="text-align:center;vertical-align:middle">43.0%</td><td style="text-align:center;vertical-align:middle">66.9%</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">70.0%</span></td><td style="text-align:center;vertical-align:middle">67.7%</td></tr>
|
| 128 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">SWEBench Verified<br><span style="font-size:11px;opacity:0.7">bash only</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">79.2%</span></td><td style="text-align:center;vertical-align:middle">46.1%</td><td style="text-align:center;vertical-align:middle">76.0%</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">77.8%</span></td><td style="text-align:center;vertical-align:middle">71.1%</td></tr>
|
| 129 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">Vibe Code Bench v1.1<br><span style="font-size:11px;opacity:0.7">openhands (vals)</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">77.9%</span></td><td style="text-align:center;vertical-align:middle">–</td><td style="text-align:center;vertical-align:middle">–</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">64.9%</span></td><td style="text-align:center;vertical-align:middle">3.5%</td></tr>
|
| 130 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">PMPP-Hard (AUC, 0–10h)<br><span style="font-size:11px;opacity:0.7">pi v0.83.0</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">455.82</span></td><td style="text-align:center;vertical-align:middle">–</td><td style="text-align:center;vertical-align:middle">–</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">262.50</span></td><td style="text-align:center;vertical-align:middle">–</td></tr>
|
| 131 |
+
<tr><td style="background-color:rgba(128,128,128,0.1);font-weight:600;border-right-color:rgba(128,128,128,0.45)">Agentic Search, Tool Use, and Knowledge Work</td><td style="background-color:rgba(128,128,128,0.1);border-right-color:rgba(128,128,128,0.45)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td></tr>
|
| 132 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">BrowseComp<br><span style="font-size:11px;opacity:0.7">Inkling 2 Mini with compaction</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">79.0%</span></td><td style="text-align:center;vertical-align:middle">37.0%</td><td style="text-align:center;vertical-align:middle">63.9%</td><td style="text-align:center;vertical-align:middle">61.6%</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">78.9%</span></td></tr>
|
| 133 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">DeepSearchQA<br><span style="font-size:11px;opacity:0.7">Inkling 2 Mini with compaction</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">85.3%</span></td><td style="text-align:center;vertical-align:middle">61.7%</td><td style="text-align:center;vertical-align:middle">74.6%</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">79.7%</span></td><td style="text-align:center;vertical-align:middle">77.7%</td></tr>
|
| 134 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">MCP Atlas<br><span style="font-size:11px;opacity:0.7">Public</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">82.7%</span></td><td style="text-align:center;vertical-align:middle">54.2%</td><td style="text-align:center;vertical-align:middle">75.5%</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">77.3%</span></td><td style="text-align:center;vertical-align:middle">67.7%</td></tr>
|
| 135 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">AA-Briefcase v1.1</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">1263</span></td><td style="text-align:center">369</td><td style="text-align:center">478</td><td style="text-align:center"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">1391</span></td><td style="text-align:center">999</td></tr>
|
| 136 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">GDPVal-AA v2.1</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">1319</span></td><td style="text-align:center">627</td><td style="text-align:center">792</td><td style="text-align:center"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">1427</span></td><td style="text-align:center">1162</td></tr>
|
| 137 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">JobBench</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">49.6%</span></td><td style="text-align:center">8.2%</td><td style="text-align:center">16.1%</td><td style="text-align:center">33.4%</td><td style="text-align:center"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">36.5%</span></td></tr>
|
| 138 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">AutomationBench-AA v1.0.6</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">41.8%</span></td><td style="text-align:center">4.9%</td><td style="text-align:center">6.8%</td><td style="text-align:center"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">48.2%</span></td><td style="text-align:center">14.8%</td></tr>
|
| 139 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">EnterpriseOps-Gym</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">42.0%</span></td><td style="text-align:center">28.4%</td><td style="text-align:center">34.7%</td><td style="text-align:center"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">44.2%</span></td><td style="text-align:center">28.1%</td></tr>
|
| 140 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">Vals Finance Index</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">50.1%</span></td><td style="text-align:center">–</td><td style="text-align:center">–</td><td style="text-align:center">–</td><td style="text-align:center"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">41.0%</span></td></tr>
|
| 141 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">AA-AnalystAgent</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">46.3%</span></td><td style="text-align:center">–</td><td style="text-align:center"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">20.0%</span></td><td style="text-align:center">–</td><td style="text-align:center">–</td></tr>
|
| 142 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">Diligence Bench<br><span style="font-size:11px;opacity:0.7">Best harness</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">48.6%</span></td><td style="text-align:center;vertical-align:middle">–</td><td style="text-align:center;vertical-align:middle">40.9%</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">46.4%</span></td><td style="text-align:center;vertical-align:middle">45.0%</td></tr>
|
| 143 |
+
<tr><td style="background-color:rgba(128,128,128,0.1);font-weight:600;border-right-color:rgba(128,128,128,0.45)">Vision Interpretation and Creation</td><td style="background-color:rgba(128,128,128,0.1);border-right-color:rgba(128,128,128,0.45)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td></tr>
|
| 144 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">GDP.pdf</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">16.8%</span></td><td style="text-align:center">6.0%</td><td style="text-align:center">11.8%</td><td style="text-align:center"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">16.4%</span></td><td style="text-align:center">8.0%</td></tr>
|
| 145 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">PerceptionBench</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">57.5%</span></td><td style="text-align:center">40.7%</td><td style="text-align:center">42.8%</td><td style="text-align:center"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">52.4%</span></td><td style="text-align:center">36.8%</td></tr>
|
| 146 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">MMMU Pro<br><span style="font-size:11px;opacity:0.7">Standard 10</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">74.9%</span></td><td style="text-align:center;vertical-align:middle">73.4%</td><td style="text-align:center;vertical-align:middle">74.3%</td><td style="text-align:center;vertical-align:middle"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">76.3%</span></td><td style="text-align:center;vertical-align:middle">72.3%</td></tr>
|
| 147 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">OmniDocBench v1.6</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">92.8%</span></td><td style="text-align:center">82.5%</td><td style="text-align:center">90.4%</td><td style="text-align:center"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">91.5%</span></td><td style="text-align:center">77.9%</td></tr>
|
| 148 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">ScreenSpot Pro<br><span style="font-size:11px;opacity:0.7">original / with Python</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">76.5/87.7%</span></td><td style="text-align:center;vertical-align:middle">5.9%/–</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">75.4%/–</span></td><td style="text-align:center;vertical-align:middle">57.6/78.9%</td><td style="text-align:center;vertical-align:middle">43.5%/–</td></tr>
|
| 149 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">Chartography<br><span style="font-size:11px;opacity:0.7">original / with Python</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">22.1/72.5%</span></td><td style="text-align:center;vertical-align:middle">12.0/11.8%</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">17.4/25.1%</span></td><td style="text-align:center;vertical-align:middle">12.2/52.1%</td><td style="text-align:center;vertical-align:middle">9.7/29.3%</td></tr>
|
| 150 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">ZeroBench (main)<br><span style="font-size:11px;opacity:0.7">original / with Python</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">17.0/34.0%</span></td><td style="text-align:center;vertical-align:middle">9.0/12.0%</td><td style="text-align:center;vertical-align:middle">9.0/17.0%</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">12.0%/–</span></td><td style="text-align:center;vertical-align:middle">11.0/12.0%</td></tr>
|
| 151 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">MuirBench</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">77.5%</span></td><td style="text-align:center">72.3%</td><td style="text-align:center"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">77.6%</span></td><td style="text-align:center">65.9%</td><td style="text-align:center">72.7%</td></tr>
|
| 152 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">BVB</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">68.4%</span></td><td style="text-align:center">47.0%</td><td style="text-align:center">50.5%</td><td style="text-align:center"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">70.7%</span></td><td style="text-align:center">52.1%</td></tr>
|
| 153 |
+
<tr><td style="background-color:rgba(128,128,128,0.1);font-weight:600;border-right-color:rgba(128,128,128,0.45)">Reasoning, Knowledge, and Epistemics</td><td style="background-color:rgba(128,128,128,0.1);border-right-color:rgba(128,128,128,0.45)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td></tr>
|
| 154 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">HLE-Diamond</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">15.2%</span></td><td style="text-align:center">7.2%</td><td style="text-align:center">9.1%</td><td style="text-align:center"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">15.3%</span></td><td style="text-align:center">8.8%</td></tr>
|
| 155 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">CritPt v2<br><span style="font-size:11px;opacity:0.7">Full / Hard</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">31.4/17.0%</span></td><td style="text-align:center;vertical-align:middle">–/4.0%</td><td style="text-align:center;vertical-align:middle">–/7.0%</td><td style="text-align:center;vertical-align:middle">10.6/4.0%</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">36.9/13.5%</span></td></tr>
|
| 156 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">Apex 2025</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">34.4%</span></td><td style="text-align:center">5.2%</td><td style="text-align:center">4.2%</td><td style="text-align:center">18.8%</td><td style="text-align:center"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">22.9%</span></td></tr>
|
| 157 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">ARC-AGI<br><span style="font-size:11px;opacity:0.7">v1 / v2</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">84.5/49.3%</span></td><td style="text-align:center;vertical-align:middle">–</td><td style="text-align:center;vertical-align:middle">–</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">87.5/42.4%</span></td><td style="text-align:center;vertical-align:middle">22.7/1.5%</td></tr>
|
| 158 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">LongBench v2</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">66.9%</span></td><td style="text-align:center">52.9%</td><td style="text-align:center">33.1%</td><td style="text-align:center">52.3%</td><td style="text-align:center"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">62.1%</span></td></tr>
|
| 159 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">GraphWalks BFS<br><span style="font-size:11px;opacity:0.7">256K</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">69.7%</span></td><td style="text-align:center;vertical-align:middle">–</td><td style="text-align:center;vertical-align:middle">–</td><td style="text-align:center;vertical-align:middle">50.4%</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">63.3%</span></td></tr>
|
| 160 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">MRCR v2<br><span style="font-size:11px;opacity:0.7">8-needle 256K–512K</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">46.4%</span></td><td style="text-align:center;vertical-align:middle">–</td><td style="text-align:center;vertical-align:middle">–</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">38.0%</span></td><td style="text-align:center;vertical-align:middle">5.7%</td></tr>
|
| 161 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">AA-Omniscience v1.1<br><span style="font-size:11px;opacity:0.7">score</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)">-8.6</td><td style="text-align:center;vertical-align:middle">-48.5</td><td style="text-align:center;vertical-align:middle">-32.2</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">-6.4</span></td><td style="text-align:center;vertical-align:middle"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">-2.9</span></td></tr>
|
| 162 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">AA-Omniscience v1.1<br><span style="font-size:11px;opacity:0.7">non-hallucination rate</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)">63.4%</td><td style="text-align:center;vertical-align:middle">14.5%</td><td style="text-align:center;vertical-align:middle">16.4%</td><td style="text-align:center;vertical-align:middle"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">71.4%</span></td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">69.5%</span></td></tr>
|
| 163 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">ComplexConstraints v1.1<br><span style="font-size:11px;opacity:0.7">openhands v1.45.0</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">33.4%</span></td><td style="text-align:center;vertical-align:middle">31.6%</td><td style="text-align:center;vertical-align:middle"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">35.6%</span></td><td style="text-align:center;vertical-align:middle">30.1%</td><td style="text-align:center;vertical-align:middle">30.1%</td></tr>
|
| 164 |
+
<tr><td style="background-color:rgba(128,128,128,0.1);font-weight:600;border-right-color:rgba(128,128,128,0.45)">Safety and Alignment</td><td style="background-color:rgba(128,128,128,0.1);border-right-color:rgba(128,128,128,0.45)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td><td style="background-color:rgba(128,128,128,0.1)"></td></tr>
|
| 165 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">FORTRESS (adversarial)<br><span style="font-size:11px;opacity:0.7">Public</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">89.5%</span></td><td style="text-align:center;vertical-align:middle">67.8%</td><td style="text-align:center;vertical-align:middle"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">90.3%</span></td><td style="text-align:center;vertical-align:middle">78.8%</td><td style="text-align:center;vertical-align:middle">79.6%</td></tr>
|
| 166 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45);vertical-align:middle">FORTRESS (benign)<br><span style="font-size:11px;opacity:0.7">Public</span></td><td style="text-align:center;vertical-align:middle;border-right-color:rgba(128,128,128,0.45)">96.4%</td><td style="text-align:center;vertical-align:middle"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">97.6%</span></td><td style="text-align:center;vertical-align:middle">89.1%</td><td style="text-align:center;vertical-align:middle"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">97.8%</span></td><td style="text-align:center;vertical-align:middle">92.7%</td></tr>
|
| 167 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">StrongREJECT (none)</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)">97.8%</td><td style="text-align:center">98.1%</td><td style="text-align:center"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">99.0%</span></td><td style="text-align:center"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">99.0%</span></td><td style="text-align:center"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">99.4%</span></td></tr>
|
| 168 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">Misbehavior (Internal) ↓</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">9.8%</span></td><td style="text-align:center"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">27.6%</span></td><td style="text-align:center">46.4%</td><td style="text-align:center">57.7%</td><td style="text-align:center">52.8%</td></tr>
|
| 169 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">Covert misbehavior (Internal) ↓</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">8.3%</span></td><td style="text-align:center"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">24.3%</span></td><td style="text-align:center">45.6%</td><td style="text-align:center">33.2%</td><td style="text-align:center">43.4%</td></tr>
|
| 170 |
+
<tr style="white-space:nowrap"><td style="border-right-color:rgba(128,128,128,0.45)">Destructive actions (Internal) ↓</td><td style="text-align:center;border-right-color:rgba(128,128,128,0.45)"><span title="Best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.75);color:#282828;font-weight:600">10.2%</span></td><td style="text-align:center">75.8%</td><td style="text-align:center">68.8%</td><td style="text-align:center"><span title="Second-best reported score in this row" style="display:block;margin:0 -4px;padding:2px 4px;border-radius:3px;background-color:rgba(255,206,82,0.28);color:inherit">35.2%</span></td><td style="text-align:center">65.6%</td></tr>
|
| 171 |
+
</tbody>
|
| 172 |
+
</table>
|
| 173 |
+
|
| 174 |
+
<p align="center"><span style="white-space:nowrap"><span style="background-color:rgba(255,206,82,0.75);color:#282828;border-radius:3px;padding:0.1em 0.3em;font-weight:600">Best reported score</span> in each row (lowest where lower is better); equal displayed scores tie</span> <span style="white-space:nowrap"><span style="background-color:rgba(255,206,82,0.28);color:inherit;border-radius:3px;padding:0.1em 0.3em">Second-best reported score</span> in each row; none when first place is tied</span></p>
|
| 175 |
+
|
| 176 |
+
## 6. Safety
|
| 177 |
+
|
| 178 |
+
We conducted safety evaluations ahead of release, spanning both everyday human-AI interaction and dangerous-capability testing. Because Inkling 2 Mini is multimodal, we paid attention to whether safety behavior held consistently across text and image inputs. We applied mitigations to reduce risks before release, including an extra phase of alignment training using on-policy distillation, similarly to Inkling 2 Small.
|
| 179 |
+
|
| 180 |
+
For everyday use, we evaluated sycophancy and how the model handles requests involving suicide, self-harm and eating disorders, including whether it encourages harm or affirms false beliefs. We also assessed whether the model refuses genuinely harmful requests without over-refusing benign ones. For CBRN and cyber, we assessed knowledge and procedural uplift through internal evaluations and refusal-suppressed variants intended to estimate latent capability with safeguards removed. For loss of control, we evaluated agentic capability, strategic deception, and sabotage potential, benchmarked against public frontier models, and found the model materially below frontier capabilities.
|
| 181 |
+
|
| 182 |
+
Inkling 2 Mini is the first looped transformer we have released, so we also studied how looping affects monitorability: whether we can still oversee the model by reading its chain of thought. Looping lets the model do more computation without reasoning in visible tokens. Inkling 2 Mini has very little controllability over its chain of thought, and was unable to perform covert side tasks in realistic agentic environments. Further experiments on the effect of looping on monitorability are described in our [blog post](https://thinkingmachines.ai/news/inkling-2-mini/).
|
| 183 |
+
|
| 184 |
+
Across all areas, we concluded that Inkling 2 Mini does not give material uplift beyond what is already available from open-weights models.
|
| 185 |
+
|
| 186 |
+
## 7. Bias, risks and limitations
|
| 187 |
+
|
| 188 |
+
Inkling 2 Mini may exhibit general limitations common to foundation models, including hallucination (generating plausible but factually incorrect or unsupported content), occasional failures to follow instructions precisely, and degraded performance in long multi-turn conversations. As with other models trained on web-derived and synthetic data, it may reflect biases present in its training data, including demographic, cultural or linguistic biases, and may perform unevenly across languages, dialects or subject domains that were less represented during training.
|
| 189 |
+
|
| 190 |
+
Inkling 2 Mini’s knowledge is limited to information available as of its training cutoff, and it may not reflect events or changes that occurred afterward.
|
| 191 |
+
|
| 192 |
+
Inkling 2 Mini is a small model built to run on local hardware, and some limitations are specific to it:
|
| 193 |
+
|
| 194 |
+
* Knowledge and factual accuracy. It is less capable than Inkling 2 Small across most of our evaluations, with the largest gaps on factual recall and knowledge-heavy questions. It is more likely than larger models to state incorrect information with confidence.
|
| 195 |
+
* Repetitive reasoning. In internal testing the model sometimes became stuck in long reasoning loops, or repeatedly re-checked its own work without making progress, particularly when debugging code. We recommend setting limits on output tokens and agent turns.
|
| 196 |
+
* Agentic reliability. When using tools, it is less reliable than larger models at following detailed instructions and project conventions. It may take destructive actions, such as deleting or overwriting files, without confirmation, and may not report the outcome of its work accurately.
|
| 197 |
+
* Languages other than English. Output quality can be lower outside English. In testing in Chinese we observed clipped phrasing and mixed languages.
|
| 198 |
+
* Sensitive topics. The model can respond with more caution than the situation calls for when a conversation touches on mental health.
|
| 199 |
+
* Reasoning and compute. Setting reasoning effort to its minimum does not fully disable reasoning. Because the middle layers run three times, compute per token is higher than the active-parameter count alone suggests.
|
| 200 |
+
* Local performance. Support for looped models in local runtimes is new, and speed varies by runtime and hardware.
|
| 201 |
+
|
| 202 |
+
We recommend that downstream developers and deployers:
|
| 203 |
+
|
| 204 |
+
* Apply appropriate human oversight and review for outputs used in high-stakes or safety-critical contexts, rather than relying on Inkling 2 Mini’s outputs without verification.
|
| 205 |
+
* Run agentic workloads in a sandbox, and require confirmation before destructive or irreversible actions.
|
| 206 |
+
* Conduct their own evaluation of Inkling 2 Mini’s performance, safety and fairness for their specific use case, language and population prior to deployment, particularly for applications involving vulnerable groups.
|
| 207 |
+
* Implement additional safeguards, such as content filtering, rate limiting and monitoring, at the application layer, especially for open deployment contexts where Inkling 2 Mini’s built-in mitigations may not be sufficient on their own.
|
| 208 |
+
* Avoid deploying Inkling 2 Mini in domains such as medical, legal or safety-critical decision-making without additional fine-tuning, domain-specific validation and human oversight.
|
| 209 |
+
|
| 210 |
+
## 8. Legal
|
| 211 |
+
|
| 212 |
+
[Training Data Documentation](https://thinkingmachines.ai/training-data-documentation/)
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- set effort_map = {"none": 0.0, "minimal": 0.1, "low": 0.2, "medium": 0.7, "high": 0.9, "xhigh": 0.99, "max": 0.99} -%}
|
| 2 |
+
{%- set role_token = {"user": "<|message_user|>", "assistant": "<|message_model|>", "system": "<|message_system|>", "tool": "<|message_tool|>"} -%}
|
| 3 |
+
|
| 4 |
+
{%- macro emit_thinking_effort() -%}
|
| 5 |
+
{%- set eff = reasoning_effort if reasoning_effort is defined and reasoning_effort is not none else 0.9 -%}
|
| 6 |
+
{%- if eff is string -%}
|
| 7 |
+
{%- set key = eff | trim -%}
|
| 8 |
+
{%- if key not in effort_map -%}
|
| 9 |
+
{{- raise_exception("Unknown reasoning_effort: " ~ eff) -}}
|
| 10 |
+
{%- endif -%}
|
| 11 |
+
{%- set num = effort_map[key] -%}
|
| 12 |
+
{%- else -%}
|
| 13 |
+
{%- set num = eff | float -%}
|
| 14 |
+
{%- endif -%}
|
| 15 |
+
{%- if num < 0.0 or num > 0.99 -%}
|
| 16 |
+
{{- raise_exception("reasoning_effort must be in [0.0, 0.99]") -}}
|
| 17 |
+
{%- endif -%}
|
| 18 |
+
{{- "<|message_system|><|content_text|>Thinking effort level: " -}}
|
| 19 |
+
{%- if num == 0.0 -%}0{%- else -%}{{ num }}{%- endif -%}
|
| 20 |
+
{{- "<|end_message|>" -}}
|
| 21 |
+
{%- endmacro -%}
|
| 22 |
+
|
| 23 |
+
{%- if tools -%}
|
| 24 |
+
{%- set tool_state = namespace(specs=[]) -%}
|
| 25 |
+
{%- for tool in tools -%}
|
| 26 |
+
{%- set fn = tool.function if tool.function is defined else tool -%}
|
| 27 |
+
{%- set spec = {
|
| 28 |
+
"description": (fn.description if fn.description is defined and fn.description else ""),
|
| 29 |
+
"name": fn.name,
|
| 30 |
+
"parameters": (fn.parameters if fn.parameters is defined and fn.parameters else {}),
|
| 31 |
+
"type": (tool.type if tool.type is defined and tool.type else "function"),
|
| 32 |
+
} -%}
|
| 33 |
+
{%- set tool_state.specs = tool_state.specs + [spec] -%}
|
| 34 |
+
{%- endfor -%}
|
| 35 |
+
{{- "<|message_system|>tool_declare<|content_xml|>" -}}
|
| 36 |
+
{{- tool_state.specs | tojson(sort_keys=true, separators=(",", ":")) -}}
|
| 37 |
+
{{- "<|end_message|>" -}}
|
| 38 |
+
{%- endif -%}
|
| 39 |
+
|
| 40 |
+
{%- set state = namespace(effort_emitted=false) -%}
|
| 41 |
+
{%- for message in messages -%}
|
| 42 |
+
{%- if message.role not in role_token -%}
|
| 43 |
+
{{- raise_exception("Unknown message role: " ~ message.role) -}}
|
| 44 |
+
{%- endif -%}
|
| 45 |
+
{%- if not state.effort_emitted and message.role != "system" -%}
|
| 46 |
+
{{- emit_thinking_effort() -}}
|
| 47 |
+
{%- set state.effort_emitted = true -%}
|
| 48 |
+
{%- endif -%}
|
| 49 |
+
|
| 50 |
+
{%- set header = namespace(text=role_token[message.role]) -%}
|
| 51 |
+
{%- if message.role == "tool" -%}
|
| 52 |
+
{%- if message.name is defined and message.name -%}
|
| 53 |
+
{%- set header.text = header.text ~ message.name -%}
|
| 54 |
+
{%- elif message.tool_call_id is defined and message.tool_call_id -%}
|
| 55 |
+
{%- for prev in messages -%}
|
| 56 |
+
{%- if prev.role == "assistant" and prev.tool_calls -%}
|
| 57 |
+
{%- for tc in prev.tool_calls -%}
|
| 58 |
+
{%- if tc.id is defined and tc.id == message.tool_call_id and tc.function.name is defined -%}
|
| 59 |
+
{%- set header.text = header.text ~ tc.function.name -%}
|
| 60 |
+
{%- endif -%}
|
| 61 |
+
{%- endfor -%}
|
| 62 |
+
{%- endif -%}
|
| 63 |
+
{%- endfor -%}
|
| 64 |
+
{%- endif -%}
|
| 65 |
+
{%- elif message.role == "assistant" and message.name is defined and message.name -%}
|
| 66 |
+
{%- set header.text = header.text ~ message.name -%}
|
| 67 |
+
{%- endif -%}
|
| 68 |
+
{%- set rtok = header.text -%}
|
| 69 |
+
{%- set rendered -%}
|
| 70 |
+
|
| 71 |
+
{%- if message.role == "assistant" and message.reasoning_content is defined and message.reasoning_content -%}
|
| 72 |
+
{{- rtok ~ "<|content_thinking|>" ~ message.reasoning_content ~ "<|end_message|>" -}}
|
| 73 |
+
{%- endif -%}
|
| 74 |
+
|
| 75 |
+
{%- if message.content is string and (message.content or not (message.role == "assistant" and (message.tool_calls or message.reasoning_content))) -%}
|
| 76 |
+
{{- rtok ~ "<|content_text|>" ~ message.content ~ "<|end_message|>" -}}
|
| 77 |
+
{%- elif message.content -%}
|
| 78 |
+
{%- for part in message.content -%}
|
| 79 |
+
{%- if part is string -%}
|
| 80 |
+
{{- rtok ~ "<|content_text|>" ~ part ~ "<|end_message|>" -}}
|
| 81 |
+
{%- elif part.type is not defined or part.type in ("text", "input_text") -%}
|
| 82 |
+
{%- set text_part = (part.text if part.text is defined and part.text is string else "") -%}
|
| 83 |
+
{{- rtok ~ "<|content_text|>" ~ text_part ~ "<|end_message|>" -}}
|
| 84 |
+
{%- elif part.type in ("image", "input_image", "image_url") -%}
|
| 85 |
+
{%- if message.role not in ("user", "tool") -%}
|
| 86 |
+
{{- raise_exception("Image content is only supported for user and tool messages") -}}
|
| 87 |
+
{%- endif -%}
|
| 88 |
+
{{- rtok ~ "<|content_image|><|unused_200054|><|end_message|>" -}}
|
| 89 |
+
{%- elif part.type in ("audio", "input_audio", "audio_url") -%}
|
| 90 |
+
{{- raise_exception("Inkling 2 does not accept audio input") -}}
|
| 91 |
+
{%- else -%}
|
| 92 |
+
{{- raise_exception("Unsupported content part type: " ~ part.type) -}}
|
| 93 |
+
{%- endif -%}
|
| 94 |
+
{%- endfor -%}
|
| 95 |
+
{%- endif -%}
|
| 96 |
+
|
| 97 |
+
{%- if message.role == "assistant" and message.tool_calls -%}
|
| 98 |
+
{%- for tc in message.tool_calls -%}
|
| 99 |
+
{%- set fn = tc.function -%}
|
| 100 |
+
{%- if fn.name is not defined or fn.name is not string -%}
|
| 101 |
+
{{- raise_exception("tool call function name must be a string") -}}
|
| 102 |
+
{%- endif -%}
|
| 103 |
+
{%- if message.name is defined and message.name and message.name != fn.name -%}
|
| 104 |
+
{{- raise_exception("assistant name " ~ message.name ~ " does not match its tool call " ~ fn.name) -}}
|
| 105 |
+
{%- endif -%}
|
| 106 |
+
{%- set args = fn.arguments if fn.arguments is defined and fn.arguments else {} -%}
|
| 107 |
+
{%- if args is string -%}
|
| 108 |
+
{{- raise_exception("tool call arguments must be a parsed object, not a JSON string; canonicalize upstream") -}}
|
| 109 |
+
{%- endif -%}
|
| 110 |
+
{%- if args is not mapping -%}
|
| 111 |
+
{{- raise_exception("tool call arguments must be an object") -}}
|
| 112 |
+
{%- endif -%}
|
| 113 |
+
{{- "<|message_model|>" ~ fn.name ~ "<|content_invoke_tool_json|>" -}}
|
| 114 |
+
{{- '{"name":' ~ (fn.name | tojson(sort_keys=true, separators=(",", ":"))) ~ ',"args":' -}}
|
| 115 |
+
{{- "{" -}}
|
| 116 |
+
{%- for key, value in args | dictsort(case_sensitive=true) -%}
|
| 117 |
+
{{- (key | tojson) ~ ":" ~ (value | tojson(separators=(",", ":"))) -}}
|
| 118 |
+
{%- if not loop.last -%},{%- endif -%}
|
| 119 |
+
{%- endfor -%}
|
| 120 |
+
{{- "}}<|end_message|>" -}}
|
| 121 |
+
{%- endfor -%}
|
| 122 |
+
{%- endif -%}
|
| 123 |
+
|
| 124 |
+
{%- if message.role == "assistant" -%}
|
| 125 |
+
{{- "<|content_model_end_sampling|>" -}}
|
| 126 |
+
{%- endif -%}
|
| 127 |
+
{%- endset -%}
|
| 128 |
+
{%- if message.role == "assistant" -%}
|
| 129 |
+
{%- generation -%}{{- rendered -}}{%- endgeneration -%}
|
| 130 |
+
{%- else -%}
|
| 131 |
+
{{- rendered -}}
|
| 132 |
+
{%- endif -%}
|
| 133 |
+
{%- endfor -%}
|
| 134 |
+
|
| 135 |
+
{%- if not state.effort_emitted -%}
|
| 136 |
+
{{- emit_thinking_effort() -}}
|
| 137 |
+
{%- endif -%}
|
checksums.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"LICENSE": {
|
| 3 |
+
"size": 11358,
|
| 4 |
+
"sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30"
|
| 5 |
+
},
|
| 6 |
+
"README.md": {
|
| 7 |
+
"size": 4792,
|
| 8 |
+
"sha256": "3742470a74d2c8e79f9f98cff9e4aa6ec3995795972b8947c00ac20dfc063e34"
|
| 9 |
+
},
|
| 10 |
+
"UPSTREAM_README.md": {
|
| 11 |
+
"size": 54797,
|
| 12 |
+
"sha256": "79de83393a10f10f61493704469418a781f661024f2f6bc08be1077508e0044e"
|
| 13 |
+
},
|
| 14 |
+
"chat_template.jinja": {
|
| 15 |
+
"size": 6868,
|
| 16 |
+
"sha256": "53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc"
|
| 17 |
+
},
|
| 18 |
+
"config.json": {
|
| 19 |
+
"size": 26540,
|
| 20 |
+
"sha256": "b7be690b1c064bb26aa13ce96dde6189aec8b9d434d20de89d115b0011d01487"
|
| 21 |
+
},
|
| 22 |
+
"conversion.json": {
|
| 23 |
+
"size": 600,
|
| 24 |
+
"sha256": "fe060328e2f6fbdfce7e900614d1d64bcd2c5628ee2db596b43dd6ec7b7965ac"
|
| 25 |
+
},
|
| 26 |
+
"generation_config.json": {
|
| 27 |
+
"size": 98,
|
| 28 |
+
"sha256": "a08737c07a65a8fdf69f7cf086576210e5aad4b241437090b26d7b0c4f7905f7"
|
| 29 |
+
},
|
| 30 |
+
"hf_quant_config.json": {
|
| 31 |
+
"size": 67924,
|
| 32 |
+
"sha256": "7c656207d3ce37879c7be209a036b0dde43bf01f78159bff06880b868ed57143"
|
| 33 |
+
},
|
| 34 |
+
"model-00001-of-00004.safetensors": {
|
| 35 |
+
"size": 5365563528,
|
| 36 |
+
"sha256": "61843021c7f3340aa84dfc74ce67e2c8ff5a19466ddb342c13b5f4c30c003e1c"
|
| 37 |
+
},
|
| 38 |
+
"model-00002-of-00004.safetensors": {
|
| 39 |
+
"size": 5266581936,
|
| 40 |
+
"sha256": "62d7b61cb250eae07474407664b0094dd17fbfc2e15d8c174f66cff51086a6c8"
|
| 41 |
+
},
|
| 42 |
+
"model-00003-of-00004.safetensors": {
|
| 43 |
+
"size": 5173559890,
|
| 44 |
+
"sha256": "1e23827f087302aef766d4c8e3dcbc457acc198b8137d0c59cd507ce998f1b7b"
|
| 45 |
+
},
|
| 46 |
+
"model-00004-of-00004.safetensors": {
|
| 47 |
+
"size": 3720338350,
|
| 48 |
+
"sha256": "bf22d5cb28345f9c1d59ddd16fae9fe50e42a866a6bdd385cb2a0e01b1b920db"
|
| 49 |
+
},
|
| 50 |
+
"model.safetensors.index.json": {
|
| 51 |
+
"size": 127699,
|
| 52 |
+
"sha256": "e4084c6853a5e4d574a65f628e8ce5b85b7d6e5417882a2a123ee02b0f8fa989"
|
| 53 |
+
},
|
| 54 |
+
"mtp.safetensors": {
|
| 55 |
+
"size": 635801416,
|
| 56 |
+
"sha256": "7c3b651317f01f73bcf4e1dceba66ef8b7e1a1eac6bc171e882e690a4b10a1d2"
|
| 57 |
+
},
|
| 58 |
+
"processor_config.json": {
|
| 59 |
+
"size": 461,
|
| 60 |
+
"sha256": "d7350adce18c8be4b607f261c8f0f7eabbf720bb7aaf648a43d4f8372bbacc2d"
|
| 61 |
+
},
|
| 62 |
+
"runtime/LICENSE": {
|
| 63 |
+
"size": 1069,
|
| 64 |
+
"sha256": "f74c448746be3376e27dee43e2be9ec9d55f4820cd7466c603a6c7d1fd2d25b8"
|
| 65 |
+
},
|
| 66 |
+
"runtime/README.md": {
|
| 67 |
+
"size": 650,
|
| 68 |
+
"sha256": "6b667dc352eefe28feb3d3b10b7738413bc46ef27340f60f5d08cf9c9e8aa465"
|
| 69 |
+
},
|
| 70 |
+
"runtime/inkling2-mini.patch": {
|
| 71 |
+
"size": 27259,
|
| 72 |
+
"sha256": "e504b0e41d86939b1b1753abfb752151c64ceb9911df09eef83f8a1fabb42546"
|
| 73 |
+
},
|
| 74 |
+
"runtime/mlx_vlm-0.8.0+inkling2mini-py3-none-any.whl": {
|
| 75 |
+
"size": 3876401,
|
| 76 |
+
"sha256": "d4a9c48a56719eae44879151f7c147776ee0dc3e593c8cb9206c9cc056e29745"
|
| 77 |
+
},
|
| 78 |
+
"special_tokens_map.json": {
|
| 79 |
+
"size": 529,
|
| 80 |
+
"sha256": "c16f44b3594563d82743ddb0417a2be1bfe3e2000dfad2da4b8f32554593e1a0"
|
| 81 |
+
},
|
| 82 |
+
"tiktoken/tokenizer.model": {
|
| 83 |
+
"size": 3386494,
|
| 84 |
+
"sha256": "f170372dd655728909228220d77cf6b8104a59f38a91262a7d2c4027906ec0d8"
|
| 85 |
+
},
|
| 86 |
+
"tokenizer.json": {
|
| 87 |
+
"size": 26178678,
|
| 88 |
+
"sha256": "7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6"
|
| 89 |
+
},
|
| 90 |
+
"tokenizer_config.json": {
|
| 91 |
+
"size": 2923,
|
| 92 |
+
"sha256": "79599819c145d8c2d24227e5b0da22b866f3de2d73b96365241da3fd71acafab"
|
| 93 |
+
},
|
| 94 |
+
"validation.json": {
|
| 95 |
+
"size": 1194,
|
| 96 |
+
"sha256": "c405932eafcb2684a8aa3a287b5cba2190d1fc515a8407c20fc4933b87576790"
|
| 97 |
+
}
|
| 98 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,855 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Inkling2LoopForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"do_sample": true,
|
| 6 |
+
"eos_token_id": 200006,
|
| 7 |
+
"generation_config": {
|
| 8 |
+
"do_sample": true,
|
| 9 |
+
"temperature": 1.0,
|
| 10 |
+
"eos_token_id": 200006,
|
| 11 |
+
"pad_token_id": 199999
|
| 12 |
+
},
|
| 13 |
+
"model_type": "inkling2_loop",
|
| 14 |
+
"mtp_config": {
|
| 15 |
+
"hidden_size": 2304,
|
| 16 |
+
"num_hidden_layers": 3,
|
| 17 |
+
"num_attention_heads": 24,
|
| 18 |
+
"num_key_value_heads": 8,
|
| 19 |
+
"head_dim": 128,
|
| 20 |
+
"intermediate_size": 9216,
|
| 21 |
+
"max_position_embeddings": 1048576,
|
| 22 |
+
"torch_dtype": "bfloat16",
|
| 23 |
+
"q_bias": false,
|
| 24 |
+
"o_bias": false,
|
| 25 |
+
"rms_norm_eps": 1e-06,
|
| 26 |
+
"rope_theta": 1000000.0,
|
| 27 |
+
"local_layer_ids": [
|
| 28 |
+
0,
|
| 29 |
+
2
|
| 30 |
+
],
|
| 31 |
+
"sliding_window_size": 1024,
|
| 32 |
+
"block_size": 8,
|
| 33 |
+
"markov_rank": 256,
|
| 34 |
+
"markov_head_type": "rnn_hidden",
|
| 35 |
+
"target_layer_ids": [
|
| 36 |
+
5,
|
| 37 |
+
23,
|
| 38 |
+
41,
|
| 39 |
+
48
|
| 40 |
+
]
|
| 41 |
+
},
|
| 42 |
+
"quantization": {
|
| 43 |
+
"group_size": 16,
|
| 44 |
+
"bits": 4,
|
| 45 |
+
"mode": "nvfp4",
|
| 46 |
+
"language_model.model.layers.0.mlp.switch_mlp.gate_proj": {
|
| 47 |
+
"group_size": 16,
|
| 48 |
+
"bits": 4,
|
| 49 |
+
"mode": "nvfp4"
|
| 50 |
+
},
|
| 51 |
+
"language_model.model.layers.0.mlp.switch_mlp.up_proj": {
|
| 52 |
+
"group_size": 16,
|
| 53 |
+
"bits": 4,
|
| 54 |
+
"mode": "nvfp4"
|
| 55 |
+
},
|
| 56 |
+
"language_model.model.layers.0.mlp.switch_mlp.down_proj": {
|
| 57 |
+
"group_size": 16,
|
| 58 |
+
"bits": 4,
|
| 59 |
+
"mode": "nvfp4"
|
| 60 |
+
},
|
| 61 |
+
"language_model.model.layers.1.mlp.switch_mlp.gate_proj": {
|
| 62 |
+
"group_size": 16,
|
| 63 |
+
"bits": 4,
|
| 64 |
+
"mode": "nvfp4"
|
| 65 |
+
},
|
| 66 |
+
"language_model.model.layers.1.mlp.switch_mlp.up_proj": {
|
| 67 |
+
"group_size": 16,
|
| 68 |
+
"bits": 4,
|
| 69 |
+
"mode": "nvfp4"
|
| 70 |
+
},
|
| 71 |
+
"language_model.model.layers.1.mlp.switch_mlp.down_proj": {
|
| 72 |
+
"group_size": 16,
|
| 73 |
+
"bits": 4,
|
| 74 |
+
"mode": "nvfp4"
|
| 75 |
+
},
|
| 76 |
+
"language_model.model.layers.10.mlp.switch_mlp.gate_proj": {
|
| 77 |
+
"group_size": 16,
|
| 78 |
+
"bits": 4,
|
| 79 |
+
"mode": "nvfp4"
|
| 80 |
+
},
|
| 81 |
+
"language_model.model.layers.10.mlp.switch_mlp.up_proj": {
|
| 82 |
+
"group_size": 16,
|
| 83 |
+
"bits": 4,
|
| 84 |
+
"mode": "nvfp4"
|
| 85 |
+
},
|
| 86 |
+
"language_model.model.layers.10.mlp.switch_mlp.down_proj": {
|
| 87 |
+
"group_size": 16,
|
| 88 |
+
"bits": 4,
|
| 89 |
+
"mode": "nvfp4"
|
| 90 |
+
},
|
| 91 |
+
"language_model.model.layers.11.mlp.switch_mlp.gate_proj": {
|
| 92 |
+
"group_size": 16,
|
| 93 |
+
"bits": 4,
|
| 94 |
+
"mode": "nvfp4"
|
| 95 |
+
},
|
| 96 |
+
"language_model.model.layers.11.mlp.switch_mlp.up_proj": {
|
| 97 |
+
"group_size": 16,
|
| 98 |
+
"bits": 4,
|
| 99 |
+
"mode": "nvfp4"
|
| 100 |
+
},
|
| 101 |
+
"language_model.model.layers.11.mlp.switch_mlp.down_proj": {
|
| 102 |
+
"group_size": 16,
|
| 103 |
+
"bits": 4,
|
| 104 |
+
"mode": "nvfp4"
|
| 105 |
+
},
|
| 106 |
+
"language_model.model.layers.12.mlp.switch_mlp.gate_proj": {
|
| 107 |
+
"group_size": 16,
|
| 108 |
+
"bits": 4,
|
| 109 |
+
"mode": "nvfp4"
|
| 110 |
+
},
|
| 111 |
+
"language_model.model.layers.12.mlp.switch_mlp.up_proj": {
|
| 112 |
+
"group_size": 16,
|
| 113 |
+
"bits": 4,
|
| 114 |
+
"mode": "nvfp4"
|
| 115 |
+
},
|
| 116 |
+
"language_model.model.layers.12.mlp.switch_mlp.down_proj": {
|
| 117 |
+
"group_size": 16,
|
| 118 |
+
"bits": 4,
|
| 119 |
+
"mode": "nvfp4"
|
| 120 |
+
},
|
| 121 |
+
"language_model.model.layers.13.mlp.switch_mlp.gate_proj": {
|
| 122 |
+
"group_size": 16,
|
| 123 |
+
"bits": 4,
|
| 124 |
+
"mode": "nvfp4"
|
| 125 |
+
},
|
| 126 |
+
"language_model.model.layers.13.mlp.switch_mlp.up_proj": {
|
| 127 |
+
"group_size": 16,
|
| 128 |
+
"bits": 4,
|
| 129 |
+
"mode": "nvfp4"
|
| 130 |
+
},
|
| 131 |
+
"language_model.model.layers.13.mlp.switch_mlp.down_proj": {
|
| 132 |
+
"group_size": 16,
|
| 133 |
+
"bits": 4,
|
| 134 |
+
"mode": "nvfp4"
|
| 135 |
+
},
|
| 136 |
+
"language_model.model.layers.14.mlp.switch_mlp.gate_proj": {
|
| 137 |
+
"group_size": 16,
|
| 138 |
+
"bits": 4,
|
| 139 |
+
"mode": "nvfp4"
|
| 140 |
+
},
|
| 141 |
+
"language_model.model.layers.14.mlp.switch_mlp.up_proj": {
|
| 142 |
+
"group_size": 16,
|
| 143 |
+
"bits": 4,
|
| 144 |
+
"mode": "nvfp4"
|
| 145 |
+
},
|
| 146 |
+
"language_model.model.layers.14.mlp.switch_mlp.down_proj": {
|
| 147 |
+
"group_size": 16,
|
| 148 |
+
"bits": 4,
|
| 149 |
+
"mode": "nvfp4"
|
| 150 |
+
},
|
| 151 |
+
"language_model.model.layers.15.mlp.switch_mlp.gate_proj": {
|
| 152 |
+
"group_size": 16,
|
| 153 |
+
"bits": 4,
|
| 154 |
+
"mode": "nvfp4"
|
| 155 |
+
},
|
| 156 |
+
"language_model.model.layers.15.mlp.switch_mlp.up_proj": {
|
| 157 |
+
"group_size": 16,
|
| 158 |
+
"bits": 4,
|
| 159 |
+
"mode": "nvfp4"
|
| 160 |
+
},
|
| 161 |
+
"language_model.model.layers.15.mlp.switch_mlp.down_proj": {
|
| 162 |
+
"group_size": 16,
|
| 163 |
+
"bits": 4,
|
| 164 |
+
"mode": "nvfp4"
|
| 165 |
+
},
|
| 166 |
+
"language_model.model.layers.16.mlp.switch_mlp.gate_proj": {
|
| 167 |
+
"group_size": 16,
|
| 168 |
+
"bits": 4,
|
| 169 |
+
"mode": "nvfp4"
|
| 170 |
+
},
|
| 171 |
+
"language_model.model.layers.16.mlp.switch_mlp.up_proj": {
|
| 172 |
+
"group_size": 16,
|
| 173 |
+
"bits": 4,
|
| 174 |
+
"mode": "nvfp4"
|
| 175 |
+
},
|
| 176 |
+
"language_model.model.layers.16.mlp.switch_mlp.down_proj": {
|
| 177 |
+
"group_size": 16,
|
| 178 |
+
"bits": 4,
|
| 179 |
+
"mode": "nvfp4"
|
| 180 |
+
},
|
| 181 |
+
"language_model.model.layers.17.mlp.switch_mlp.gate_proj": {
|
| 182 |
+
"group_size": 16,
|
| 183 |
+
"bits": 4,
|
| 184 |
+
"mode": "nvfp4"
|
| 185 |
+
},
|
| 186 |
+
"language_model.model.layers.17.mlp.switch_mlp.up_proj": {
|
| 187 |
+
"group_size": 16,
|
| 188 |
+
"bits": 4,
|
| 189 |
+
"mode": "nvfp4"
|
| 190 |
+
},
|
| 191 |
+
"language_model.model.layers.17.mlp.switch_mlp.down_proj": {
|
| 192 |
+
"group_size": 16,
|
| 193 |
+
"bits": 4,
|
| 194 |
+
"mode": "nvfp4"
|
| 195 |
+
},
|
| 196 |
+
"language_model.model.layers.18.mlp.switch_mlp.gate_proj": {
|
| 197 |
+
"group_size": 16,
|
| 198 |
+
"bits": 4,
|
| 199 |
+
"mode": "nvfp4"
|
| 200 |
+
},
|
| 201 |
+
"language_model.model.layers.18.mlp.switch_mlp.up_proj": {
|
| 202 |
+
"group_size": 16,
|
| 203 |
+
"bits": 4,
|
| 204 |
+
"mode": "nvfp4"
|
| 205 |
+
},
|
| 206 |
+
"language_model.model.layers.18.mlp.switch_mlp.down_proj": {
|
| 207 |
+
"group_size": 16,
|
| 208 |
+
"bits": 4,
|
| 209 |
+
"mode": "nvfp4"
|
| 210 |
+
},
|
| 211 |
+
"language_model.model.layers.19.mlp.switch_mlp.gate_proj": {
|
| 212 |
+
"group_size": 16,
|
| 213 |
+
"bits": 4,
|
| 214 |
+
"mode": "nvfp4"
|
| 215 |
+
},
|
| 216 |
+
"language_model.model.layers.19.mlp.switch_mlp.up_proj": {
|
| 217 |
+
"group_size": 16,
|
| 218 |
+
"bits": 4,
|
| 219 |
+
"mode": "nvfp4"
|
| 220 |
+
},
|
| 221 |
+
"language_model.model.layers.19.mlp.switch_mlp.down_proj": {
|
| 222 |
+
"group_size": 16,
|
| 223 |
+
"bits": 4,
|
| 224 |
+
"mode": "nvfp4"
|
| 225 |
+
},
|
| 226 |
+
"language_model.model.layers.2.mlp.switch_mlp.gate_proj": {
|
| 227 |
+
"group_size": 16,
|
| 228 |
+
"bits": 4,
|
| 229 |
+
"mode": "nvfp4"
|
| 230 |
+
},
|
| 231 |
+
"language_model.model.layers.2.mlp.switch_mlp.up_proj": {
|
| 232 |
+
"group_size": 16,
|
| 233 |
+
"bits": 4,
|
| 234 |
+
"mode": "nvfp4"
|
| 235 |
+
},
|
| 236 |
+
"language_model.model.layers.2.mlp.switch_mlp.down_proj": {
|
| 237 |
+
"group_size": 16,
|
| 238 |
+
"bits": 4,
|
| 239 |
+
"mode": "nvfp4"
|
| 240 |
+
},
|
| 241 |
+
"language_model.model.layers.3.mlp.switch_mlp.gate_proj": {
|
| 242 |
+
"group_size": 16,
|
| 243 |
+
"bits": 4,
|
| 244 |
+
"mode": "nvfp4"
|
| 245 |
+
},
|
| 246 |
+
"language_model.model.layers.3.mlp.switch_mlp.up_proj": {
|
| 247 |
+
"group_size": 16,
|
| 248 |
+
"bits": 4,
|
| 249 |
+
"mode": "nvfp4"
|
| 250 |
+
},
|
| 251 |
+
"language_model.model.layers.3.mlp.switch_mlp.down_proj": {
|
| 252 |
+
"group_size": 16,
|
| 253 |
+
"bits": 4,
|
| 254 |
+
"mode": "nvfp4"
|
| 255 |
+
},
|
| 256 |
+
"language_model.model.layers.4.mlp.switch_mlp.gate_proj": {
|
| 257 |
+
"group_size": 16,
|
| 258 |
+
"bits": 4,
|
| 259 |
+
"mode": "nvfp4"
|
| 260 |
+
},
|
| 261 |
+
"language_model.model.layers.4.mlp.switch_mlp.up_proj": {
|
| 262 |
+
"group_size": 16,
|
| 263 |
+
"bits": 4,
|
| 264 |
+
"mode": "nvfp4"
|
| 265 |
+
},
|
| 266 |
+
"language_model.model.layers.4.mlp.switch_mlp.down_proj": {
|
| 267 |
+
"group_size": 16,
|
| 268 |
+
"bits": 4,
|
| 269 |
+
"mode": "nvfp4"
|
| 270 |
+
},
|
| 271 |
+
"language_model.model.layers.5.mlp.switch_mlp.gate_proj": {
|
| 272 |
+
"group_size": 16,
|
| 273 |
+
"bits": 4,
|
| 274 |
+
"mode": "nvfp4"
|
| 275 |
+
},
|
| 276 |
+
"language_model.model.layers.5.mlp.switch_mlp.up_proj": {
|
| 277 |
+
"group_size": 16,
|
| 278 |
+
"bits": 4,
|
| 279 |
+
"mode": "nvfp4"
|
| 280 |
+
},
|
| 281 |
+
"language_model.model.layers.5.mlp.switch_mlp.down_proj": {
|
| 282 |
+
"group_size": 16,
|
| 283 |
+
"bits": 4,
|
| 284 |
+
"mode": "nvfp4"
|
| 285 |
+
},
|
| 286 |
+
"language_model.model.layers.6.mlp.switch_mlp.gate_proj": {
|
| 287 |
+
"group_size": 16,
|
| 288 |
+
"bits": 4,
|
| 289 |
+
"mode": "nvfp4"
|
| 290 |
+
},
|
| 291 |
+
"language_model.model.layers.6.mlp.switch_mlp.up_proj": {
|
| 292 |
+
"group_size": 16,
|
| 293 |
+
"bits": 4,
|
| 294 |
+
"mode": "nvfp4"
|
| 295 |
+
},
|
| 296 |
+
"language_model.model.layers.6.mlp.switch_mlp.down_proj": {
|
| 297 |
+
"group_size": 16,
|
| 298 |
+
"bits": 4,
|
| 299 |
+
"mode": "nvfp4"
|
| 300 |
+
},
|
| 301 |
+
"language_model.model.layers.7.mlp.switch_mlp.gate_proj": {
|
| 302 |
+
"group_size": 16,
|
| 303 |
+
"bits": 4,
|
| 304 |
+
"mode": "nvfp4"
|
| 305 |
+
},
|
| 306 |
+
"language_model.model.layers.7.mlp.switch_mlp.up_proj": {
|
| 307 |
+
"group_size": 16,
|
| 308 |
+
"bits": 4,
|
| 309 |
+
"mode": "nvfp4"
|
| 310 |
+
},
|
| 311 |
+
"language_model.model.layers.7.mlp.switch_mlp.down_proj": {
|
| 312 |
+
"group_size": 16,
|
| 313 |
+
"bits": 4,
|
| 314 |
+
"mode": "nvfp4"
|
| 315 |
+
},
|
| 316 |
+
"language_model.model.layers.8.mlp.switch_mlp.gate_proj": {
|
| 317 |
+
"group_size": 16,
|
| 318 |
+
"bits": 4,
|
| 319 |
+
"mode": "nvfp4"
|
| 320 |
+
},
|
| 321 |
+
"language_model.model.layers.8.mlp.switch_mlp.up_proj": {
|
| 322 |
+
"group_size": 16,
|
| 323 |
+
"bits": 4,
|
| 324 |
+
"mode": "nvfp4"
|
| 325 |
+
},
|
| 326 |
+
"language_model.model.layers.8.mlp.switch_mlp.down_proj": {
|
| 327 |
+
"group_size": 16,
|
| 328 |
+
"bits": 4,
|
| 329 |
+
"mode": "nvfp4"
|
| 330 |
+
},
|
| 331 |
+
"language_model.model.layers.9.mlp.switch_mlp.gate_proj": {
|
| 332 |
+
"group_size": 16,
|
| 333 |
+
"bits": 4,
|
| 334 |
+
"mode": "nvfp4"
|
| 335 |
+
},
|
| 336 |
+
"language_model.model.layers.9.mlp.switch_mlp.up_proj": {
|
| 337 |
+
"group_size": 16,
|
| 338 |
+
"bits": 4,
|
| 339 |
+
"mode": "nvfp4"
|
| 340 |
+
},
|
| 341 |
+
"language_model.model.layers.9.mlp.switch_mlp.down_proj": {
|
| 342 |
+
"group_size": 16,
|
| 343 |
+
"bits": 4,
|
| 344 |
+
"mode": "nvfp4"
|
| 345 |
+
},
|
| 346 |
+
"language_model.model.layers.20.mlp.switch_mlp.gate_proj": {
|
| 347 |
+
"group_size": 32,
|
| 348 |
+
"bits": 8,
|
| 349 |
+
"mode": "mxfp8"
|
| 350 |
+
},
|
| 351 |
+
"language_model.model.layers.20.mlp.switch_mlp.up_proj": {
|
| 352 |
+
"group_size": 32,
|
| 353 |
+
"bits": 8,
|
| 354 |
+
"mode": "mxfp8"
|
| 355 |
+
},
|
| 356 |
+
"language_model.model.layers.20.mlp.switch_mlp.down_proj": {
|
| 357 |
+
"group_size": 32,
|
| 358 |
+
"bits": 8,
|
| 359 |
+
"mode": "mxfp8"
|
| 360 |
+
},
|
| 361 |
+
"language_model.model.layers.21.mlp.switch_mlp.gate_proj": {
|
| 362 |
+
"group_size": 32,
|
| 363 |
+
"bits": 8,
|
| 364 |
+
"mode": "mxfp8"
|
| 365 |
+
},
|
| 366 |
+
"language_model.model.layers.21.mlp.switch_mlp.up_proj": {
|
| 367 |
+
"group_size": 32,
|
| 368 |
+
"bits": 8,
|
| 369 |
+
"mode": "mxfp8"
|
| 370 |
+
},
|
| 371 |
+
"language_model.model.layers.21.mlp.switch_mlp.down_proj": {
|
| 372 |
+
"group_size": 32,
|
| 373 |
+
"bits": 8,
|
| 374 |
+
"mode": "mxfp8"
|
| 375 |
+
},
|
| 376 |
+
"language_model.model.layers.22.mlp.switch_mlp.gate_proj": {
|
| 377 |
+
"group_size": 32,
|
| 378 |
+
"bits": 8,
|
| 379 |
+
"mode": "mxfp8"
|
| 380 |
+
},
|
| 381 |
+
"language_model.model.layers.22.mlp.switch_mlp.up_proj": {
|
| 382 |
+
"group_size": 32,
|
| 383 |
+
"bits": 8,
|
| 384 |
+
"mode": "mxfp8"
|
| 385 |
+
},
|
| 386 |
+
"language_model.model.layers.22.mlp.switch_mlp.down_proj": {
|
| 387 |
+
"group_size": 32,
|
| 388 |
+
"bits": 8,
|
| 389 |
+
"mode": "mxfp8"
|
| 390 |
+
},
|
| 391 |
+
"language_model.model.layers.23.mlp.switch_mlp.gate_proj": {
|
| 392 |
+
"group_size": 32,
|
| 393 |
+
"bits": 8,
|
| 394 |
+
"mode": "mxfp8"
|
| 395 |
+
},
|
| 396 |
+
"language_model.model.layers.23.mlp.switch_mlp.up_proj": {
|
| 397 |
+
"group_size": 32,
|
| 398 |
+
"bits": 8,
|
| 399 |
+
"mode": "mxfp8"
|
| 400 |
+
},
|
| 401 |
+
"language_model.model.layers.23.mlp.switch_mlp.down_proj": {
|
| 402 |
+
"group_size": 32,
|
| 403 |
+
"bits": 8,
|
| 404 |
+
"mode": "mxfp8"
|
| 405 |
+
}
|
| 406 |
+
},
|
| 407 |
+
"quantization_config": {
|
| 408 |
+
"group_size": 16,
|
| 409 |
+
"bits": 4,
|
| 410 |
+
"mode": "nvfp4",
|
| 411 |
+
"language_model.model.layers.0.mlp.switch_mlp.gate_proj": {
|
| 412 |
+
"group_size": 16,
|
| 413 |
+
"bits": 4,
|
| 414 |
+
"mode": "nvfp4"
|
| 415 |
+
},
|
| 416 |
+
"language_model.model.layers.0.mlp.switch_mlp.up_proj": {
|
| 417 |
+
"group_size": 16,
|
| 418 |
+
"bits": 4,
|
| 419 |
+
"mode": "nvfp4"
|
| 420 |
+
},
|
| 421 |
+
"language_model.model.layers.0.mlp.switch_mlp.down_proj": {
|
| 422 |
+
"group_size": 16,
|
| 423 |
+
"bits": 4,
|
| 424 |
+
"mode": "nvfp4"
|
| 425 |
+
},
|
| 426 |
+
"language_model.model.layers.1.mlp.switch_mlp.gate_proj": {
|
| 427 |
+
"group_size": 16,
|
| 428 |
+
"bits": 4,
|
| 429 |
+
"mode": "nvfp4"
|
| 430 |
+
},
|
| 431 |
+
"language_model.model.layers.1.mlp.switch_mlp.up_proj": {
|
| 432 |
+
"group_size": 16,
|
| 433 |
+
"bits": 4,
|
| 434 |
+
"mode": "nvfp4"
|
| 435 |
+
},
|
| 436 |
+
"language_model.model.layers.1.mlp.switch_mlp.down_proj": {
|
| 437 |
+
"group_size": 16,
|
| 438 |
+
"bits": 4,
|
| 439 |
+
"mode": "nvfp4"
|
| 440 |
+
},
|
| 441 |
+
"language_model.model.layers.10.mlp.switch_mlp.gate_proj": {
|
| 442 |
+
"group_size": 16,
|
| 443 |
+
"bits": 4,
|
| 444 |
+
"mode": "nvfp4"
|
| 445 |
+
},
|
| 446 |
+
"language_model.model.layers.10.mlp.switch_mlp.up_proj": {
|
| 447 |
+
"group_size": 16,
|
| 448 |
+
"bits": 4,
|
| 449 |
+
"mode": "nvfp4"
|
| 450 |
+
},
|
| 451 |
+
"language_model.model.layers.10.mlp.switch_mlp.down_proj": {
|
| 452 |
+
"group_size": 16,
|
| 453 |
+
"bits": 4,
|
| 454 |
+
"mode": "nvfp4"
|
| 455 |
+
},
|
| 456 |
+
"language_model.model.layers.11.mlp.switch_mlp.gate_proj": {
|
| 457 |
+
"group_size": 16,
|
| 458 |
+
"bits": 4,
|
| 459 |
+
"mode": "nvfp4"
|
| 460 |
+
},
|
| 461 |
+
"language_model.model.layers.11.mlp.switch_mlp.up_proj": {
|
| 462 |
+
"group_size": 16,
|
| 463 |
+
"bits": 4,
|
| 464 |
+
"mode": "nvfp4"
|
| 465 |
+
},
|
| 466 |
+
"language_model.model.layers.11.mlp.switch_mlp.down_proj": {
|
| 467 |
+
"group_size": 16,
|
| 468 |
+
"bits": 4,
|
| 469 |
+
"mode": "nvfp4"
|
| 470 |
+
},
|
| 471 |
+
"language_model.model.layers.12.mlp.switch_mlp.gate_proj": {
|
| 472 |
+
"group_size": 16,
|
| 473 |
+
"bits": 4,
|
| 474 |
+
"mode": "nvfp4"
|
| 475 |
+
},
|
| 476 |
+
"language_model.model.layers.12.mlp.switch_mlp.up_proj": {
|
| 477 |
+
"group_size": 16,
|
| 478 |
+
"bits": 4,
|
| 479 |
+
"mode": "nvfp4"
|
| 480 |
+
},
|
| 481 |
+
"language_model.model.layers.12.mlp.switch_mlp.down_proj": {
|
| 482 |
+
"group_size": 16,
|
| 483 |
+
"bits": 4,
|
| 484 |
+
"mode": "nvfp4"
|
| 485 |
+
},
|
| 486 |
+
"language_model.model.layers.13.mlp.switch_mlp.gate_proj": {
|
| 487 |
+
"group_size": 16,
|
| 488 |
+
"bits": 4,
|
| 489 |
+
"mode": "nvfp4"
|
| 490 |
+
},
|
| 491 |
+
"language_model.model.layers.13.mlp.switch_mlp.up_proj": {
|
| 492 |
+
"group_size": 16,
|
| 493 |
+
"bits": 4,
|
| 494 |
+
"mode": "nvfp4"
|
| 495 |
+
},
|
| 496 |
+
"language_model.model.layers.13.mlp.switch_mlp.down_proj": {
|
| 497 |
+
"group_size": 16,
|
| 498 |
+
"bits": 4,
|
| 499 |
+
"mode": "nvfp4"
|
| 500 |
+
},
|
| 501 |
+
"language_model.model.layers.14.mlp.switch_mlp.gate_proj": {
|
| 502 |
+
"group_size": 16,
|
| 503 |
+
"bits": 4,
|
| 504 |
+
"mode": "nvfp4"
|
| 505 |
+
},
|
| 506 |
+
"language_model.model.layers.14.mlp.switch_mlp.up_proj": {
|
| 507 |
+
"group_size": 16,
|
| 508 |
+
"bits": 4,
|
| 509 |
+
"mode": "nvfp4"
|
| 510 |
+
},
|
| 511 |
+
"language_model.model.layers.14.mlp.switch_mlp.down_proj": {
|
| 512 |
+
"group_size": 16,
|
| 513 |
+
"bits": 4,
|
| 514 |
+
"mode": "nvfp4"
|
| 515 |
+
},
|
| 516 |
+
"language_model.model.layers.15.mlp.switch_mlp.gate_proj": {
|
| 517 |
+
"group_size": 16,
|
| 518 |
+
"bits": 4,
|
| 519 |
+
"mode": "nvfp4"
|
| 520 |
+
},
|
| 521 |
+
"language_model.model.layers.15.mlp.switch_mlp.up_proj": {
|
| 522 |
+
"group_size": 16,
|
| 523 |
+
"bits": 4,
|
| 524 |
+
"mode": "nvfp4"
|
| 525 |
+
},
|
| 526 |
+
"language_model.model.layers.15.mlp.switch_mlp.down_proj": {
|
| 527 |
+
"group_size": 16,
|
| 528 |
+
"bits": 4,
|
| 529 |
+
"mode": "nvfp4"
|
| 530 |
+
},
|
| 531 |
+
"language_model.model.layers.16.mlp.switch_mlp.gate_proj": {
|
| 532 |
+
"group_size": 16,
|
| 533 |
+
"bits": 4,
|
| 534 |
+
"mode": "nvfp4"
|
| 535 |
+
},
|
| 536 |
+
"language_model.model.layers.16.mlp.switch_mlp.up_proj": {
|
| 537 |
+
"group_size": 16,
|
| 538 |
+
"bits": 4,
|
| 539 |
+
"mode": "nvfp4"
|
| 540 |
+
},
|
| 541 |
+
"language_model.model.layers.16.mlp.switch_mlp.down_proj": {
|
| 542 |
+
"group_size": 16,
|
| 543 |
+
"bits": 4,
|
| 544 |
+
"mode": "nvfp4"
|
| 545 |
+
},
|
| 546 |
+
"language_model.model.layers.17.mlp.switch_mlp.gate_proj": {
|
| 547 |
+
"group_size": 16,
|
| 548 |
+
"bits": 4,
|
| 549 |
+
"mode": "nvfp4"
|
| 550 |
+
},
|
| 551 |
+
"language_model.model.layers.17.mlp.switch_mlp.up_proj": {
|
| 552 |
+
"group_size": 16,
|
| 553 |
+
"bits": 4,
|
| 554 |
+
"mode": "nvfp4"
|
| 555 |
+
},
|
| 556 |
+
"language_model.model.layers.17.mlp.switch_mlp.down_proj": {
|
| 557 |
+
"group_size": 16,
|
| 558 |
+
"bits": 4,
|
| 559 |
+
"mode": "nvfp4"
|
| 560 |
+
},
|
| 561 |
+
"language_model.model.layers.18.mlp.switch_mlp.gate_proj": {
|
| 562 |
+
"group_size": 16,
|
| 563 |
+
"bits": 4,
|
| 564 |
+
"mode": "nvfp4"
|
| 565 |
+
},
|
| 566 |
+
"language_model.model.layers.18.mlp.switch_mlp.up_proj": {
|
| 567 |
+
"group_size": 16,
|
| 568 |
+
"bits": 4,
|
| 569 |
+
"mode": "nvfp4"
|
| 570 |
+
},
|
| 571 |
+
"language_model.model.layers.18.mlp.switch_mlp.down_proj": {
|
| 572 |
+
"group_size": 16,
|
| 573 |
+
"bits": 4,
|
| 574 |
+
"mode": "nvfp4"
|
| 575 |
+
},
|
| 576 |
+
"language_model.model.layers.19.mlp.switch_mlp.gate_proj": {
|
| 577 |
+
"group_size": 16,
|
| 578 |
+
"bits": 4,
|
| 579 |
+
"mode": "nvfp4"
|
| 580 |
+
},
|
| 581 |
+
"language_model.model.layers.19.mlp.switch_mlp.up_proj": {
|
| 582 |
+
"group_size": 16,
|
| 583 |
+
"bits": 4,
|
| 584 |
+
"mode": "nvfp4"
|
| 585 |
+
},
|
| 586 |
+
"language_model.model.layers.19.mlp.switch_mlp.down_proj": {
|
| 587 |
+
"group_size": 16,
|
| 588 |
+
"bits": 4,
|
| 589 |
+
"mode": "nvfp4"
|
| 590 |
+
},
|
| 591 |
+
"language_model.model.layers.2.mlp.switch_mlp.gate_proj": {
|
| 592 |
+
"group_size": 16,
|
| 593 |
+
"bits": 4,
|
| 594 |
+
"mode": "nvfp4"
|
| 595 |
+
},
|
| 596 |
+
"language_model.model.layers.2.mlp.switch_mlp.up_proj": {
|
| 597 |
+
"group_size": 16,
|
| 598 |
+
"bits": 4,
|
| 599 |
+
"mode": "nvfp4"
|
| 600 |
+
},
|
| 601 |
+
"language_model.model.layers.2.mlp.switch_mlp.down_proj": {
|
| 602 |
+
"group_size": 16,
|
| 603 |
+
"bits": 4,
|
| 604 |
+
"mode": "nvfp4"
|
| 605 |
+
},
|
| 606 |
+
"language_model.model.layers.3.mlp.switch_mlp.gate_proj": {
|
| 607 |
+
"group_size": 16,
|
| 608 |
+
"bits": 4,
|
| 609 |
+
"mode": "nvfp4"
|
| 610 |
+
},
|
| 611 |
+
"language_model.model.layers.3.mlp.switch_mlp.up_proj": {
|
| 612 |
+
"group_size": 16,
|
| 613 |
+
"bits": 4,
|
| 614 |
+
"mode": "nvfp4"
|
| 615 |
+
},
|
| 616 |
+
"language_model.model.layers.3.mlp.switch_mlp.down_proj": {
|
| 617 |
+
"group_size": 16,
|
| 618 |
+
"bits": 4,
|
| 619 |
+
"mode": "nvfp4"
|
| 620 |
+
},
|
| 621 |
+
"language_model.model.layers.4.mlp.switch_mlp.gate_proj": {
|
| 622 |
+
"group_size": 16,
|
| 623 |
+
"bits": 4,
|
| 624 |
+
"mode": "nvfp4"
|
| 625 |
+
},
|
| 626 |
+
"language_model.model.layers.4.mlp.switch_mlp.up_proj": {
|
| 627 |
+
"group_size": 16,
|
| 628 |
+
"bits": 4,
|
| 629 |
+
"mode": "nvfp4"
|
| 630 |
+
},
|
| 631 |
+
"language_model.model.layers.4.mlp.switch_mlp.down_proj": {
|
| 632 |
+
"group_size": 16,
|
| 633 |
+
"bits": 4,
|
| 634 |
+
"mode": "nvfp4"
|
| 635 |
+
},
|
| 636 |
+
"language_model.model.layers.5.mlp.switch_mlp.gate_proj": {
|
| 637 |
+
"group_size": 16,
|
| 638 |
+
"bits": 4,
|
| 639 |
+
"mode": "nvfp4"
|
| 640 |
+
},
|
| 641 |
+
"language_model.model.layers.5.mlp.switch_mlp.up_proj": {
|
| 642 |
+
"group_size": 16,
|
| 643 |
+
"bits": 4,
|
| 644 |
+
"mode": "nvfp4"
|
| 645 |
+
},
|
| 646 |
+
"language_model.model.layers.5.mlp.switch_mlp.down_proj": {
|
| 647 |
+
"group_size": 16,
|
| 648 |
+
"bits": 4,
|
| 649 |
+
"mode": "nvfp4"
|
| 650 |
+
},
|
| 651 |
+
"language_model.model.layers.6.mlp.switch_mlp.gate_proj": {
|
| 652 |
+
"group_size": 16,
|
| 653 |
+
"bits": 4,
|
| 654 |
+
"mode": "nvfp4"
|
| 655 |
+
},
|
| 656 |
+
"language_model.model.layers.6.mlp.switch_mlp.up_proj": {
|
| 657 |
+
"group_size": 16,
|
| 658 |
+
"bits": 4,
|
| 659 |
+
"mode": "nvfp4"
|
| 660 |
+
},
|
| 661 |
+
"language_model.model.layers.6.mlp.switch_mlp.down_proj": {
|
| 662 |
+
"group_size": 16,
|
| 663 |
+
"bits": 4,
|
| 664 |
+
"mode": "nvfp4"
|
| 665 |
+
},
|
| 666 |
+
"language_model.model.layers.7.mlp.switch_mlp.gate_proj": {
|
| 667 |
+
"group_size": 16,
|
| 668 |
+
"bits": 4,
|
| 669 |
+
"mode": "nvfp4"
|
| 670 |
+
},
|
| 671 |
+
"language_model.model.layers.7.mlp.switch_mlp.up_proj": {
|
| 672 |
+
"group_size": 16,
|
| 673 |
+
"bits": 4,
|
| 674 |
+
"mode": "nvfp4"
|
| 675 |
+
},
|
| 676 |
+
"language_model.model.layers.7.mlp.switch_mlp.down_proj": {
|
| 677 |
+
"group_size": 16,
|
| 678 |
+
"bits": 4,
|
| 679 |
+
"mode": "nvfp4"
|
| 680 |
+
},
|
| 681 |
+
"language_model.model.layers.8.mlp.switch_mlp.gate_proj": {
|
| 682 |
+
"group_size": 16,
|
| 683 |
+
"bits": 4,
|
| 684 |
+
"mode": "nvfp4"
|
| 685 |
+
},
|
| 686 |
+
"language_model.model.layers.8.mlp.switch_mlp.up_proj": {
|
| 687 |
+
"group_size": 16,
|
| 688 |
+
"bits": 4,
|
| 689 |
+
"mode": "nvfp4"
|
| 690 |
+
},
|
| 691 |
+
"language_model.model.layers.8.mlp.switch_mlp.down_proj": {
|
| 692 |
+
"group_size": 16,
|
| 693 |
+
"bits": 4,
|
| 694 |
+
"mode": "nvfp4"
|
| 695 |
+
},
|
| 696 |
+
"language_model.model.layers.9.mlp.switch_mlp.gate_proj": {
|
| 697 |
+
"group_size": 16,
|
| 698 |
+
"bits": 4,
|
| 699 |
+
"mode": "nvfp4"
|
| 700 |
+
},
|
| 701 |
+
"language_model.model.layers.9.mlp.switch_mlp.up_proj": {
|
| 702 |
+
"group_size": 16,
|
| 703 |
+
"bits": 4,
|
| 704 |
+
"mode": "nvfp4"
|
| 705 |
+
},
|
| 706 |
+
"language_model.model.layers.9.mlp.switch_mlp.down_proj": {
|
| 707 |
+
"group_size": 16,
|
| 708 |
+
"bits": 4,
|
| 709 |
+
"mode": "nvfp4"
|
| 710 |
+
},
|
| 711 |
+
"language_model.model.layers.20.mlp.switch_mlp.gate_proj": {
|
| 712 |
+
"group_size": 32,
|
| 713 |
+
"bits": 8,
|
| 714 |
+
"mode": "mxfp8"
|
| 715 |
+
},
|
| 716 |
+
"language_model.model.layers.20.mlp.switch_mlp.up_proj": {
|
| 717 |
+
"group_size": 32,
|
| 718 |
+
"bits": 8,
|
| 719 |
+
"mode": "mxfp8"
|
| 720 |
+
},
|
| 721 |
+
"language_model.model.layers.20.mlp.switch_mlp.down_proj": {
|
| 722 |
+
"group_size": 32,
|
| 723 |
+
"bits": 8,
|
| 724 |
+
"mode": "mxfp8"
|
| 725 |
+
},
|
| 726 |
+
"language_model.model.layers.21.mlp.switch_mlp.gate_proj": {
|
| 727 |
+
"group_size": 32,
|
| 728 |
+
"bits": 8,
|
| 729 |
+
"mode": "mxfp8"
|
| 730 |
+
},
|
| 731 |
+
"language_model.model.layers.21.mlp.switch_mlp.up_proj": {
|
| 732 |
+
"group_size": 32,
|
| 733 |
+
"bits": 8,
|
| 734 |
+
"mode": "mxfp8"
|
| 735 |
+
},
|
| 736 |
+
"language_model.model.layers.21.mlp.switch_mlp.down_proj": {
|
| 737 |
+
"group_size": 32,
|
| 738 |
+
"bits": 8,
|
| 739 |
+
"mode": "mxfp8"
|
| 740 |
+
},
|
| 741 |
+
"language_model.model.layers.22.mlp.switch_mlp.gate_proj": {
|
| 742 |
+
"group_size": 32,
|
| 743 |
+
"bits": 8,
|
| 744 |
+
"mode": "mxfp8"
|
| 745 |
+
},
|
| 746 |
+
"language_model.model.layers.22.mlp.switch_mlp.up_proj": {
|
| 747 |
+
"group_size": 32,
|
| 748 |
+
"bits": 8,
|
| 749 |
+
"mode": "mxfp8"
|
| 750 |
+
},
|
| 751 |
+
"language_model.model.layers.22.mlp.switch_mlp.down_proj": {
|
| 752 |
+
"group_size": 32,
|
| 753 |
+
"bits": 8,
|
| 754 |
+
"mode": "mxfp8"
|
| 755 |
+
},
|
| 756 |
+
"language_model.model.layers.23.mlp.switch_mlp.gate_proj": {
|
| 757 |
+
"group_size": 32,
|
| 758 |
+
"bits": 8,
|
| 759 |
+
"mode": "mxfp8"
|
| 760 |
+
},
|
| 761 |
+
"language_model.model.layers.23.mlp.switch_mlp.up_proj": {
|
| 762 |
+
"group_size": 32,
|
| 763 |
+
"bits": 8,
|
| 764 |
+
"mode": "mxfp8"
|
| 765 |
+
},
|
| 766 |
+
"language_model.model.layers.23.mlp.switch_mlp.down_proj": {
|
| 767 |
+
"group_size": 32,
|
| 768 |
+
"bits": 8,
|
| 769 |
+
"mode": "mxfp8"
|
| 770 |
+
}
|
| 771 |
+
},
|
| 772 |
+
"temperature": 1.0,
|
| 773 |
+
"text_config": {
|
| 774 |
+
"model_type": "inkling2_loop_text",
|
| 775 |
+
"model_max_length": 1048576,
|
| 776 |
+
"torch_dtype": "bfloat16",
|
| 777 |
+
"hidden_size": 2304,
|
| 778 |
+
"num_hidden_layers": 24,
|
| 779 |
+
"vocab_size": 201024,
|
| 780 |
+
"num_attention_heads": 24,
|
| 781 |
+
"num_key_value_heads": 8,
|
| 782 |
+
"head_dim": 128,
|
| 783 |
+
"d_rel": 16,
|
| 784 |
+
"rel_extent": 1024,
|
| 785 |
+
"q_bias": false,
|
| 786 |
+
"o_bias": false,
|
| 787 |
+
"log_scaling_n_floor": 8192,
|
| 788 |
+
"log_scaling_alpha": 0.1,
|
| 789 |
+
"rms_norm_eps": 1e-06,
|
| 790 |
+
"use_value_norm_no_gamma": true,
|
| 791 |
+
"qk_l2_clip_threshold": 22.627416997969522,
|
| 792 |
+
"rel_l2_clip_threshold": 8.0,
|
| 793 |
+
"local_layer_ids": [
|
| 794 |
+
0,
|
| 795 |
+
1,
|
| 796 |
+
2,
|
| 797 |
+
3,
|
| 798 |
+
4,
|
| 799 |
+
6,
|
| 800 |
+
7,
|
| 801 |
+
8,
|
| 802 |
+
9,
|
| 803 |
+
10,
|
| 804 |
+
12,
|
| 805 |
+
13,
|
| 806 |
+
14,
|
| 807 |
+
15,
|
| 808 |
+
16,
|
| 809 |
+
18,
|
| 810 |
+
19,
|
| 811 |
+
20,
|
| 812 |
+
21,
|
| 813 |
+
22
|
| 814 |
+
],
|
| 815 |
+
"sconv_kernel_size": 4,
|
| 816 |
+
"unpadded_vocab_size": 200058,
|
| 817 |
+
"final_logit_softcapping": 30.0,
|
| 818 |
+
"swa_head_dim": 128,
|
| 819 |
+
"swa_num_attention_heads": 24,
|
| 820 |
+
"swa_num_key_value_heads": 8,
|
| 821 |
+
"sliding_window_size": 1024,
|
| 822 |
+
"n_layers_per_attn_res_block": 6,
|
| 823 |
+
"attn_res_normalize_values": true,
|
| 824 |
+
"n_routed_experts": 128,
|
| 825 |
+
"num_experts_per_tok": 8,
|
| 826 |
+
"n_shared_experts": 0,
|
| 827 |
+
"intermediate_size": 1152,
|
| 828 |
+
"mlp_gate_softcap": 4.0,
|
| 829 |
+
"mlp_up_softcap": 25.0,
|
| 830 |
+
"route_scale": 8.0,
|
| 831 |
+
"use_gate_bias": true,
|
| 832 |
+
"loop_config": {
|
| 833 |
+
"core_start": 6,
|
| 834 |
+
"core_end": 18,
|
| 835 |
+
"num_passes": 3,
|
| 836 |
+
"gate_rank": 64,
|
| 837 |
+
"is_varloop": false
|
| 838 |
+
}
|
| 839 |
+
},
|
| 840 |
+
"vision_config": {
|
| 841 |
+
"model_type": "inkling2_vision",
|
| 842 |
+
"text_hidden_size": 2304,
|
| 843 |
+
"temporal_patch_size": 2,
|
| 844 |
+
"native_patch_size": 20,
|
| 845 |
+
"adapter_merge_size": 2,
|
| 846 |
+
"projection_hidden_dim": 4096,
|
| 847 |
+
"projector_bias": false,
|
| 848 |
+
"hidden_size": 1024,
|
| 849 |
+
"num_hidden_layers": 23,
|
| 850 |
+
"num_attention_heads": 16,
|
| 851 |
+
"mlp_ratio": 4.0,
|
| 852 |
+
"posemb_grid_size": 32,
|
| 853 |
+
"layer_norm_eps": 1e-05
|
| 854 |
+
}
|
| 855 |
+
}
|
conversion.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"source_model": "thinkingmachines/Inkling-2-Mini",
|
| 3 |
+
"source_revision": "6e7c8248f75265bdd4fbab5273304243b5d8c2cb",
|
| 4 |
+
"mlx_vlm_base_revision": "392052b4439cf027ab42674d9977f62bb3dfa056",
|
| 5 |
+
"mlx_vlm_version": "0.8.0+inkling2mini",
|
| 6 |
+
"mlx_version": "0.32.4",
|
| 7 |
+
"transformers_version": "5.23.0",
|
| 8 |
+
"conversion": "MLX-native tensor renaming, gate/up row separation, and packed layout conversion; source expert precision retained.",
|
| 9 |
+
"target_weight_bytes": 19526043704,
|
| 10 |
+
"draft_weight_bytes": 635801416,
|
| 11 |
+
"runtime_patch_sha256": "e504b0e41d86939b1b1753abfb752151c64ceb9911df09eef83f8a1fabb42546"
|
| 12 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_sample": true,
|
| 3 |
+
"temperature": 1.0,
|
| 4 |
+
"eos_token_id": 200006,
|
| 5 |
+
"pad_token_id": 199999
|
| 6 |
+
}
|
hf_quant_config.json
ADDED
|
@@ -0,0 +1,1255 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": {
|
| 3 |
+
"parameter_groups": [
|
| 4 |
+
{
|
| 5 |
+
"compute_dtype": "float32",
|
| 6 |
+
"output_dtype": "float32",
|
| 7 |
+
"required_activation_quantization": null,
|
| 8 |
+
"tensors": [
|
| 9 |
+
"model.llm.attn_res.attn_queries.0",
|
| 10 |
+
"model.llm.attn_res.attn_queries.1",
|
| 11 |
+
"model.llm.attn_res.attn_queries.10",
|
| 12 |
+
"model.llm.attn_res.attn_queries.11",
|
| 13 |
+
"model.llm.attn_res.attn_queries.12",
|
| 14 |
+
"model.llm.attn_res.attn_queries.13",
|
| 15 |
+
"model.llm.attn_res.attn_queries.14",
|
| 16 |
+
"model.llm.attn_res.attn_queries.15",
|
| 17 |
+
"model.llm.attn_res.attn_queries.16",
|
| 18 |
+
"model.llm.attn_res.attn_queries.17",
|
| 19 |
+
"model.llm.attn_res.attn_queries.18",
|
| 20 |
+
"model.llm.attn_res.attn_queries.19",
|
| 21 |
+
"model.llm.attn_res.attn_queries.2",
|
| 22 |
+
"model.llm.attn_res.attn_queries.20",
|
| 23 |
+
"model.llm.attn_res.attn_queries.21",
|
| 24 |
+
"model.llm.attn_res.attn_queries.22",
|
| 25 |
+
"model.llm.attn_res.attn_queries.3",
|
| 26 |
+
"model.llm.attn_res.attn_queries.4",
|
| 27 |
+
"model.llm.attn_res.attn_queries.5",
|
| 28 |
+
"model.llm.attn_res.attn_queries.6",
|
| 29 |
+
"model.llm.attn_res.attn_queries.7",
|
| 30 |
+
"model.llm.attn_res.attn_queries.8",
|
| 31 |
+
"model.llm.attn_res.attn_queries.9",
|
| 32 |
+
"model.llm.attn_res.mlp_queries.0",
|
| 33 |
+
"model.llm.attn_res.mlp_queries.1",
|
| 34 |
+
"model.llm.attn_res.mlp_queries.10",
|
| 35 |
+
"model.llm.attn_res.mlp_queries.11",
|
| 36 |
+
"model.llm.attn_res.mlp_queries.12",
|
| 37 |
+
"model.llm.attn_res.mlp_queries.13",
|
| 38 |
+
"model.llm.attn_res.mlp_queries.14",
|
| 39 |
+
"model.llm.attn_res.mlp_queries.15",
|
| 40 |
+
"model.llm.attn_res.mlp_queries.16",
|
| 41 |
+
"model.llm.attn_res.mlp_queries.17",
|
| 42 |
+
"model.llm.attn_res.mlp_queries.18",
|
| 43 |
+
"model.llm.attn_res.mlp_queries.19",
|
| 44 |
+
"model.llm.attn_res.mlp_queries.2",
|
| 45 |
+
"model.llm.attn_res.mlp_queries.20",
|
| 46 |
+
"model.llm.attn_res.mlp_queries.21",
|
| 47 |
+
"model.llm.attn_res.mlp_queries.22",
|
| 48 |
+
"model.llm.attn_res.mlp_queries.23",
|
| 49 |
+
"model.llm.attn_res.mlp_queries.3",
|
| 50 |
+
"model.llm.attn_res.mlp_queries.4",
|
| 51 |
+
"model.llm.attn_res.mlp_queries.5",
|
| 52 |
+
"model.llm.attn_res.mlp_queries.6",
|
| 53 |
+
"model.llm.attn_res.mlp_queries.7",
|
| 54 |
+
"model.llm.attn_res.mlp_queries.8",
|
| 55 |
+
"model.llm.attn_res.mlp_queries.9",
|
| 56 |
+
"model.llm.attn_res.output_query",
|
| 57 |
+
"model.llm.layers.0.mlp.gate.bias",
|
| 58 |
+
"model.llm.layers.1.mlp.gate.bias",
|
| 59 |
+
"model.llm.layers.10.mlp.gate.bias",
|
| 60 |
+
"model.llm.layers.11.mlp.gate.bias",
|
| 61 |
+
"model.llm.layers.12.mlp.gate.bias",
|
| 62 |
+
"model.llm.layers.13.mlp.gate.bias",
|
| 63 |
+
"model.llm.layers.14.mlp.gate.bias",
|
| 64 |
+
"model.llm.layers.15.mlp.gate.bias",
|
| 65 |
+
"model.llm.layers.16.mlp.gate.bias",
|
| 66 |
+
"model.llm.layers.17.mlp.gate.bias",
|
| 67 |
+
"model.llm.layers.18.mlp.gate.bias",
|
| 68 |
+
"model.llm.layers.19.mlp.gate.bias",
|
| 69 |
+
"model.llm.layers.2.mlp.gate.bias",
|
| 70 |
+
"model.llm.layers.20.mlp.gate.bias",
|
| 71 |
+
"model.llm.layers.21.mlp.gate.bias",
|
| 72 |
+
"model.llm.layers.22.mlp.gate.bias",
|
| 73 |
+
"model.llm.layers.23.mlp.gate.bias",
|
| 74 |
+
"model.llm.layers.3.mlp.gate.bias",
|
| 75 |
+
"model.llm.layers.4.mlp.gate.bias",
|
| 76 |
+
"model.llm.layers.5.mlp.gate.bias",
|
| 77 |
+
"model.llm.layers.6.mlp.gate.bias",
|
| 78 |
+
"model.llm.layers.7.mlp.gate.bias",
|
| 79 |
+
"model.llm.layers.8.mlp.gate.bias",
|
| 80 |
+
"model.llm.layers.9.mlp.gate.bias",
|
| 81 |
+
"model.llm.middle_cycle_cross_pass_kv_queries",
|
| 82 |
+
"model.llm.middle_cycle_cross_pass_queries"
|
| 83 |
+
],
|
| 84 |
+
"weight_block_shape": [],
|
| 85 |
+
"weight_transform": "cast"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"compute_dtype": "bfloat16",
|
| 89 |
+
"output_dtype": "bfloat16",
|
| 90 |
+
"required_activation_quantization": null,
|
| 91 |
+
"tensors": [
|
| 92 |
+
"model.llm.embed.weight",
|
| 93 |
+
"model.llm.embed_norm.weight",
|
| 94 |
+
"model.llm.layers.0.attn.attn_sink_proj.weight",
|
| 95 |
+
"model.llm.layers.0.attn.gate_attn.weight",
|
| 96 |
+
"model.llm.layers.0.attn.k_sconv.weight",
|
| 97 |
+
"model.llm.layers.0.attn.q_l2_clip.scale",
|
| 98 |
+
"model.llm.layers.0.attn.rel_l2_clip.scale",
|
| 99 |
+
"model.llm.layers.0.attn.rel_logits_proj.proj",
|
| 100 |
+
"model.llm.layers.0.attn.v_sconv.weight",
|
| 101 |
+
"model.llm.layers.0.attn.wk_dv.weight",
|
| 102 |
+
"model.llm.layers.0.attn.wo_ud.weight",
|
| 103 |
+
"model.llm.layers.0.attn.wq_du.weight",
|
| 104 |
+
"model.llm.layers.0.attn.wr_du.weight",
|
| 105 |
+
"model.llm.layers.0.attn.wv_dv.weight",
|
| 106 |
+
"model.llm.layers.0.attn_norm.weight",
|
| 107 |
+
"model.llm.layers.0.attn_sconv.weight",
|
| 108 |
+
"model.llm.layers.0.mlp.gate.weight",
|
| 109 |
+
"model.llm.layers.0.mlp_norm.weight",
|
| 110 |
+
"model.llm.layers.0.mlp_sconv.weight",
|
| 111 |
+
"model.llm.layers.1.attn.attn_sink_proj.weight",
|
| 112 |
+
"model.llm.layers.1.attn.gate_attn.weight",
|
| 113 |
+
"model.llm.layers.1.attn.k_sconv.weight",
|
| 114 |
+
"model.llm.layers.1.attn.q_l2_clip.scale",
|
| 115 |
+
"model.llm.layers.1.attn.rel_l2_clip.scale",
|
| 116 |
+
"model.llm.layers.1.attn.rel_logits_proj.proj",
|
| 117 |
+
"model.llm.layers.1.attn.v_sconv.weight",
|
| 118 |
+
"model.llm.layers.1.attn.wk_dv.weight",
|
| 119 |
+
"model.llm.layers.1.attn.wo_ud.weight",
|
| 120 |
+
"model.llm.layers.1.attn.wq_du.weight",
|
| 121 |
+
"model.llm.layers.1.attn.wr_du.weight",
|
| 122 |
+
"model.llm.layers.1.attn.wv_dv.weight",
|
| 123 |
+
"model.llm.layers.1.attn_norm.weight",
|
| 124 |
+
"model.llm.layers.1.attn_sconv.weight",
|
| 125 |
+
"model.llm.layers.1.mlp.gate.weight",
|
| 126 |
+
"model.llm.layers.1.mlp_norm.weight",
|
| 127 |
+
"model.llm.layers.1.mlp_sconv.weight",
|
| 128 |
+
"model.llm.layers.10.attn.attn_sink_proj.weight",
|
| 129 |
+
"model.llm.layers.10.attn.gate_attn.weight",
|
| 130 |
+
"model.llm.layers.10.attn.k_sconv.weight",
|
| 131 |
+
"model.llm.layers.10.attn.q_l2_clip.scale",
|
| 132 |
+
"model.llm.layers.10.attn.rel_l2_clip.scale",
|
| 133 |
+
"model.llm.layers.10.attn.rel_logits_proj.proj",
|
| 134 |
+
"model.llm.layers.10.attn.v_sconv.weight",
|
| 135 |
+
"model.llm.layers.10.attn.wk_dv.weight",
|
| 136 |
+
"model.llm.layers.10.attn.wo_ud.weight",
|
| 137 |
+
"model.llm.layers.10.attn.wq_du.weight",
|
| 138 |
+
"model.llm.layers.10.attn.wr_du.weight",
|
| 139 |
+
"model.llm.layers.10.attn.wv_dv.weight",
|
| 140 |
+
"model.llm.layers.10.attn_norm.weight",
|
| 141 |
+
"model.llm.layers.10.attn_sconv.weight",
|
| 142 |
+
"model.llm.layers.10.controllers.attn.down_weight",
|
| 143 |
+
"model.llm.layers.10.controllers.attn.forget_weight",
|
| 144 |
+
"model.llm.layers.10.controllers.attn.gain_weight",
|
| 145 |
+
"model.llm.layers.10.controllers.k.down_weight",
|
| 146 |
+
"model.llm.layers.10.controllers.k.forget_weight",
|
| 147 |
+
"model.llm.layers.10.controllers.k.gain_weight",
|
| 148 |
+
"model.llm.layers.10.controllers.mlp.down_weight",
|
| 149 |
+
"model.llm.layers.10.controllers.mlp.forget_weight",
|
| 150 |
+
"model.llm.layers.10.controllers.mlp.gain_weight",
|
| 151 |
+
"model.llm.layers.10.controllers.v.down_weight",
|
| 152 |
+
"model.llm.layers.10.controllers.v.forget_weight",
|
| 153 |
+
"model.llm.layers.10.controllers.v.gain_weight",
|
| 154 |
+
"model.llm.layers.10.mlp.gate.weight",
|
| 155 |
+
"model.llm.layers.10.mlp_norm.weight",
|
| 156 |
+
"model.llm.layers.10.mlp_sconv.weight",
|
| 157 |
+
"model.llm.layers.11.attn.attn_sink_proj.weight",
|
| 158 |
+
"model.llm.layers.11.attn.gate_attn.weight",
|
| 159 |
+
"model.llm.layers.11.attn.k_sconv.static_w",
|
| 160 |
+
"model.llm.layers.11.attn.k_sconv.weight_proj",
|
| 161 |
+
"model.llm.layers.11.attn.q_l2_clip.scale",
|
| 162 |
+
"model.llm.layers.11.attn.rel_l2_clip.scale",
|
| 163 |
+
"model.llm.layers.11.attn.rel_logits_proj.proj",
|
| 164 |
+
"model.llm.layers.11.attn.v_sconv.static_w",
|
| 165 |
+
"model.llm.layers.11.attn.v_sconv.weight_proj",
|
| 166 |
+
"model.llm.layers.11.attn.wk_dv.weight",
|
| 167 |
+
"model.llm.layers.11.attn.wo_ud.weight",
|
| 168 |
+
"model.llm.layers.11.attn.wq_du.weight",
|
| 169 |
+
"model.llm.layers.11.attn.wr_du.weight",
|
| 170 |
+
"model.llm.layers.11.attn.wv_dv.weight",
|
| 171 |
+
"model.llm.layers.11.attn_sconv.weight",
|
| 172 |
+
"model.llm.layers.11.controllers.attn.down_weight",
|
| 173 |
+
"model.llm.layers.11.controllers.attn.forget_weight",
|
| 174 |
+
"model.llm.layers.11.controllers.attn.gain_weight",
|
| 175 |
+
"model.llm.layers.11.controllers.k.down_weight",
|
| 176 |
+
"model.llm.layers.11.controllers.k.forget_weight",
|
| 177 |
+
"model.llm.layers.11.controllers.k.gain_weight",
|
| 178 |
+
"model.llm.layers.11.controllers.mlp.down_weight",
|
| 179 |
+
"model.llm.layers.11.controllers.mlp.forget_weight",
|
| 180 |
+
"model.llm.layers.11.controllers.mlp.gain_weight",
|
| 181 |
+
"model.llm.layers.11.controllers.v.down_weight",
|
| 182 |
+
"model.llm.layers.11.controllers.v.forget_weight",
|
| 183 |
+
"model.llm.layers.11.controllers.v.gain_weight",
|
| 184 |
+
"model.llm.layers.11.k_input_norm.weight",
|
| 185 |
+
"model.llm.layers.11.mlp.gate.weight",
|
| 186 |
+
"model.llm.layers.11.mlp_norm.weight",
|
| 187 |
+
"model.llm.layers.11.mlp_sconv.weight",
|
| 188 |
+
"model.llm.layers.11.q_input_norm.weight",
|
| 189 |
+
"model.llm.layers.11.v_input_norm.weight",
|
| 190 |
+
"model.llm.layers.12.attn.attn_sink_proj.weight",
|
| 191 |
+
"model.llm.layers.12.attn.gate_attn.weight",
|
| 192 |
+
"model.llm.layers.12.attn.k_sconv.weight",
|
| 193 |
+
"model.llm.layers.12.attn.q_l2_clip.scale",
|
| 194 |
+
"model.llm.layers.12.attn.rel_l2_clip.scale",
|
| 195 |
+
"model.llm.layers.12.attn.rel_logits_proj.proj",
|
| 196 |
+
"model.llm.layers.12.attn.v_sconv.weight",
|
| 197 |
+
"model.llm.layers.12.attn.wk_dv.weight",
|
| 198 |
+
"model.llm.layers.12.attn.wo_ud.weight",
|
| 199 |
+
"model.llm.layers.12.attn.wq_du.weight",
|
| 200 |
+
"model.llm.layers.12.attn.wr_du.weight",
|
| 201 |
+
"model.llm.layers.12.attn.wv_dv.weight",
|
| 202 |
+
"model.llm.layers.12.attn_norm.weight",
|
| 203 |
+
"model.llm.layers.12.attn_sconv.weight",
|
| 204 |
+
"model.llm.layers.12.controllers.attn.down_weight",
|
| 205 |
+
"model.llm.layers.12.controllers.attn.forget_weight",
|
| 206 |
+
"model.llm.layers.12.controllers.attn.gain_weight",
|
| 207 |
+
"model.llm.layers.12.controllers.k.down_weight",
|
| 208 |
+
"model.llm.layers.12.controllers.k.forget_weight",
|
| 209 |
+
"model.llm.layers.12.controllers.k.gain_weight",
|
| 210 |
+
"model.llm.layers.12.controllers.mlp.down_weight",
|
| 211 |
+
"model.llm.layers.12.controllers.mlp.forget_weight",
|
| 212 |
+
"model.llm.layers.12.controllers.mlp.gain_weight",
|
| 213 |
+
"model.llm.layers.12.controllers.v.down_weight",
|
| 214 |
+
"model.llm.layers.12.controllers.v.forget_weight",
|
| 215 |
+
"model.llm.layers.12.controllers.v.gain_weight",
|
| 216 |
+
"model.llm.layers.12.mlp.gate.weight",
|
| 217 |
+
"model.llm.layers.12.mlp_norm.weight",
|
| 218 |
+
"model.llm.layers.12.mlp_sconv.weight",
|
| 219 |
+
"model.llm.layers.13.attn.attn_sink_proj.weight",
|
| 220 |
+
"model.llm.layers.13.attn.gate_attn.weight",
|
| 221 |
+
"model.llm.layers.13.attn.k_sconv.weight",
|
| 222 |
+
"model.llm.layers.13.attn.q_l2_clip.scale",
|
| 223 |
+
"model.llm.layers.13.attn.rel_l2_clip.scale",
|
| 224 |
+
"model.llm.layers.13.attn.rel_logits_proj.proj",
|
| 225 |
+
"model.llm.layers.13.attn.v_sconv.weight",
|
| 226 |
+
"model.llm.layers.13.attn.wk_dv.weight",
|
| 227 |
+
"model.llm.layers.13.attn.wo_ud.weight",
|
| 228 |
+
"model.llm.layers.13.attn.wq_du.weight",
|
| 229 |
+
"model.llm.layers.13.attn.wr_du.weight",
|
| 230 |
+
"model.llm.layers.13.attn.wv_dv.weight",
|
| 231 |
+
"model.llm.layers.13.attn_norm.weight",
|
| 232 |
+
"model.llm.layers.13.attn_sconv.weight",
|
| 233 |
+
"model.llm.layers.13.controllers.attn.down_weight",
|
| 234 |
+
"model.llm.layers.13.controllers.attn.forget_weight",
|
| 235 |
+
"model.llm.layers.13.controllers.attn.gain_weight",
|
| 236 |
+
"model.llm.layers.13.controllers.k.down_weight",
|
| 237 |
+
"model.llm.layers.13.controllers.k.forget_weight",
|
| 238 |
+
"model.llm.layers.13.controllers.k.gain_weight",
|
| 239 |
+
"model.llm.layers.13.controllers.mlp.down_weight",
|
| 240 |
+
"model.llm.layers.13.controllers.mlp.forget_weight",
|
| 241 |
+
"model.llm.layers.13.controllers.mlp.gain_weight",
|
| 242 |
+
"model.llm.layers.13.controllers.v.down_weight",
|
| 243 |
+
"model.llm.layers.13.controllers.v.forget_weight",
|
| 244 |
+
"model.llm.layers.13.controllers.v.gain_weight",
|
| 245 |
+
"model.llm.layers.13.mlp.gate.weight",
|
| 246 |
+
"model.llm.layers.13.mlp_norm.weight",
|
| 247 |
+
"model.llm.layers.13.mlp_sconv.weight",
|
| 248 |
+
"model.llm.layers.14.attn.attn_sink_proj.weight",
|
| 249 |
+
"model.llm.layers.14.attn.gate_attn.weight",
|
| 250 |
+
"model.llm.layers.14.attn.k_sconv.weight",
|
| 251 |
+
"model.llm.layers.14.attn.q_l2_clip.scale",
|
| 252 |
+
"model.llm.layers.14.attn.rel_l2_clip.scale",
|
| 253 |
+
"model.llm.layers.14.attn.rel_logits_proj.proj",
|
| 254 |
+
"model.llm.layers.14.attn.v_sconv.weight",
|
| 255 |
+
"model.llm.layers.14.attn.wk_dv.weight",
|
| 256 |
+
"model.llm.layers.14.attn.wo_ud.weight",
|
| 257 |
+
"model.llm.layers.14.attn.wq_du.weight",
|
| 258 |
+
"model.llm.layers.14.attn.wr_du.weight",
|
| 259 |
+
"model.llm.layers.14.attn.wv_dv.weight",
|
| 260 |
+
"model.llm.layers.14.attn_norm.weight",
|
| 261 |
+
"model.llm.layers.14.attn_sconv.weight",
|
| 262 |
+
"model.llm.layers.14.controllers.attn.down_weight",
|
| 263 |
+
"model.llm.layers.14.controllers.attn.forget_weight",
|
| 264 |
+
"model.llm.layers.14.controllers.attn.gain_weight",
|
| 265 |
+
"model.llm.layers.14.controllers.k.down_weight",
|
| 266 |
+
"model.llm.layers.14.controllers.k.forget_weight",
|
| 267 |
+
"model.llm.layers.14.controllers.k.gain_weight",
|
| 268 |
+
"model.llm.layers.14.controllers.mlp.down_weight",
|
| 269 |
+
"model.llm.layers.14.controllers.mlp.forget_weight",
|
| 270 |
+
"model.llm.layers.14.controllers.mlp.gain_weight",
|
| 271 |
+
"model.llm.layers.14.controllers.v.down_weight",
|
| 272 |
+
"model.llm.layers.14.controllers.v.forget_weight",
|
| 273 |
+
"model.llm.layers.14.controllers.v.gain_weight",
|
| 274 |
+
"model.llm.layers.14.mlp.gate.weight",
|
| 275 |
+
"model.llm.layers.14.mlp_norm.weight",
|
| 276 |
+
"model.llm.layers.14.mlp_sconv.weight",
|
| 277 |
+
"model.llm.layers.15.attn.attn_sink_proj.weight",
|
| 278 |
+
"model.llm.layers.15.attn.gate_attn.weight",
|
| 279 |
+
"model.llm.layers.15.attn.k_sconv.weight",
|
| 280 |
+
"model.llm.layers.15.attn.q_l2_clip.scale",
|
| 281 |
+
"model.llm.layers.15.attn.rel_l2_clip.scale",
|
| 282 |
+
"model.llm.layers.15.attn.rel_logits_proj.proj",
|
| 283 |
+
"model.llm.layers.15.attn.v_sconv.weight",
|
| 284 |
+
"model.llm.layers.15.attn.wk_dv.weight",
|
| 285 |
+
"model.llm.layers.15.attn.wo_ud.weight",
|
| 286 |
+
"model.llm.layers.15.attn.wq_du.weight",
|
| 287 |
+
"model.llm.layers.15.attn.wr_du.weight",
|
| 288 |
+
"model.llm.layers.15.attn.wv_dv.weight",
|
| 289 |
+
"model.llm.layers.15.attn_norm.weight",
|
| 290 |
+
"model.llm.layers.15.attn_sconv.weight",
|
| 291 |
+
"model.llm.layers.15.controllers.attn.down_weight",
|
| 292 |
+
"model.llm.layers.15.controllers.attn.forget_weight",
|
| 293 |
+
"model.llm.layers.15.controllers.attn.gain_weight",
|
| 294 |
+
"model.llm.layers.15.controllers.k.down_weight",
|
| 295 |
+
"model.llm.layers.15.controllers.k.forget_weight",
|
| 296 |
+
"model.llm.layers.15.controllers.k.gain_weight",
|
| 297 |
+
"model.llm.layers.15.controllers.mlp.down_weight",
|
| 298 |
+
"model.llm.layers.15.controllers.mlp.forget_weight",
|
| 299 |
+
"model.llm.layers.15.controllers.mlp.gain_weight",
|
| 300 |
+
"model.llm.layers.15.controllers.v.down_weight",
|
| 301 |
+
"model.llm.layers.15.controllers.v.forget_weight",
|
| 302 |
+
"model.llm.layers.15.controllers.v.gain_weight",
|
| 303 |
+
"model.llm.layers.15.mlp.gate.weight",
|
| 304 |
+
"model.llm.layers.15.mlp_norm.weight",
|
| 305 |
+
"model.llm.layers.15.mlp_sconv.weight",
|
| 306 |
+
"model.llm.layers.16.attn.attn_sink_proj.weight",
|
| 307 |
+
"model.llm.layers.16.attn.gate_attn.weight",
|
| 308 |
+
"model.llm.layers.16.attn.k_sconv.weight",
|
| 309 |
+
"model.llm.layers.16.attn.q_l2_clip.scale",
|
| 310 |
+
"model.llm.layers.16.attn.rel_l2_clip.scale",
|
| 311 |
+
"model.llm.layers.16.attn.rel_logits_proj.proj",
|
| 312 |
+
"model.llm.layers.16.attn.v_sconv.weight",
|
| 313 |
+
"model.llm.layers.16.attn.wk_dv.weight",
|
| 314 |
+
"model.llm.layers.16.attn.wo_ud.weight",
|
| 315 |
+
"model.llm.layers.16.attn.wq_du.weight",
|
| 316 |
+
"model.llm.layers.16.attn.wr_du.weight",
|
| 317 |
+
"model.llm.layers.16.attn.wv_dv.weight",
|
| 318 |
+
"model.llm.layers.16.attn_norm.weight",
|
| 319 |
+
"model.llm.layers.16.attn_sconv.weight",
|
| 320 |
+
"model.llm.layers.16.controllers.attn.down_weight",
|
| 321 |
+
"model.llm.layers.16.controllers.attn.forget_weight",
|
| 322 |
+
"model.llm.layers.16.controllers.attn.gain_weight",
|
| 323 |
+
"model.llm.layers.16.controllers.k.down_weight",
|
| 324 |
+
"model.llm.layers.16.controllers.k.forget_weight",
|
| 325 |
+
"model.llm.layers.16.controllers.k.gain_weight",
|
| 326 |
+
"model.llm.layers.16.controllers.mlp.down_weight",
|
| 327 |
+
"model.llm.layers.16.controllers.mlp.forget_weight",
|
| 328 |
+
"model.llm.layers.16.controllers.mlp.gain_weight",
|
| 329 |
+
"model.llm.layers.16.controllers.v.down_weight",
|
| 330 |
+
"model.llm.layers.16.controllers.v.forget_weight",
|
| 331 |
+
"model.llm.layers.16.controllers.v.gain_weight",
|
| 332 |
+
"model.llm.layers.16.mlp.gate.weight",
|
| 333 |
+
"model.llm.layers.16.mlp_norm.weight",
|
| 334 |
+
"model.llm.layers.16.mlp_sconv.weight",
|
| 335 |
+
"model.llm.layers.17.attn.attn_sink_proj.weight",
|
| 336 |
+
"model.llm.layers.17.attn.gate_attn.weight",
|
| 337 |
+
"model.llm.layers.17.attn.k_sconv.static_w",
|
| 338 |
+
"model.llm.layers.17.attn.k_sconv.weight_proj",
|
| 339 |
+
"model.llm.layers.17.attn.q_l2_clip.scale",
|
| 340 |
+
"model.llm.layers.17.attn.rel_l2_clip.scale",
|
| 341 |
+
"model.llm.layers.17.attn.rel_logits_proj.proj",
|
| 342 |
+
"model.llm.layers.17.attn.v_sconv.static_w",
|
| 343 |
+
"model.llm.layers.17.attn.v_sconv.weight_proj",
|
| 344 |
+
"model.llm.layers.17.attn.wk_dv.weight",
|
| 345 |
+
"model.llm.layers.17.attn.wo_ud.weight",
|
| 346 |
+
"model.llm.layers.17.attn.wq_du.weight",
|
| 347 |
+
"model.llm.layers.17.attn.wr_du.weight",
|
| 348 |
+
"model.llm.layers.17.attn.wv_dv.weight",
|
| 349 |
+
"model.llm.layers.17.attn_sconv.weight",
|
| 350 |
+
"model.llm.layers.17.controllers.attn.down_weight",
|
| 351 |
+
"model.llm.layers.17.controllers.attn.forget_weight",
|
| 352 |
+
"model.llm.layers.17.controllers.attn.gain_weight",
|
| 353 |
+
"model.llm.layers.17.controllers.k.down_weight",
|
| 354 |
+
"model.llm.layers.17.controllers.k.forget_weight",
|
| 355 |
+
"model.llm.layers.17.controllers.k.gain_weight",
|
| 356 |
+
"model.llm.layers.17.controllers.mlp.down_weight",
|
| 357 |
+
"model.llm.layers.17.controllers.mlp.forget_weight",
|
| 358 |
+
"model.llm.layers.17.controllers.mlp.gain_weight",
|
| 359 |
+
"model.llm.layers.17.controllers.v.down_weight",
|
| 360 |
+
"model.llm.layers.17.controllers.v.forget_weight",
|
| 361 |
+
"model.llm.layers.17.controllers.v.gain_weight",
|
| 362 |
+
"model.llm.layers.17.k_input_norm.weight",
|
| 363 |
+
"model.llm.layers.17.mlp.gate.weight",
|
| 364 |
+
"model.llm.layers.17.mlp_norm.weight",
|
| 365 |
+
"model.llm.layers.17.mlp_sconv.weight",
|
| 366 |
+
"model.llm.layers.17.q_input_norm.weight",
|
| 367 |
+
"model.llm.layers.17.v_input_norm.weight",
|
| 368 |
+
"model.llm.layers.18.attn.attn_sink_proj.weight",
|
| 369 |
+
"model.llm.layers.18.attn.gate_attn.weight",
|
| 370 |
+
"model.llm.layers.18.attn.k_sconv.weight",
|
| 371 |
+
"model.llm.layers.18.attn.q_l2_clip.scale",
|
| 372 |
+
"model.llm.layers.18.attn.rel_l2_clip.scale",
|
| 373 |
+
"model.llm.layers.18.attn.rel_logits_proj.proj",
|
| 374 |
+
"model.llm.layers.18.attn.v_sconv.weight",
|
| 375 |
+
"model.llm.layers.18.attn.wk_dv.weight",
|
| 376 |
+
"model.llm.layers.18.attn.wo_ud.weight",
|
| 377 |
+
"model.llm.layers.18.attn.wq_du.weight",
|
| 378 |
+
"model.llm.layers.18.attn.wr_du.weight",
|
| 379 |
+
"model.llm.layers.18.attn.wv_dv.weight",
|
| 380 |
+
"model.llm.layers.18.attn_norm.weight",
|
| 381 |
+
"model.llm.layers.18.attn_sconv.weight",
|
| 382 |
+
"model.llm.layers.18.mlp.gate.weight",
|
| 383 |
+
"model.llm.layers.18.mlp_norm.weight",
|
| 384 |
+
"model.llm.layers.18.mlp_sconv.weight",
|
| 385 |
+
"model.llm.layers.19.attn.attn_sink_proj.weight",
|
| 386 |
+
"model.llm.layers.19.attn.gate_attn.weight",
|
| 387 |
+
"model.llm.layers.19.attn.k_sconv.weight",
|
| 388 |
+
"model.llm.layers.19.attn.q_l2_clip.scale",
|
| 389 |
+
"model.llm.layers.19.attn.rel_l2_clip.scale",
|
| 390 |
+
"model.llm.layers.19.attn.rel_logits_proj.proj",
|
| 391 |
+
"model.llm.layers.19.attn.v_sconv.weight",
|
| 392 |
+
"model.llm.layers.19.attn.wk_dv.weight",
|
| 393 |
+
"model.llm.layers.19.attn.wo_ud.weight",
|
| 394 |
+
"model.llm.layers.19.attn.wq_du.weight",
|
| 395 |
+
"model.llm.layers.19.attn.wr_du.weight",
|
| 396 |
+
"model.llm.layers.19.attn.wv_dv.weight",
|
| 397 |
+
"model.llm.layers.19.attn_norm.weight",
|
| 398 |
+
"model.llm.layers.19.attn_sconv.weight",
|
| 399 |
+
"model.llm.layers.19.mlp.gate.weight",
|
| 400 |
+
"model.llm.layers.19.mlp_norm.weight",
|
| 401 |
+
"model.llm.layers.19.mlp_sconv.weight",
|
| 402 |
+
"model.llm.layers.2.attn.attn_sink_proj.weight",
|
| 403 |
+
"model.llm.layers.2.attn.gate_attn.weight",
|
| 404 |
+
"model.llm.layers.2.attn.k_sconv.weight",
|
| 405 |
+
"model.llm.layers.2.attn.q_l2_clip.scale",
|
| 406 |
+
"model.llm.layers.2.attn.rel_l2_clip.scale",
|
| 407 |
+
"model.llm.layers.2.attn.rel_logits_proj.proj",
|
| 408 |
+
"model.llm.layers.2.attn.v_sconv.weight",
|
| 409 |
+
"model.llm.layers.2.attn.wk_dv.weight",
|
| 410 |
+
"model.llm.layers.2.attn.wo_ud.weight",
|
| 411 |
+
"model.llm.layers.2.attn.wq_du.weight",
|
| 412 |
+
"model.llm.layers.2.attn.wr_du.weight",
|
| 413 |
+
"model.llm.layers.2.attn.wv_dv.weight",
|
| 414 |
+
"model.llm.layers.2.attn_norm.weight",
|
| 415 |
+
"model.llm.layers.2.attn_sconv.weight",
|
| 416 |
+
"model.llm.layers.2.mlp.gate.weight",
|
| 417 |
+
"model.llm.layers.2.mlp_norm.weight",
|
| 418 |
+
"model.llm.layers.2.mlp_sconv.weight",
|
| 419 |
+
"model.llm.layers.20.attn.attn_sink_proj.weight",
|
| 420 |
+
"model.llm.layers.20.attn.gate_attn.weight",
|
| 421 |
+
"model.llm.layers.20.attn.k_sconv.weight",
|
| 422 |
+
"model.llm.layers.20.attn.q_l2_clip.scale",
|
| 423 |
+
"model.llm.layers.20.attn.rel_l2_clip.scale",
|
| 424 |
+
"model.llm.layers.20.attn.rel_logits_proj.proj",
|
| 425 |
+
"model.llm.layers.20.attn.v_sconv.weight",
|
| 426 |
+
"model.llm.layers.20.attn.wk_dv.weight",
|
| 427 |
+
"model.llm.layers.20.attn.wo_ud.weight",
|
| 428 |
+
"model.llm.layers.20.attn.wq_du.weight",
|
| 429 |
+
"model.llm.layers.20.attn.wr_du.weight",
|
| 430 |
+
"model.llm.layers.20.attn.wv_dv.weight",
|
| 431 |
+
"model.llm.layers.20.attn_norm.weight",
|
| 432 |
+
"model.llm.layers.20.attn_sconv.weight",
|
| 433 |
+
"model.llm.layers.20.mlp.gate.weight",
|
| 434 |
+
"model.llm.layers.20.mlp_norm.weight",
|
| 435 |
+
"model.llm.layers.20.mlp_sconv.weight",
|
| 436 |
+
"model.llm.layers.21.attn.attn_sink_proj.weight",
|
| 437 |
+
"model.llm.layers.21.attn.gate_attn.weight",
|
| 438 |
+
"model.llm.layers.21.attn.k_sconv.weight",
|
| 439 |
+
"model.llm.layers.21.attn.q_l2_clip.scale",
|
| 440 |
+
"model.llm.layers.21.attn.rel_l2_clip.scale",
|
| 441 |
+
"model.llm.layers.21.attn.rel_logits_proj.proj",
|
| 442 |
+
"model.llm.layers.21.attn.v_sconv.weight",
|
| 443 |
+
"model.llm.layers.21.attn.wk_dv.weight",
|
| 444 |
+
"model.llm.layers.21.attn.wo_ud.weight",
|
| 445 |
+
"model.llm.layers.21.attn.wq_du.weight",
|
| 446 |
+
"model.llm.layers.21.attn.wr_du.weight",
|
| 447 |
+
"model.llm.layers.21.attn.wv_dv.weight",
|
| 448 |
+
"model.llm.layers.21.attn_norm.weight",
|
| 449 |
+
"model.llm.layers.21.attn_sconv.weight",
|
| 450 |
+
"model.llm.layers.21.mlp.gate.weight",
|
| 451 |
+
"model.llm.layers.21.mlp_norm.weight",
|
| 452 |
+
"model.llm.layers.21.mlp_sconv.weight",
|
| 453 |
+
"model.llm.layers.22.attn.attn_sink_proj.weight",
|
| 454 |
+
"model.llm.layers.22.attn.gate_attn.weight",
|
| 455 |
+
"model.llm.layers.22.attn.k_sconv.weight",
|
| 456 |
+
"model.llm.layers.22.attn.q_l2_clip.scale",
|
| 457 |
+
"model.llm.layers.22.attn.rel_l2_clip.scale",
|
| 458 |
+
"model.llm.layers.22.attn.rel_logits_proj.proj",
|
| 459 |
+
"model.llm.layers.22.attn.v_sconv.weight",
|
| 460 |
+
"model.llm.layers.22.attn.wk_dv.weight",
|
| 461 |
+
"model.llm.layers.22.attn.wo_ud.weight",
|
| 462 |
+
"model.llm.layers.22.attn.wq_du.weight",
|
| 463 |
+
"model.llm.layers.22.attn.wr_du.weight",
|
| 464 |
+
"model.llm.layers.22.attn.wv_dv.weight",
|
| 465 |
+
"model.llm.layers.22.attn_norm.weight",
|
| 466 |
+
"model.llm.layers.22.attn_sconv.weight",
|
| 467 |
+
"model.llm.layers.22.mlp.gate.weight",
|
| 468 |
+
"model.llm.layers.22.mlp_norm.weight",
|
| 469 |
+
"model.llm.layers.22.mlp_sconv.weight",
|
| 470 |
+
"model.llm.layers.23.attn.attn_sink_proj.weight",
|
| 471 |
+
"model.llm.layers.23.attn.gate_attn.weight",
|
| 472 |
+
"model.llm.layers.23.attn.k_sconv.static_w",
|
| 473 |
+
"model.llm.layers.23.attn.k_sconv.weight_proj",
|
| 474 |
+
"model.llm.layers.23.attn.q_l2_clip.scale",
|
| 475 |
+
"model.llm.layers.23.attn.rel_l2_clip.scale",
|
| 476 |
+
"model.llm.layers.23.attn.rel_logits_proj.proj",
|
| 477 |
+
"model.llm.layers.23.attn.v_sconv.static_w",
|
| 478 |
+
"model.llm.layers.23.attn.v_sconv.weight_proj",
|
| 479 |
+
"model.llm.layers.23.attn.wk_dv.weight",
|
| 480 |
+
"model.llm.layers.23.attn.wo_ud.weight",
|
| 481 |
+
"model.llm.layers.23.attn.wq_du.weight",
|
| 482 |
+
"model.llm.layers.23.attn.wr_du.weight",
|
| 483 |
+
"model.llm.layers.23.attn.wv_dv.weight",
|
| 484 |
+
"model.llm.layers.23.attn_sconv.weight",
|
| 485 |
+
"model.llm.layers.23.k_input_norm.weight",
|
| 486 |
+
"model.llm.layers.23.mlp.gate.weight",
|
| 487 |
+
"model.llm.layers.23.mlp_norm.weight",
|
| 488 |
+
"model.llm.layers.23.mlp_sconv.weight",
|
| 489 |
+
"model.llm.layers.23.q_input_norm.weight",
|
| 490 |
+
"model.llm.layers.23.v_input_norm.weight",
|
| 491 |
+
"model.llm.layers.3.attn.attn_sink_proj.weight",
|
| 492 |
+
"model.llm.layers.3.attn.gate_attn.weight",
|
| 493 |
+
"model.llm.layers.3.attn.k_sconv.weight",
|
| 494 |
+
"model.llm.layers.3.attn.q_l2_clip.scale",
|
| 495 |
+
"model.llm.layers.3.attn.rel_l2_clip.scale",
|
| 496 |
+
"model.llm.layers.3.attn.rel_logits_proj.proj",
|
| 497 |
+
"model.llm.layers.3.attn.v_sconv.weight",
|
| 498 |
+
"model.llm.layers.3.attn.wk_dv.weight",
|
| 499 |
+
"model.llm.layers.3.attn.wo_ud.weight",
|
| 500 |
+
"model.llm.layers.3.attn.wq_du.weight",
|
| 501 |
+
"model.llm.layers.3.attn.wr_du.weight",
|
| 502 |
+
"model.llm.layers.3.attn.wv_dv.weight",
|
| 503 |
+
"model.llm.layers.3.attn_norm.weight",
|
| 504 |
+
"model.llm.layers.3.attn_sconv.weight",
|
| 505 |
+
"model.llm.layers.3.mlp.gate.weight",
|
| 506 |
+
"model.llm.layers.3.mlp_norm.weight",
|
| 507 |
+
"model.llm.layers.3.mlp_sconv.weight",
|
| 508 |
+
"model.llm.layers.4.attn.attn_sink_proj.weight",
|
| 509 |
+
"model.llm.layers.4.attn.gate_attn.weight",
|
| 510 |
+
"model.llm.layers.4.attn.k_sconv.weight",
|
| 511 |
+
"model.llm.layers.4.attn.q_l2_clip.scale",
|
| 512 |
+
"model.llm.layers.4.attn.rel_l2_clip.scale",
|
| 513 |
+
"model.llm.layers.4.attn.rel_logits_proj.proj",
|
| 514 |
+
"model.llm.layers.4.attn.v_sconv.weight",
|
| 515 |
+
"model.llm.layers.4.attn.wk_dv.weight",
|
| 516 |
+
"model.llm.layers.4.attn.wo_ud.weight",
|
| 517 |
+
"model.llm.layers.4.attn.wq_du.weight",
|
| 518 |
+
"model.llm.layers.4.attn.wr_du.weight",
|
| 519 |
+
"model.llm.layers.4.attn.wv_dv.weight",
|
| 520 |
+
"model.llm.layers.4.attn_norm.weight",
|
| 521 |
+
"model.llm.layers.4.attn_sconv.weight",
|
| 522 |
+
"model.llm.layers.4.mlp.gate.weight",
|
| 523 |
+
"model.llm.layers.4.mlp_norm.weight",
|
| 524 |
+
"model.llm.layers.4.mlp_sconv.weight",
|
| 525 |
+
"model.llm.layers.5.attn.attn_sink_proj.weight",
|
| 526 |
+
"model.llm.layers.5.attn.gate_attn.weight",
|
| 527 |
+
"model.llm.layers.5.attn.k_sconv.static_w",
|
| 528 |
+
"model.llm.layers.5.attn.k_sconv.weight_proj",
|
| 529 |
+
"model.llm.layers.5.attn.q_l2_clip.scale",
|
| 530 |
+
"model.llm.layers.5.attn.rel_l2_clip.scale",
|
| 531 |
+
"model.llm.layers.5.attn.rel_logits_proj.proj",
|
| 532 |
+
"model.llm.layers.5.attn.v_sconv.static_w",
|
| 533 |
+
"model.llm.layers.5.attn.v_sconv.weight_proj",
|
| 534 |
+
"model.llm.layers.5.attn.wk_dv.weight",
|
| 535 |
+
"model.llm.layers.5.attn.wo_ud.weight",
|
| 536 |
+
"model.llm.layers.5.attn.wq_du.weight",
|
| 537 |
+
"model.llm.layers.5.attn.wr_du.weight",
|
| 538 |
+
"model.llm.layers.5.attn.wv_dv.weight",
|
| 539 |
+
"model.llm.layers.5.attn_sconv.weight",
|
| 540 |
+
"model.llm.layers.5.k_input_norm.weight",
|
| 541 |
+
"model.llm.layers.5.mlp.gate.weight",
|
| 542 |
+
"model.llm.layers.5.mlp_norm.weight",
|
| 543 |
+
"model.llm.layers.5.mlp_sconv.weight",
|
| 544 |
+
"model.llm.layers.5.q_input_norm.weight",
|
| 545 |
+
"model.llm.layers.5.v_input_norm.weight",
|
| 546 |
+
"model.llm.layers.6.attn.attn_sink_proj.weight",
|
| 547 |
+
"model.llm.layers.6.attn.gate_attn.weight",
|
| 548 |
+
"model.llm.layers.6.attn.k_sconv.weight",
|
| 549 |
+
"model.llm.layers.6.attn.q_l2_clip.scale",
|
| 550 |
+
"model.llm.layers.6.attn.rel_l2_clip.scale",
|
| 551 |
+
"model.llm.layers.6.attn.rel_logits_proj.proj",
|
| 552 |
+
"model.llm.layers.6.attn.v_sconv.weight",
|
| 553 |
+
"model.llm.layers.6.attn.wk_dv.weight",
|
| 554 |
+
"model.llm.layers.6.attn.wo_ud.weight",
|
| 555 |
+
"model.llm.layers.6.attn.wq_du.weight",
|
| 556 |
+
"model.llm.layers.6.attn.wr_du.weight",
|
| 557 |
+
"model.llm.layers.6.attn.wv_dv.weight",
|
| 558 |
+
"model.llm.layers.6.attn_norm.weight",
|
| 559 |
+
"model.llm.layers.6.attn_sconv.weight",
|
| 560 |
+
"model.llm.layers.6.controllers.attn.down_weight",
|
| 561 |
+
"model.llm.layers.6.controllers.attn.forget_weight",
|
| 562 |
+
"model.llm.layers.6.controllers.attn.gain_weight",
|
| 563 |
+
"model.llm.layers.6.controllers.k.down_weight",
|
| 564 |
+
"model.llm.layers.6.controllers.k.forget_weight",
|
| 565 |
+
"model.llm.layers.6.controllers.k.gain_weight",
|
| 566 |
+
"model.llm.layers.6.controllers.mlp.down_weight",
|
| 567 |
+
"model.llm.layers.6.controllers.mlp.forget_weight",
|
| 568 |
+
"model.llm.layers.6.controllers.mlp.gain_weight",
|
| 569 |
+
"model.llm.layers.6.controllers.v.down_weight",
|
| 570 |
+
"model.llm.layers.6.controllers.v.forget_weight",
|
| 571 |
+
"model.llm.layers.6.controllers.v.gain_weight",
|
| 572 |
+
"model.llm.layers.6.mlp.gate.weight",
|
| 573 |
+
"model.llm.layers.6.mlp_norm.weight",
|
| 574 |
+
"model.llm.layers.6.mlp_sconv.weight",
|
| 575 |
+
"model.llm.layers.7.attn.attn_sink_proj.weight",
|
| 576 |
+
"model.llm.layers.7.attn.gate_attn.weight",
|
| 577 |
+
"model.llm.layers.7.attn.k_sconv.weight",
|
| 578 |
+
"model.llm.layers.7.attn.q_l2_clip.scale",
|
| 579 |
+
"model.llm.layers.7.attn.rel_l2_clip.scale",
|
| 580 |
+
"model.llm.layers.7.attn.rel_logits_proj.proj",
|
| 581 |
+
"model.llm.layers.7.attn.v_sconv.weight",
|
| 582 |
+
"model.llm.layers.7.attn.wk_dv.weight",
|
| 583 |
+
"model.llm.layers.7.attn.wo_ud.weight",
|
| 584 |
+
"model.llm.layers.7.attn.wq_du.weight",
|
| 585 |
+
"model.llm.layers.7.attn.wr_du.weight",
|
| 586 |
+
"model.llm.layers.7.attn.wv_dv.weight",
|
| 587 |
+
"model.llm.layers.7.attn_norm.weight",
|
| 588 |
+
"model.llm.layers.7.attn_sconv.weight",
|
| 589 |
+
"model.llm.layers.7.controllers.attn.down_weight",
|
| 590 |
+
"model.llm.layers.7.controllers.attn.forget_weight",
|
| 591 |
+
"model.llm.layers.7.controllers.attn.gain_weight",
|
| 592 |
+
"model.llm.layers.7.controllers.k.down_weight",
|
| 593 |
+
"model.llm.layers.7.controllers.k.forget_weight",
|
| 594 |
+
"model.llm.layers.7.controllers.k.gain_weight",
|
| 595 |
+
"model.llm.layers.7.controllers.mlp.down_weight",
|
| 596 |
+
"model.llm.layers.7.controllers.mlp.forget_weight",
|
| 597 |
+
"model.llm.layers.7.controllers.mlp.gain_weight",
|
| 598 |
+
"model.llm.layers.7.controllers.v.down_weight",
|
| 599 |
+
"model.llm.layers.7.controllers.v.forget_weight",
|
| 600 |
+
"model.llm.layers.7.controllers.v.gain_weight",
|
| 601 |
+
"model.llm.layers.7.mlp.gate.weight",
|
| 602 |
+
"model.llm.layers.7.mlp_norm.weight",
|
| 603 |
+
"model.llm.layers.7.mlp_sconv.weight",
|
| 604 |
+
"model.llm.layers.8.attn.attn_sink_proj.weight",
|
| 605 |
+
"model.llm.layers.8.attn.gate_attn.weight",
|
| 606 |
+
"model.llm.layers.8.attn.k_sconv.weight",
|
| 607 |
+
"model.llm.layers.8.attn.q_l2_clip.scale",
|
| 608 |
+
"model.llm.layers.8.attn.rel_l2_clip.scale",
|
| 609 |
+
"model.llm.layers.8.attn.rel_logits_proj.proj",
|
| 610 |
+
"model.llm.layers.8.attn.v_sconv.weight",
|
| 611 |
+
"model.llm.layers.8.attn.wk_dv.weight",
|
| 612 |
+
"model.llm.layers.8.attn.wo_ud.weight",
|
| 613 |
+
"model.llm.layers.8.attn.wq_du.weight",
|
| 614 |
+
"model.llm.layers.8.attn.wr_du.weight",
|
| 615 |
+
"model.llm.layers.8.attn.wv_dv.weight",
|
| 616 |
+
"model.llm.layers.8.attn_norm.weight",
|
| 617 |
+
"model.llm.layers.8.attn_sconv.weight",
|
| 618 |
+
"model.llm.layers.8.controllers.attn.down_weight",
|
| 619 |
+
"model.llm.layers.8.controllers.attn.forget_weight",
|
| 620 |
+
"model.llm.layers.8.controllers.attn.gain_weight",
|
| 621 |
+
"model.llm.layers.8.controllers.k.down_weight",
|
| 622 |
+
"model.llm.layers.8.controllers.k.forget_weight",
|
| 623 |
+
"model.llm.layers.8.controllers.k.gain_weight",
|
| 624 |
+
"model.llm.layers.8.controllers.mlp.down_weight",
|
| 625 |
+
"model.llm.layers.8.controllers.mlp.forget_weight",
|
| 626 |
+
"model.llm.layers.8.controllers.mlp.gain_weight",
|
| 627 |
+
"model.llm.layers.8.controllers.v.down_weight",
|
| 628 |
+
"model.llm.layers.8.controllers.v.forget_weight",
|
| 629 |
+
"model.llm.layers.8.controllers.v.gain_weight",
|
| 630 |
+
"model.llm.layers.8.mlp.gate.weight",
|
| 631 |
+
"model.llm.layers.8.mlp_norm.weight",
|
| 632 |
+
"model.llm.layers.8.mlp_sconv.weight",
|
| 633 |
+
"model.llm.layers.9.attn.attn_sink_proj.weight",
|
| 634 |
+
"model.llm.layers.9.attn.gate_attn.weight",
|
| 635 |
+
"model.llm.layers.9.attn.k_sconv.weight",
|
| 636 |
+
"model.llm.layers.9.attn.q_l2_clip.scale",
|
| 637 |
+
"model.llm.layers.9.attn.rel_l2_clip.scale",
|
| 638 |
+
"model.llm.layers.9.attn.rel_logits_proj.proj",
|
| 639 |
+
"model.llm.layers.9.attn.v_sconv.weight",
|
| 640 |
+
"model.llm.layers.9.attn.wk_dv.weight",
|
| 641 |
+
"model.llm.layers.9.attn.wo_ud.weight",
|
| 642 |
+
"model.llm.layers.9.attn.wq_du.weight",
|
| 643 |
+
"model.llm.layers.9.attn.wr_du.weight",
|
| 644 |
+
"model.llm.layers.9.attn.wv_dv.weight",
|
| 645 |
+
"model.llm.layers.9.attn_norm.weight",
|
| 646 |
+
"model.llm.layers.9.attn_sconv.weight",
|
| 647 |
+
"model.llm.layers.9.controllers.attn.down_weight",
|
| 648 |
+
"model.llm.layers.9.controllers.attn.forget_weight",
|
| 649 |
+
"model.llm.layers.9.controllers.attn.gain_weight",
|
| 650 |
+
"model.llm.layers.9.controllers.k.down_weight",
|
| 651 |
+
"model.llm.layers.9.controllers.k.forget_weight",
|
| 652 |
+
"model.llm.layers.9.controllers.k.gain_weight",
|
| 653 |
+
"model.llm.layers.9.controllers.mlp.down_weight",
|
| 654 |
+
"model.llm.layers.9.controllers.mlp.forget_weight",
|
| 655 |
+
"model.llm.layers.9.controllers.mlp.gain_weight",
|
| 656 |
+
"model.llm.layers.9.controllers.v.down_weight",
|
| 657 |
+
"model.llm.layers.9.controllers.v.forget_weight",
|
| 658 |
+
"model.llm.layers.9.controllers.v.gain_weight",
|
| 659 |
+
"model.llm.layers.9.mlp.gate.weight",
|
| 660 |
+
"model.llm.layers.9.mlp_norm.weight",
|
| 661 |
+
"model.llm.layers.9.mlp_sconv.weight",
|
| 662 |
+
"model.llm.norm.weight",
|
| 663 |
+
"model.visual.backbone.embeddings.class_embedding",
|
| 664 |
+
"model.visual.backbone.embeddings.cls_position_embedding",
|
| 665 |
+
"model.visual.backbone.embeddings.patch_embedding.weight",
|
| 666 |
+
"model.visual.backbone.embeddings.position_embedding",
|
| 667 |
+
"model.visual.backbone.layers.0.ln_1.bias",
|
| 668 |
+
"model.visual.backbone.layers.0.ln_1.weight",
|
| 669 |
+
"model.visual.backbone.layers.0.ln_2.bias",
|
| 670 |
+
"model.visual.backbone.layers.0.ln_2.weight",
|
| 671 |
+
"model.visual.backbone.layers.0.ls_1.gamma",
|
| 672 |
+
"model.visual.backbone.layers.0.ls_2.gamma",
|
| 673 |
+
"model.visual.backbone.layers.0.mlp.c_fc.bias",
|
| 674 |
+
"model.visual.backbone.layers.0.mlp.c_fc.weight",
|
| 675 |
+
"model.visual.backbone.layers.0.mlp.c_proj.bias",
|
| 676 |
+
"model.visual.backbone.layers.0.mlp.c_proj.weight",
|
| 677 |
+
"model.visual.backbone.layers.0.self_attn.k_proj.bias",
|
| 678 |
+
"model.visual.backbone.layers.0.self_attn.k_proj.weight",
|
| 679 |
+
"model.visual.backbone.layers.0.self_attn.out_proj.bias",
|
| 680 |
+
"model.visual.backbone.layers.0.self_attn.out_proj.weight",
|
| 681 |
+
"model.visual.backbone.layers.0.self_attn.q_proj.bias",
|
| 682 |
+
"model.visual.backbone.layers.0.self_attn.q_proj.weight",
|
| 683 |
+
"model.visual.backbone.layers.0.self_attn.v_proj.bias",
|
| 684 |
+
"model.visual.backbone.layers.0.self_attn.v_proj.weight",
|
| 685 |
+
"model.visual.backbone.layers.1.ln_1.bias",
|
| 686 |
+
"model.visual.backbone.layers.1.ln_1.weight",
|
| 687 |
+
"model.visual.backbone.layers.1.ln_2.bias",
|
| 688 |
+
"model.visual.backbone.layers.1.ln_2.weight",
|
| 689 |
+
"model.visual.backbone.layers.1.ls_1.gamma",
|
| 690 |
+
"model.visual.backbone.layers.1.ls_2.gamma",
|
| 691 |
+
"model.visual.backbone.layers.1.mlp.c_fc.bias",
|
| 692 |
+
"model.visual.backbone.layers.1.mlp.c_fc.weight",
|
| 693 |
+
"model.visual.backbone.layers.1.mlp.c_proj.bias",
|
| 694 |
+
"model.visual.backbone.layers.1.mlp.c_proj.weight",
|
| 695 |
+
"model.visual.backbone.layers.1.self_attn.k_proj.bias",
|
| 696 |
+
"model.visual.backbone.layers.1.self_attn.k_proj.weight",
|
| 697 |
+
"model.visual.backbone.layers.1.self_attn.out_proj.bias",
|
| 698 |
+
"model.visual.backbone.layers.1.self_attn.out_proj.weight",
|
| 699 |
+
"model.visual.backbone.layers.1.self_attn.q_proj.bias",
|
| 700 |
+
"model.visual.backbone.layers.1.self_attn.q_proj.weight",
|
| 701 |
+
"model.visual.backbone.layers.1.self_attn.v_proj.bias",
|
| 702 |
+
"model.visual.backbone.layers.1.self_attn.v_proj.weight",
|
| 703 |
+
"model.visual.backbone.layers.10.ln_1.bias",
|
| 704 |
+
"model.visual.backbone.layers.10.ln_1.weight",
|
| 705 |
+
"model.visual.backbone.layers.10.ln_2.bias",
|
| 706 |
+
"model.visual.backbone.layers.10.ln_2.weight",
|
| 707 |
+
"model.visual.backbone.layers.10.ls_1.gamma",
|
| 708 |
+
"model.visual.backbone.layers.10.ls_2.gamma",
|
| 709 |
+
"model.visual.backbone.layers.10.mlp.c_fc.bias",
|
| 710 |
+
"model.visual.backbone.layers.10.mlp.c_fc.weight",
|
| 711 |
+
"model.visual.backbone.layers.10.mlp.c_proj.bias",
|
| 712 |
+
"model.visual.backbone.layers.10.mlp.c_proj.weight",
|
| 713 |
+
"model.visual.backbone.layers.10.self_attn.k_proj.bias",
|
| 714 |
+
"model.visual.backbone.layers.10.self_attn.k_proj.weight",
|
| 715 |
+
"model.visual.backbone.layers.10.self_attn.out_proj.bias",
|
| 716 |
+
"model.visual.backbone.layers.10.self_attn.out_proj.weight",
|
| 717 |
+
"model.visual.backbone.layers.10.self_attn.q_proj.bias",
|
| 718 |
+
"model.visual.backbone.layers.10.self_attn.q_proj.weight",
|
| 719 |
+
"model.visual.backbone.layers.10.self_attn.v_proj.bias",
|
| 720 |
+
"model.visual.backbone.layers.10.self_attn.v_proj.weight",
|
| 721 |
+
"model.visual.backbone.layers.11.ln_1.bias",
|
| 722 |
+
"model.visual.backbone.layers.11.ln_1.weight",
|
| 723 |
+
"model.visual.backbone.layers.11.ln_2.bias",
|
| 724 |
+
"model.visual.backbone.layers.11.ln_2.weight",
|
| 725 |
+
"model.visual.backbone.layers.11.ls_1.gamma",
|
| 726 |
+
"model.visual.backbone.layers.11.ls_2.gamma",
|
| 727 |
+
"model.visual.backbone.layers.11.mlp.c_fc.bias",
|
| 728 |
+
"model.visual.backbone.layers.11.mlp.c_fc.weight",
|
| 729 |
+
"model.visual.backbone.layers.11.mlp.c_proj.bias",
|
| 730 |
+
"model.visual.backbone.layers.11.mlp.c_proj.weight",
|
| 731 |
+
"model.visual.backbone.layers.11.self_attn.k_proj.bias",
|
| 732 |
+
"model.visual.backbone.layers.11.self_attn.k_proj.weight",
|
| 733 |
+
"model.visual.backbone.layers.11.self_attn.out_proj.bias",
|
| 734 |
+
"model.visual.backbone.layers.11.self_attn.out_proj.weight",
|
| 735 |
+
"model.visual.backbone.layers.11.self_attn.q_proj.bias",
|
| 736 |
+
"model.visual.backbone.layers.11.self_attn.q_proj.weight",
|
| 737 |
+
"model.visual.backbone.layers.11.self_attn.v_proj.bias",
|
| 738 |
+
"model.visual.backbone.layers.11.self_attn.v_proj.weight",
|
| 739 |
+
"model.visual.backbone.layers.12.ln_1.bias",
|
| 740 |
+
"model.visual.backbone.layers.12.ln_1.weight",
|
| 741 |
+
"model.visual.backbone.layers.12.ln_2.bias",
|
| 742 |
+
"model.visual.backbone.layers.12.ln_2.weight",
|
| 743 |
+
"model.visual.backbone.layers.12.ls_1.gamma",
|
| 744 |
+
"model.visual.backbone.layers.12.ls_2.gamma",
|
| 745 |
+
"model.visual.backbone.layers.12.mlp.c_fc.bias",
|
| 746 |
+
"model.visual.backbone.layers.12.mlp.c_fc.weight",
|
| 747 |
+
"model.visual.backbone.layers.12.mlp.c_proj.bias",
|
| 748 |
+
"model.visual.backbone.layers.12.mlp.c_proj.weight",
|
| 749 |
+
"model.visual.backbone.layers.12.self_attn.k_proj.bias",
|
| 750 |
+
"model.visual.backbone.layers.12.self_attn.k_proj.weight",
|
| 751 |
+
"model.visual.backbone.layers.12.self_attn.out_proj.bias",
|
| 752 |
+
"model.visual.backbone.layers.12.self_attn.out_proj.weight",
|
| 753 |
+
"model.visual.backbone.layers.12.self_attn.q_proj.bias",
|
| 754 |
+
"model.visual.backbone.layers.12.self_attn.q_proj.weight",
|
| 755 |
+
"model.visual.backbone.layers.12.self_attn.v_proj.bias",
|
| 756 |
+
"model.visual.backbone.layers.12.self_attn.v_proj.weight",
|
| 757 |
+
"model.visual.backbone.layers.13.ln_1.bias",
|
| 758 |
+
"model.visual.backbone.layers.13.ln_1.weight",
|
| 759 |
+
"model.visual.backbone.layers.13.ln_2.bias",
|
| 760 |
+
"model.visual.backbone.layers.13.ln_2.weight",
|
| 761 |
+
"model.visual.backbone.layers.13.ls_1.gamma",
|
| 762 |
+
"model.visual.backbone.layers.13.ls_2.gamma",
|
| 763 |
+
"model.visual.backbone.layers.13.mlp.c_fc.bias",
|
| 764 |
+
"model.visual.backbone.layers.13.mlp.c_fc.weight",
|
| 765 |
+
"model.visual.backbone.layers.13.mlp.c_proj.bias",
|
| 766 |
+
"model.visual.backbone.layers.13.mlp.c_proj.weight",
|
| 767 |
+
"model.visual.backbone.layers.13.self_attn.k_proj.bias",
|
| 768 |
+
"model.visual.backbone.layers.13.self_attn.k_proj.weight",
|
| 769 |
+
"model.visual.backbone.layers.13.self_attn.out_proj.bias",
|
| 770 |
+
"model.visual.backbone.layers.13.self_attn.out_proj.weight",
|
| 771 |
+
"model.visual.backbone.layers.13.self_attn.q_proj.bias",
|
| 772 |
+
"model.visual.backbone.layers.13.self_attn.q_proj.weight",
|
| 773 |
+
"model.visual.backbone.layers.13.self_attn.v_proj.bias",
|
| 774 |
+
"model.visual.backbone.layers.13.self_attn.v_proj.weight",
|
| 775 |
+
"model.visual.backbone.layers.14.ln_1.bias",
|
| 776 |
+
"model.visual.backbone.layers.14.ln_1.weight",
|
| 777 |
+
"model.visual.backbone.layers.14.ln_2.bias",
|
| 778 |
+
"model.visual.backbone.layers.14.ln_2.weight",
|
| 779 |
+
"model.visual.backbone.layers.14.ls_1.gamma",
|
| 780 |
+
"model.visual.backbone.layers.14.ls_2.gamma",
|
| 781 |
+
"model.visual.backbone.layers.14.mlp.c_fc.bias",
|
| 782 |
+
"model.visual.backbone.layers.14.mlp.c_fc.weight",
|
| 783 |
+
"model.visual.backbone.layers.14.mlp.c_proj.bias",
|
| 784 |
+
"model.visual.backbone.layers.14.mlp.c_proj.weight",
|
| 785 |
+
"model.visual.backbone.layers.14.self_attn.k_proj.bias",
|
| 786 |
+
"model.visual.backbone.layers.14.self_attn.k_proj.weight",
|
| 787 |
+
"model.visual.backbone.layers.14.self_attn.out_proj.bias",
|
| 788 |
+
"model.visual.backbone.layers.14.self_attn.out_proj.weight",
|
| 789 |
+
"model.visual.backbone.layers.14.self_attn.q_proj.bias",
|
| 790 |
+
"model.visual.backbone.layers.14.self_attn.q_proj.weight",
|
| 791 |
+
"model.visual.backbone.layers.14.self_attn.v_proj.bias",
|
| 792 |
+
"model.visual.backbone.layers.14.self_attn.v_proj.weight",
|
| 793 |
+
"model.visual.backbone.layers.15.ln_1.bias",
|
| 794 |
+
"model.visual.backbone.layers.15.ln_1.weight",
|
| 795 |
+
"model.visual.backbone.layers.15.ln_2.bias",
|
| 796 |
+
"model.visual.backbone.layers.15.ln_2.weight",
|
| 797 |
+
"model.visual.backbone.layers.15.ls_1.gamma",
|
| 798 |
+
"model.visual.backbone.layers.15.ls_2.gamma",
|
| 799 |
+
"model.visual.backbone.layers.15.mlp.c_fc.bias",
|
| 800 |
+
"model.visual.backbone.layers.15.mlp.c_fc.weight",
|
| 801 |
+
"model.visual.backbone.layers.15.mlp.c_proj.bias",
|
| 802 |
+
"model.visual.backbone.layers.15.mlp.c_proj.weight",
|
| 803 |
+
"model.visual.backbone.layers.15.self_attn.k_proj.bias",
|
| 804 |
+
"model.visual.backbone.layers.15.self_attn.k_proj.weight",
|
| 805 |
+
"model.visual.backbone.layers.15.self_attn.out_proj.bias",
|
| 806 |
+
"model.visual.backbone.layers.15.self_attn.out_proj.weight",
|
| 807 |
+
"model.visual.backbone.layers.15.self_attn.q_proj.bias",
|
| 808 |
+
"model.visual.backbone.layers.15.self_attn.q_proj.weight",
|
| 809 |
+
"model.visual.backbone.layers.15.self_attn.v_proj.bias",
|
| 810 |
+
"model.visual.backbone.layers.15.self_attn.v_proj.weight",
|
| 811 |
+
"model.visual.backbone.layers.16.ln_1.bias",
|
| 812 |
+
"model.visual.backbone.layers.16.ln_1.weight",
|
| 813 |
+
"model.visual.backbone.layers.16.ln_2.bias",
|
| 814 |
+
"model.visual.backbone.layers.16.ln_2.weight",
|
| 815 |
+
"model.visual.backbone.layers.16.ls_1.gamma",
|
| 816 |
+
"model.visual.backbone.layers.16.ls_2.gamma",
|
| 817 |
+
"model.visual.backbone.layers.16.mlp.c_fc.bias",
|
| 818 |
+
"model.visual.backbone.layers.16.mlp.c_fc.weight",
|
| 819 |
+
"model.visual.backbone.layers.16.mlp.c_proj.bias",
|
| 820 |
+
"model.visual.backbone.layers.16.mlp.c_proj.weight",
|
| 821 |
+
"model.visual.backbone.layers.16.self_attn.k_proj.bias",
|
| 822 |
+
"model.visual.backbone.layers.16.self_attn.k_proj.weight",
|
| 823 |
+
"model.visual.backbone.layers.16.self_attn.out_proj.bias",
|
| 824 |
+
"model.visual.backbone.layers.16.self_attn.out_proj.weight",
|
| 825 |
+
"model.visual.backbone.layers.16.self_attn.q_proj.bias",
|
| 826 |
+
"model.visual.backbone.layers.16.self_attn.q_proj.weight",
|
| 827 |
+
"model.visual.backbone.layers.16.self_attn.v_proj.bias",
|
| 828 |
+
"model.visual.backbone.layers.16.self_attn.v_proj.weight",
|
| 829 |
+
"model.visual.backbone.layers.17.ln_1.bias",
|
| 830 |
+
"model.visual.backbone.layers.17.ln_1.weight",
|
| 831 |
+
"model.visual.backbone.layers.17.ln_2.bias",
|
| 832 |
+
"model.visual.backbone.layers.17.ln_2.weight",
|
| 833 |
+
"model.visual.backbone.layers.17.ls_1.gamma",
|
| 834 |
+
"model.visual.backbone.layers.17.ls_2.gamma",
|
| 835 |
+
"model.visual.backbone.layers.17.mlp.c_fc.bias",
|
| 836 |
+
"model.visual.backbone.layers.17.mlp.c_fc.weight",
|
| 837 |
+
"model.visual.backbone.layers.17.mlp.c_proj.bias",
|
| 838 |
+
"model.visual.backbone.layers.17.mlp.c_proj.weight",
|
| 839 |
+
"model.visual.backbone.layers.17.self_attn.k_proj.bias",
|
| 840 |
+
"model.visual.backbone.layers.17.self_attn.k_proj.weight",
|
| 841 |
+
"model.visual.backbone.layers.17.self_attn.out_proj.bias",
|
| 842 |
+
"model.visual.backbone.layers.17.self_attn.out_proj.weight",
|
| 843 |
+
"model.visual.backbone.layers.17.self_attn.q_proj.bias",
|
| 844 |
+
"model.visual.backbone.layers.17.self_attn.q_proj.weight",
|
| 845 |
+
"model.visual.backbone.layers.17.self_attn.v_proj.bias",
|
| 846 |
+
"model.visual.backbone.layers.17.self_attn.v_proj.weight",
|
| 847 |
+
"model.visual.backbone.layers.18.ln_1.bias",
|
| 848 |
+
"model.visual.backbone.layers.18.ln_1.weight",
|
| 849 |
+
"model.visual.backbone.layers.18.ln_2.bias",
|
| 850 |
+
"model.visual.backbone.layers.18.ln_2.weight",
|
| 851 |
+
"model.visual.backbone.layers.18.ls_1.gamma",
|
| 852 |
+
"model.visual.backbone.layers.18.ls_2.gamma",
|
| 853 |
+
"model.visual.backbone.layers.18.mlp.c_fc.bias",
|
| 854 |
+
"model.visual.backbone.layers.18.mlp.c_fc.weight",
|
| 855 |
+
"model.visual.backbone.layers.18.mlp.c_proj.bias",
|
| 856 |
+
"model.visual.backbone.layers.18.mlp.c_proj.weight",
|
| 857 |
+
"model.visual.backbone.layers.18.self_attn.k_proj.bias",
|
| 858 |
+
"model.visual.backbone.layers.18.self_attn.k_proj.weight",
|
| 859 |
+
"model.visual.backbone.layers.18.self_attn.out_proj.bias",
|
| 860 |
+
"model.visual.backbone.layers.18.self_attn.out_proj.weight",
|
| 861 |
+
"model.visual.backbone.layers.18.self_attn.q_proj.bias",
|
| 862 |
+
"model.visual.backbone.layers.18.self_attn.q_proj.weight",
|
| 863 |
+
"model.visual.backbone.layers.18.self_attn.v_proj.bias",
|
| 864 |
+
"model.visual.backbone.layers.18.self_attn.v_proj.weight",
|
| 865 |
+
"model.visual.backbone.layers.19.ln_1.bias",
|
| 866 |
+
"model.visual.backbone.layers.19.ln_1.weight",
|
| 867 |
+
"model.visual.backbone.layers.19.ln_2.bias",
|
| 868 |
+
"model.visual.backbone.layers.19.ln_2.weight",
|
| 869 |
+
"model.visual.backbone.layers.19.ls_1.gamma",
|
| 870 |
+
"model.visual.backbone.layers.19.ls_2.gamma",
|
| 871 |
+
"model.visual.backbone.layers.19.mlp.c_fc.bias",
|
| 872 |
+
"model.visual.backbone.layers.19.mlp.c_fc.weight",
|
| 873 |
+
"model.visual.backbone.layers.19.mlp.c_proj.bias",
|
| 874 |
+
"model.visual.backbone.layers.19.mlp.c_proj.weight",
|
| 875 |
+
"model.visual.backbone.layers.19.self_attn.k_proj.bias",
|
| 876 |
+
"model.visual.backbone.layers.19.self_attn.k_proj.weight",
|
| 877 |
+
"model.visual.backbone.layers.19.self_attn.out_proj.bias",
|
| 878 |
+
"model.visual.backbone.layers.19.self_attn.out_proj.weight",
|
| 879 |
+
"model.visual.backbone.layers.19.self_attn.q_proj.bias",
|
| 880 |
+
"model.visual.backbone.layers.19.self_attn.q_proj.weight",
|
| 881 |
+
"model.visual.backbone.layers.19.self_attn.v_proj.bias",
|
| 882 |
+
"model.visual.backbone.layers.19.self_attn.v_proj.weight",
|
| 883 |
+
"model.visual.backbone.layers.2.ln_1.bias",
|
| 884 |
+
"model.visual.backbone.layers.2.ln_1.weight",
|
| 885 |
+
"model.visual.backbone.layers.2.ln_2.bias",
|
| 886 |
+
"model.visual.backbone.layers.2.ln_2.weight",
|
| 887 |
+
"model.visual.backbone.layers.2.ls_1.gamma",
|
| 888 |
+
"model.visual.backbone.layers.2.ls_2.gamma",
|
| 889 |
+
"model.visual.backbone.layers.2.mlp.c_fc.bias",
|
| 890 |
+
"model.visual.backbone.layers.2.mlp.c_fc.weight",
|
| 891 |
+
"model.visual.backbone.layers.2.mlp.c_proj.bias",
|
| 892 |
+
"model.visual.backbone.layers.2.mlp.c_proj.weight",
|
| 893 |
+
"model.visual.backbone.layers.2.self_attn.k_proj.bias",
|
| 894 |
+
"model.visual.backbone.layers.2.self_attn.k_proj.weight",
|
| 895 |
+
"model.visual.backbone.layers.2.self_attn.out_proj.bias",
|
| 896 |
+
"model.visual.backbone.layers.2.self_attn.out_proj.weight",
|
| 897 |
+
"model.visual.backbone.layers.2.self_attn.q_proj.bias",
|
| 898 |
+
"model.visual.backbone.layers.2.self_attn.q_proj.weight",
|
| 899 |
+
"model.visual.backbone.layers.2.self_attn.v_proj.bias",
|
| 900 |
+
"model.visual.backbone.layers.2.self_attn.v_proj.weight",
|
| 901 |
+
"model.visual.backbone.layers.20.ln_1.bias",
|
| 902 |
+
"model.visual.backbone.layers.20.ln_1.weight",
|
| 903 |
+
"model.visual.backbone.layers.20.ln_2.bias",
|
| 904 |
+
"model.visual.backbone.layers.20.ln_2.weight",
|
| 905 |
+
"model.visual.backbone.layers.20.ls_1.gamma",
|
| 906 |
+
"model.visual.backbone.layers.20.ls_2.gamma",
|
| 907 |
+
"model.visual.backbone.layers.20.mlp.c_fc.bias",
|
| 908 |
+
"model.visual.backbone.layers.20.mlp.c_fc.weight",
|
| 909 |
+
"model.visual.backbone.layers.20.mlp.c_proj.bias",
|
| 910 |
+
"model.visual.backbone.layers.20.mlp.c_proj.weight",
|
| 911 |
+
"model.visual.backbone.layers.20.self_attn.k_proj.bias",
|
| 912 |
+
"model.visual.backbone.layers.20.self_attn.k_proj.weight",
|
| 913 |
+
"model.visual.backbone.layers.20.self_attn.out_proj.bias",
|
| 914 |
+
"model.visual.backbone.layers.20.self_attn.out_proj.weight",
|
| 915 |
+
"model.visual.backbone.layers.20.self_attn.q_proj.bias",
|
| 916 |
+
"model.visual.backbone.layers.20.self_attn.q_proj.weight",
|
| 917 |
+
"model.visual.backbone.layers.20.self_attn.v_proj.bias",
|
| 918 |
+
"model.visual.backbone.layers.20.self_attn.v_proj.weight",
|
| 919 |
+
"model.visual.backbone.layers.21.ln_1.bias",
|
| 920 |
+
"model.visual.backbone.layers.21.ln_1.weight",
|
| 921 |
+
"model.visual.backbone.layers.21.ln_2.bias",
|
| 922 |
+
"model.visual.backbone.layers.21.ln_2.weight",
|
| 923 |
+
"model.visual.backbone.layers.21.ls_1.gamma",
|
| 924 |
+
"model.visual.backbone.layers.21.ls_2.gamma",
|
| 925 |
+
"model.visual.backbone.layers.21.mlp.c_fc.bias",
|
| 926 |
+
"model.visual.backbone.layers.21.mlp.c_fc.weight",
|
| 927 |
+
"model.visual.backbone.layers.21.mlp.c_proj.bias",
|
| 928 |
+
"model.visual.backbone.layers.21.mlp.c_proj.weight",
|
| 929 |
+
"model.visual.backbone.layers.21.self_attn.k_proj.bias",
|
| 930 |
+
"model.visual.backbone.layers.21.self_attn.k_proj.weight",
|
| 931 |
+
"model.visual.backbone.layers.21.self_attn.out_proj.bias",
|
| 932 |
+
"model.visual.backbone.layers.21.self_attn.out_proj.weight",
|
| 933 |
+
"model.visual.backbone.layers.21.self_attn.q_proj.bias",
|
| 934 |
+
"model.visual.backbone.layers.21.self_attn.q_proj.weight",
|
| 935 |
+
"model.visual.backbone.layers.21.self_attn.v_proj.bias",
|
| 936 |
+
"model.visual.backbone.layers.21.self_attn.v_proj.weight",
|
| 937 |
+
"model.visual.backbone.layers.22.ln_1.bias",
|
| 938 |
+
"model.visual.backbone.layers.22.ln_1.weight",
|
| 939 |
+
"model.visual.backbone.layers.22.ln_2.bias",
|
| 940 |
+
"model.visual.backbone.layers.22.ln_2.weight",
|
| 941 |
+
"model.visual.backbone.layers.22.ls_1.gamma",
|
| 942 |
+
"model.visual.backbone.layers.22.ls_2.gamma",
|
| 943 |
+
"model.visual.backbone.layers.22.mlp.c_fc.bias",
|
| 944 |
+
"model.visual.backbone.layers.22.mlp.c_fc.weight",
|
| 945 |
+
"model.visual.backbone.layers.22.mlp.c_proj.bias",
|
| 946 |
+
"model.visual.backbone.layers.22.mlp.c_proj.weight",
|
| 947 |
+
"model.visual.backbone.layers.22.self_attn.k_proj.bias",
|
| 948 |
+
"model.visual.backbone.layers.22.self_attn.k_proj.weight",
|
| 949 |
+
"model.visual.backbone.layers.22.self_attn.out_proj.bias",
|
| 950 |
+
"model.visual.backbone.layers.22.self_attn.out_proj.weight",
|
| 951 |
+
"model.visual.backbone.layers.22.self_attn.q_proj.bias",
|
| 952 |
+
"model.visual.backbone.layers.22.self_attn.q_proj.weight",
|
| 953 |
+
"model.visual.backbone.layers.22.self_attn.v_proj.bias",
|
| 954 |
+
"model.visual.backbone.layers.22.self_attn.v_proj.weight",
|
| 955 |
+
"model.visual.backbone.layers.3.ln_1.bias",
|
| 956 |
+
"model.visual.backbone.layers.3.ln_1.weight",
|
| 957 |
+
"model.visual.backbone.layers.3.ln_2.bias",
|
| 958 |
+
"model.visual.backbone.layers.3.ln_2.weight",
|
| 959 |
+
"model.visual.backbone.layers.3.ls_1.gamma",
|
| 960 |
+
"model.visual.backbone.layers.3.ls_2.gamma",
|
| 961 |
+
"model.visual.backbone.layers.3.mlp.c_fc.bias",
|
| 962 |
+
"model.visual.backbone.layers.3.mlp.c_fc.weight",
|
| 963 |
+
"model.visual.backbone.layers.3.mlp.c_proj.bias",
|
| 964 |
+
"model.visual.backbone.layers.3.mlp.c_proj.weight",
|
| 965 |
+
"model.visual.backbone.layers.3.self_attn.k_proj.bias",
|
| 966 |
+
"model.visual.backbone.layers.3.self_attn.k_proj.weight",
|
| 967 |
+
"model.visual.backbone.layers.3.self_attn.out_proj.bias",
|
| 968 |
+
"model.visual.backbone.layers.3.self_attn.out_proj.weight",
|
| 969 |
+
"model.visual.backbone.layers.3.self_attn.q_proj.bias",
|
| 970 |
+
"model.visual.backbone.layers.3.self_attn.q_proj.weight",
|
| 971 |
+
"model.visual.backbone.layers.3.self_attn.v_proj.bias",
|
| 972 |
+
"model.visual.backbone.layers.3.self_attn.v_proj.weight",
|
| 973 |
+
"model.visual.backbone.layers.4.ln_1.bias",
|
| 974 |
+
"model.visual.backbone.layers.4.ln_1.weight",
|
| 975 |
+
"model.visual.backbone.layers.4.ln_2.bias",
|
| 976 |
+
"model.visual.backbone.layers.4.ln_2.weight",
|
| 977 |
+
"model.visual.backbone.layers.4.ls_1.gamma",
|
| 978 |
+
"model.visual.backbone.layers.4.ls_2.gamma",
|
| 979 |
+
"model.visual.backbone.layers.4.mlp.c_fc.bias",
|
| 980 |
+
"model.visual.backbone.layers.4.mlp.c_fc.weight",
|
| 981 |
+
"model.visual.backbone.layers.4.mlp.c_proj.bias",
|
| 982 |
+
"model.visual.backbone.layers.4.mlp.c_proj.weight",
|
| 983 |
+
"model.visual.backbone.layers.4.self_attn.k_proj.bias",
|
| 984 |
+
"model.visual.backbone.layers.4.self_attn.k_proj.weight",
|
| 985 |
+
"model.visual.backbone.layers.4.self_attn.out_proj.bias",
|
| 986 |
+
"model.visual.backbone.layers.4.self_attn.out_proj.weight",
|
| 987 |
+
"model.visual.backbone.layers.4.self_attn.q_proj.bias",
|
| 988 |
+
"model.visual.backbone.layers.4.self_attn.q_proj.weight",
|
| 989 |
+
"model.visual.backbone.layers.4.self_attn.v_proj.bias",
|
| 990 |
+
"model.visual.backbone.layers.4.self_attn.v_proj.weight",
|
| 991 |
+
"model.visual.backbone.layers.5.ln_1.bias",
|
| 992 |
+
"model.visual.backbone.layers.5.ln_1.weight",
|
| 993 |
+
"model.visual.backbone.layers.5.ln_2.bias",
|
| 994 |
+
"model.visual.backbone.layers.5.ln_2.weight",
|
| 995 |
+
"model.visual.backbone.layers.5.ls_1.gamma",
|
| 996 |
+
"model.visual.backbone.layers.5.ls_2.gamma",
|
| 997 |
+
"model.visual.backbone.layers.5.mlp.c_fc.bias",
|
| 998 |
+
"model.visual.backbone.layers.5.mlp.c_fc.weight",
|
| 999 |
+
"model.visual.backbone.layers.5.mlp.c_proj.bias",
|
| 1000 |
+
"model.visual.backbone.layers.5.mlp.c_proj.weight",
|
| 1001 |
+
"model.visual.backbone.layers.5.self_attn.k_proj.bias",
|
| 1002 |
+
"model.visual.backbone.layers.5.self_attn.k_proj.weight",
|
| 1003 |
+
"model.visual.backbone.layers.5.self_attn.out_proj.bias",
|
| 1004 |
+
"model.visual.backbone.layers.5.self_attn.out_proj.weight",
|
| 1005 |
+
"model.visual.backbone.layers.5.self_attn.q_proj.bias",
|
| 1006 |
+
"model.visual.backbone.layers.5.self_attn.q_proj.weight",
|
| 1007 |
+
"model.visual.backbone.layers.5.self_attn.v_proj.bias",
|
| 1008 |
+
"model.visual.backbone.layers.5.self_attn.v_proj.weight",
|
| 1009 |
+
"model.visual.backbone.layers.6.ln_1.bias",
|
| 1010 |
+
"model.visual.backbone.layers.6.ln_1.weight",
|
| 1011 |
+
"model.visual.backbone.layers.6.ln_2.bias",
|
| 1012 |
+
"model.visual.backbone.layers.6.ln_2.weight",
|
| 1013 |
+
"model.visual.backbone.layers.6.ls_1.gamma",
|
| 1014 |
+
"model.visual.backbone.layers.6.ls_2.gamma",
|
| 1015 |
+
"model.visual.backbone.layers.6.mlp.c_fc.bias",
|
| 1016 |
+
"model.visual.backbone.layers.6.mlp.c_fc.weight",
|
| 1017 |
+
"model.visual.backbone.layers.6.mlp.c_proj.bias",
|
| 1018 |
+
"model.visual.backbone.layers.6.mlp.c_proj.weight",
|
| 1019 |
+
"model.visual.backbone.layers.6.self_attn.k_proj.bias",
|
| 1020 |
+
"model.visual.backbone.layers.6.self_attn.k_proj.weight",
|
| 1021 |
+
"model.visual.backbone.layers.6.self_attn.out_proj.bias",
|
| 1022 |
+
"model.visual.backbone.layers.6.self_attn.out_proj.weight",
|
| 1023 |
+
"model.visual.backbone.layers.6.self_attn.q_proj.bias",
|
| 1024 |
+
"model.visual.backbone.layers.6.self_attn.q_proj.weight",
|
| 1025 |
+
"model.visual.backbone.layers.6.self_attn.v_proj.bias",
|
| 1026 |
+
"model.visual.backbone.layers.6.self_attn.v_proj.weight",
|
| 1027 |
+
"model.visual.backbone.layers.7.ln_1.bias",
|
| 1028 |
+
"model.visual.backbone.layers.7.ln_1.weight",
|
| 1029 |
+
"model.visual.backbone.layers.7.ln_2.bias",
|
| 1030 |
+
"model.visual.backbone.layers.7.ln_2.weight",
|
| 1031 |
+
"model.visual.backbone.layers.7.ls_1.gamma",
|
| 1032 |
+
"model.visual.backbone.layers.7.ls_2.gamma",
|
| 1033 |
+
"model.visual.backbone.layers.7.mlp.c_fc.bias",
|
| 1034 |
+
"model.visual.backbone.layers.7.mlp.c_fc.weight",
|
| 1035 |
+
"model.visual.backbone.layers.7.mlp.c_proj.bias",
|
| 1036 |
+
"model.visual.backbone.layers.7.mlp.c_proj.weight",
|
| 1037 |
+
"model.visual.backbone.layers.7.self_attn.k_proj.bias",
|
| 1038 |
+
"model.visual.backbone.layers.7.self_attn.k_proj.weight",
|
| 1039 |
+
"model.visual.backbone.layers.7.self_attn.out_proj.bias",
|
| 1040 |
+
"model.visual.backbone.layers.7.self_attn.out_proj.weight",
|
| 1041 |
+
"model.visual.backbone.layers.7.self_attn.q_proj.bias",
|
| 1042 |
+
"model.visual.backbone.layers.7.self_attn.q_proj.weight",
|
| 1043 |
+
"model.visual.backbone.layers.7.self_attn.v_proj.bias",
|
| 1044 |
+
"model.visual.backbone.layers.7.self_attn.v_proj.weight",
|
| 1045 |
+
"model.visual.backbone.layers.8.ln_1.bias",
|
| 1046 |
+
"model.visual.backbone.layers.8.ln_1.weight",
|
| 1047 |
+
"model.visual.backbone.layers.8.ln_2.bias",
|
| 1048 |
+
"model.visual.backbone.layers.8.ln_2.weight",
|
| 1049 |
+
"model.visual.backbone.layers.8.ls_1.gamma",
|
| 1050 |
+
"model.visual.backbone.layers.8.ls_2.gamma",
|
| 1051 |
+
"model.visual.backbone.layers.8.mlp.c_fc.bias",
|
| 1052 |
+
"model.visual.backbone.layers.8.mlp.c_fc.weight",
|
| 1053 |
+
"model.visual.backbone.layers.8.mlp.c_proj.bias",
|
| 1054 |
+
"model.visual.backbone.layers.8.mlp.c_proj.weight",
|
| 1055 |
+
"model.visual.backbone.layers.8.self_attn.k_proj.bias",
|
| 1056 |
+
"model.visual.backbone.layers.8.self_attn.k_proj.weight",
|
| 1057 |
+
"model.visual.backbone.layers.8.self_attn.out_proj.bias",
|
| 1058 |
+
"model.visual.backbone.layers.8.self_attn.out_proj.weight",
|
| 1059 |
+
"model.visual.backbone.layers.8.self_attn.q_proj.bias",
|
| 1060 |
+
"model.visual.backbone.layers.8.self_attn.q_proj.weight",
|
| 1061 |
+
"model.visual.backbone.layers.8.self_attn.v_proj.bias",
|
| 1062 |
+
"model.visual.backbone.layers.8.self_attn.v_proj.weight",
|
| 1063 |
+
"model.visual.backbone.layers.9.ln_1.bias",
|
| 1064 |
+
"model.visual.backbone.layers.9.ln_1.weight",
|
| 1065 |
+
"model.visual.backbone.layers.9.ln_2.bias",
|
| 1066 |
+
"model.visual.backbone.layers.9.ln_2.weight",
|
| 1067 |
+
"model.visual.backbone.layers.9.ls_1.gamma",
|
| 1068 |
+
"model.visual.backbone.layers.9.ls_2.gamma",
|
| 1069 |
+
"model.visual.backbone.layers.9.mlp.c_fc.bias",
|
| 1070 |
+
"model.visual.backbone.layers.9.mlp.c_fc.weight",
|
| 1071 |
+
"model.visual.backbone.layers.9.mlp.c_proj.bias",
|
| 1072 |
+
"model.visual.backbone.layers.9.mlp.c_proj.weight",
|
| 1073 |
+
"model.visual.backbone.layers.9.self_attn.k_proj.bias",
|
| 1074 |
+
"model.visual.backbone.layers.9.self_attn.k_proj.weight",
|
| 1075 |
+
"model.visual.backbone.layers.9.self_attn.out_proj.bias",
|
| 1076 |
+
"model.visual.backbone.layers.9.self_attn.out_proj.weight",
|
| 1077 |
+
"model.visual.backbone.layers.9.self_attn.q_proj.bias",
|
| 1078 |
+
"model.visual.backbone.layers.9.self_attn.q_proj.weight",
|
| 1079 |
+
"model.visual.backbone.layers.9.self_attn.v_proj.bias",
|
| 1080 |
+
"model.visual.backbone.layers.9.self_attn.v_proj.weight",
|
| 1081 |
+
"model.visual.backbone.ln_pre.bias",
|
| 1082 |
+
"model.visual.backbone.ln_pre.weight",
|
| 1083 |
+
"model.visual.proj_in.weight",
|
| 1084 |
+
"model.visual.proj_out.weight"
|
| 1085 |
+
],
|
| 1086 |
+
"weight_block_shape": [],
|
| 1087 |
+
"weight_transform": "cast"
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"compute_dtype": "nvfp4",
|
| 1091 |
+
"output_dtype": "uint8",
|
| 1092 |
+
"required_activation_quantization": {
|
| 1093 |
+
"amax_type": "per_token",
|
| 1094 |
+
"block_size": 16,
|
| 1095 |
+
"format": "nvfp4_e2m1",
|
| 1096 |
+
"rounding": "nearest",
|
| 1097 |
+
"scale_dtype": "float8_e4m3fn",
|
| 1098 |
+
"scale_selection_rule": "fouroversix_mae"
|
| 1099 |
+
},
|
| 1100 |
+
"tensors": [
|
| 1101 |
+
"model.llm.layers.0.mlp.experts.w13_weight",
|
| 1102 |
+
"model.llm.layers.0.mlp.experts.w2_weight",
|
| 1103 |
+
"model.llm.layers.1.mlp.experts.w13_weight",
|
| 1104 |
+
"model.llm.layers.1.mlp.experts.w2_weight",
|
| 1105 |
+
"model.llm.layers.10.mlp.experts.w13_weight",
|
| 1106 |
+
"model.llm.layers.10.mlp.experts.w2_weight",
|
| 1107 |
+
"model.llm.layers.11.mlp.experts.w13_weight",
|
| 1108 |
+
"model.llm.layers.11.mlp.experts.w2_weight",
|
| 1109 |
+
"model.llm.layers.12.mlp.experts.w13_weight",
|
| 1110 |
+
"model.llm.layers.12.mlp.experts.w2_weight",
|
| 1111 |
+
"model.llm.layers.13.mlp.experts.w13_weight",
|
| 1112 |
+
"model.llm.layers.13.mlp.experts.w2_weight",
|
| 1113 |
+
"model.llm.layers.14.mlp.experts.w13_weight",
|
| 1114 |
+
"model.llm.layers.14.mlp.experts.w2_weight",
|
| 1115 |
+
"model.llm.layers.15.mlp.experts.w13_weight",
|
| 1116 |
+
"model.llm.layers.15.mlp.experts.w2_weight",
|
| 1117 |
+
"model.llm.layers.16.mlp.experts.w13_weight",
|
| 1118 |
+
"model.llm.layers.16.mlp.experts.w2_weight",
|
| 1119 |
+
"model.llm.layers.17.mlp.experts.w13_weight",
|
| 1120 |
+
"model.llm.layers.17.mlp.experts.w2_weight",
|
| 1121 |
+
"model.llm.layers.18.mlp.experts.w13_weight",
|
| 1122 |
+
"model.llm.layers.18.mlp.experts.w2_weight",
|
| 1123 |
+
"model.llm.layers.19.mlp.experts.w13_weight",
|
| 1124 |
+
"model.llm.layers.19.mlp.experts.w2_weight",
|
| 1125 |
+
"model.llm.layers.2.mlp.experts.w13_weight",
|
| 1126 |
+
"model.llm.layers.2.mlp.experts.w2_weight",
|
| 1127 |
+
"model.llm.layers.3.mlp.experts.w13_weight",
|
| 1128 |
+
"model.llm.layers.3.mlp.experts.w2_weight",
|
| 1129 |
+
"model.llm.layers.4.mlp.experts.w13_weight",
|
| 1130 |
+
"model.llm.layers.4.mlp.experts.w2_weight",
|
| 1131 |
+
"model.llm.layers.5.mlp.experts.w13_weight",
|
| 1132 |
+
"model.llm.layers.5.mlp.experts.w2_weight",
|
| 1133 |
+
"model.llm.layers.6.mlp.experts.w13_weight",
|
| 1134 |
+
"model.llm.layers.6.mlp.experts.w2_weight",
|
| 1135 |
+
"model.llm.layers.7.mlp.experts.w13_weight",
|
| 1136 |
+
"model.llm.layers.7.mlp.experts.w2_weight",
|
| 1137 |
+
"model.llm.layers.8.mlp.experts.w13_weight",
|
| 1138 |
+
"model.llm.layers.8.mlp.experts.w2_weight",
|
| 1139 |
+
"model.llm.layers.9.mlp.experts.w13_weight",
|
| 1140 |
+
"model.llm.layers.9.mlp.experts.w2_weight"
|
| 1141 |
+
],
|
| 1142 |
+
"weight_block_shape": [
|
| 1143 |
+
1,
|
| 1144 |
+
16
|
| 1145 |
+
],
|
| 1146 |
+
"weight_scale_format": "amax_denominator",
|
| 1147 |
+
"weight_transform": "nvfp4_nearest"
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"compute_dtype": "mxfp8",
|
| 1151 |
+
"output_dtype": "float8_e4m3fn",
|
| 1152 |
+
"required_activation_quantization": {
|
| 1153 |
+
"block_size": 32,
|
| 1154 |
+
"format": "mxfp8_e4m3",
|
| 1155 |
+
"rounding": "nearest",
|
| 1156 |
+
"scale_dtype": "ue8m0"
|
| 1157 |
+
},
|
| 1158 |
+
"tensors": [
|
| 1159 |
+
"model.llm.layers.20.mlp.experts.w13_weight",
|
| 1160 |
+
"model.llm.layers.20.mlp.experts.w2_weight",
|
| 1161 |
+
"model.llm.layers.21.mlp.experts.w13_weight",
|
| 1162 |
+
"model.llm.layers.21.mlp.experts.w2_weight",
|
| 1163 |
+
"model.llm.layers.22.mlp.experts.w13_weight",
|
| 1164 |
+
"model.llm.layers.22.mlp.experts.w2_weight",
|
| 1165 |
+
"model.llm.layers.23.mlp.experts.w13_weight",
|
| 1166 |
+
"model.llm.layers.23.mlp.experts.w2_weight"
|
| 1167 |
+
],
|
| 1168 |
+
"weight_block_shape": [
|
| 1169 |
+
32,
|
| 1170 |
+
32
|
| 1171 |
+
],
|
| 1172 |
+
"weight_transform": "mxfp8_nearest"
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"compute_dtype": "bfloat16",
|
| 1176 |
+
"fwd_output_dtype": "float32",
|
| 1177 |
+
"output_dtype": "bfloat16",
|
| 1178 |
+
"required_activation_quantization": null,
|
| 1179 |
+
"tensors": [
|
| 1180 |
+
"model.llm.unembed.weight"
|
| 1181 |
+
],
|
| 1182 |
+
"weight_block_shape": [],
|
| 1183 |
+
"weight_transform": "cast"
|
| 1184 |
+
}
|
| 1185 |
+
]
|
| 1186 |
+
},
|
| 1187 |
+
"mtp": {
|
| 1188 |
+
"parameter_groups": [
|
| 1189 |
+
{
|
| 1190 |
+
"compute_dtype": "bfloat16",
|
| 1191 |
+
"output_dtype": "bfloat16",
|
| 1192 |
+
"required_activation_quantization": null,
|
| 1193 |
+
"tensors": [
|
| 1194 |
+
"fuse_weight",
|
| 1195 |
+
"layers.0.dflare_norm.weight",
|
| 1196 |
+
"layers.0.input_layernorm.weight",
|
| 1197 |
+
"layers.0.mlp.down_proj.weight",
|
| 1198 |
+
"layers.0.mlp.gate_proj.weight",
|
| 1199 |
+
"layers.0.mlp.up_proj.weight",
|
| 1200 |
+
"layers.0.post_attention_layernorm.weight",
|
| 1201 |
+
"layers.0.self_attn.k_norm.weight",
|
| 1202 |
+
"layers.0.self_attn.k_norm_ctx.weight",
|
| 1203 |
+
"layers.0.self_attn.k_proj.weight",
|
| 1204 |
+
"layers.0.self_attn.k_proj_ctx.weight",
|
| 1205 |
+
"layers.0.self_attn.o_proj.weight",
|
| 1206 |
+
"layers.0.self_attn.q_norm.weight",
|
| 1207 |
+
"layers.0.self_attn.q_proj.weight",
|
| 1208 |
+
"layers.0.self_attn.v_proj.weight",
|
| 1209 |
+
"layers.0.self_attn.v_proj_ctx.weight",
|
| 1210 |
+
"layers.1.dflare_norm.weight",
|
| 1211 |
+
"layers.1.input_layernorm.weight",
|
| 1212 |
+
"layers.1.mlp.down_proj.weight",
|
| 1213 |
+
"layers.1.mlp.gate_proj.weight",
|
| 1214 |
+
"layers.1.mlp.up_proj.weight",
|
| 1215 |
+
"layers.1.post_attention_layernorm.weight",
|
| 1216 |
+
"layers.1.self_attn.k_norm.weight",
|
| 1217 |
+
"layers.1.self_attn.k_norm_ctx.weight",
|
| 1218 |
+
"layers.1.self_attn.k_proj.weight",
|
| 1219 |
+
"layers.1.self_attn.k_proj_ctx.weight",
|
| 1220 |
+
"layers.1.self_attn.o_proj.weight",
|
| 1221 |
+
"layers.1.self_attn.q_norm.weight",
|
| 1222 |
+
"layers.1.self_attn.q_proj.weight",
|
| 1223 |
+
"layers.1.self_attn.v_proj.weight",
|
| 1224 |
+
"layers.1.self_attn.v_proj_ctx.weight",
|
| 1225 |
+
"layers.2.dflare_norm.weight",
|
| 1226 |
+
"layers.2.input_layernorm.weight",
|
| 1227 |
+
"layers.2.mlp.down_proj.weight",
|
| 1228 |
+
"layers.2.mlp.gate_proj.weight",
|
| 1229 |
+
"layers.2.mlp.up_proj.weight",
|
| 1230 |
+
"layers.2.post_attention_layernorm.weight",
|
| 1231 |
+
"layers.2.self_attn.k_norm.weight",
|
| 1232 |
+
"layers.2.self_attn.k_norm_ctx.weight",
|
| 1233 |
+
"layers.2.self_attn.k_proj.weight",
|
| 1234 |
+
"layers.2.self_attn.k_proj_ctx.weight",
|
| 1235 |
+
"layers.2.self_attn.o_proj.weight",
|
| 1236 |
+
"layers.2.self_attn.q_norm.weight",
|
| 1237 |
+
"layers.2.self_attn.q_proj.weight",
|
| 1238 |
+
"layers.2.self_attn.v_proj.weight",
|
| 1239 |
+
"layers.2.self_attn.v_proj_ctx.weight",
|
| 1240 |
+
"markov_head.dflare_norm.weight",
|
| 1241 |
+
"markov_head.hidden_out.bias",
|
| 1242 |
+
"markov_head.hidden_out.weight",
|
| 1243 |
+
"markov_head.markov_w1.weight",
|
| 1244 |
+
"markov_head.rnn_proj.bias",
|
| 1245 |
+
"markov_head.rnn_proj.weight",
|
| 1246 |
+
"mask_embed",
|
| 1247 |
+
"norm.weight"
|
| 1248 |
+
],
|
| 1249 |
+
"weight_block_shape": [],
|
| 1250 |
+
"weight_transform": "cast"
|
| 1251 |
+
}
|
| 1252 |
+
]
|
| 1253 |
+
},
|
| 1254 |
+
"quant_method": "inkling2"
|
| 1255 |
+
}
|
model-00001-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61843021c7f3340aa84dfc74ce67e2c8ff5a19466ddb342c13b5f4c30c003e1c
|
| 3 |
+
size 5365563528
|
model-00002-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62d7b61cb250eae07474407664b0094dd17fbfc2e15d8c174f66cff51086a6c8
|
| 3 |
+
size 5266581936
|
model-00003-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e23827f087302aef766d4c8e3dcbc457acc198b8137d0c59cd507ce998f1b7b
|
| 3 |
+
size 5173559890
|
model-00004-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf22d5cb28345f9c1d59ddd16fae9fe50e42a866a6bdd385cb2a0e01b1b920db
|
| 3 |
+
size 3720338350
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mtp.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c3b651317f01f73bcf4e1dceba66ef8b7e1a1eac6bc171e882e690a4b10a1d2
|
| 3 |
+
size 635801416
|
processor_config.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_processor": {
|
| 3 |
+
"do_convert_rgb": true,
|
| 4 |
+
"do_normalize": true,
|
| 5 |
+
"do_rescale": true,
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.5,
|
| 8 |
+
0.5,
|
| 9 |
+
0.5
|
| 10 |
+
],
|
| 11 |
+
"image_processor_type": "Inkling2ImageProcessor",
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.5,
|
| 14 |
+
0.5,
|
| 15 |
+
0.5
|
| 16 |
+
],
|
| 17 |
+
"rescale_factor": 0.00392156862745098,
|
| 18 |
+
"size": {
|
| 19 |
+
"height": 40,
|
| 20 |
+
"width": 40
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"image_token": "<|unused_200054|>",
|
| 24 |
+
"processor_class": "Inkling2Processor"
|
| 25 |
+
}
|
runtime/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright © 2025 Prince Canuma
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
runtime/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Inkling 2 Mini runtime
|
| 2 |
+
|
| 3 |
+
MLX-VLM `0.8.0+inkling2mini`, based on `392052b4439cf027ab42674d9977f62bb3dfa056`, with the accompanying patch applied. Install the wheel linked in the model card. The local version suffix distinguishes this build from upstream MLX-VLM releases.
|
| 4 |
+
|
| 5 |
+
Changes add fixed-pass loop execution and independent caches, previous-pass message gates, source-to-MLX weight mapping, preserved mixed-precision metadata, processor routing, and bundled-draft support. The patch also includes regression tests.
|
| 6 |
+
|
| 7 |
+
To inspect or reproduce the source, check out the base commit and apply `inkling2-mini.patch`, then run `python -m build --wheel`.
|
runtime/inkling2-mini.patch
ADDED
|
@@ -0,0 +1,621 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/mlx_vlm/convert.py b/mlx_vlm/convert.py
|
| 2 |
+
index e7b032f5..0b884aea 100644
|
| 3 |
+
--- a/mlx_vlm/convert.py
|
| 4 |
+
+++ b/mlx_vlm/convert.py
|
| 5 |
+
@@ -318,6 +318,19 @@ def convert(
|
| 6 |
+
model, config, processor = fetch_from_hub(
|
| 7 |
+
model_path, lazy=True, trust_remote_code=trust_remote_code
|
| 8 |
+
)
|
| 9 |
+
+ # Native packed exports can declare only a generic quantization family in
|
| 10 |
+
+ # config.json, with the actual per-layer precision in a sidecar. Preserve
|
| 11 |
+
+ # that precision when saving the sanitized MLX weights.
|
| 12 |
+
+ metadata_path = model_path / "hf_quant_config.json"
|
| 13 |
+
+ if (
|
| 14 |
+
+ "quantization" not in config
|
| 15 |
+
+ and hasattr(model, "quantization_from_metadata")
|
| 16 |
+
+ and metadata_path.exists()
|
| 17 |
+
+ ):
|
| 18 |
+
+ with metadata_path.open() as f:
|
| 19 |
+
+ native_quantization = model.quantization_from_metadata(json.load(f))
|
| 20 |
+
+ if native_quantization is not None:
|
| 21 |
+
+ config["quantization"] = config["quantization_config"] = native_quantization
|
| 22 |
+
|
| 23 |
+
model_quant_predicate = getattr(model, "quant_predicate", None)
|
| 24 |
+
|
| 25 |
+
diff --git a/mlx_vlm/models/inkling2/config.py b/mlx_vlm/models/inkling2/config.py
|
| 26 |
+
index 8e3b7b20..f6e4f1e4 100644
|
| 27 |
+
--- a/mlx_vlm/models/inkling2/config.py
|
| 28 |
+
+++ b/mlx_vlm/models/inkling2/config.py
|
| 29 |
+
@@ -40,6 +40,34 @@ class TextConfig(BaseModelConfig):
|
| 30 |
+
mlp_gate_softcap: float = 4.0
|
| 31 |
+
mlp_up_softcap: float = 25.0
|
| 32 |
+
final_logit_softcapping: float = 30.0
|
| 33 |
+
+ loop_config: Optional[dict] = None
|
| 34 |
+
+
|
| 35 |
+
+ def __post_init__(self):
|
| 36 |
+
+ if self.loop_config is None:
|
| 37 |
+
+ return
|
| 38 |
+
+ cfg = self.loop_config
|
| 39 |
+
+ start, end = cfg["core_start"], cfg["core_end"]
|
| 40 |
+
+ block = self.n_layers_per_attn_res_block
|
| 41 |
+
+ if (
|
| 42 |
+
+ not 0 < start < end <= self.num_hidden_layers
|
| 43 |
+
+ or start % block
|
| 44 |
+
+ or end % block
|
| 45 |
+
+ or cfg["num_passes"] < 1
|
| 46 |
+
+ or cfg["gate_rank"] < 1
|
| 47 |
+
+ or cfg.get("is_varloop", False)
|
| 48 |
+
+ ):
|
| 49 |
+
+ raise ValueError("Invalid or unsupported Inkling 2 loop configuration")
|
| 50 |
+
+
|
| 51 |
+
+ @property
|
| 52 |
+
+ def layer_schedule(self):
|
| 53 |
+
+ if self.loop_config is None:
|
| 54 |
+
+ return list(range(self.num_hidden_layers))
|
| 55 |
+
+ start, end = self.loop_config["core_start"], self.loop_config["core_end"]
|
| 56 |
+
+ return (
|
| 57 |
+
+ list(range(start))
|
| 58 |
+
+ + list(range(start, end)) * self.loop_config["num_passes"]
|
| 59 |
+
+ + list(range(end, self.num_hidden_layers))
|
| 60 |
+
+ )
|
| 61 |
+
|
| 62 |
+
def layer_is_sliding(self, index):
|
| 63 |
+
if self.layer_types is not None:
|
| 64 |
+
diff --git a/mlx_vlm/models/inkling2/inkling2.py b/mlx_vlm/models/inkling2/inkling2.py
|
| 65 |
+
index d2173a54..08c04909 100644
|
| 66 |
+
--- a/mlx_vlm/models/inkling2/inkling2.py
|
| 67 |
+
+++ b/mlx_vlm/models/inkling2/inkling2.py
|
| 68 |
+
@@ -114,6 +114,16 @@ class Model(nn.Module):
|
| 69 |
+
if sub.startswith("mlp.experts."):
|
| 70 |
+
experts.setdefault(layer, {})[sub[len("mlp.experts.") :]] = value
|
| 71 |
+
continue
|
| 72 |
+
+ if sub.startswith("controllers."):
|
| 73 |
+
+ _, name, leaf = sub.split(".")
|
| 74 |
+
+ name = {"attn": "q", "k": "k", "v": "v", "mlp": "mlp"}[name]
|
| 75 |
+
+ leaf = {
|
| 76 |
+
+ "down_weight": "down_proj",
|
| 77 |
+
+ "forget_weight": "forget_gate_proj",
|
| 78 |
+
+ "gain_weight": "message_gate_proj",
|
| 79 |
+
+ }[leaf]
|
| 80 |
+
+ out[base + name + "_message_gate." + leaf + ".weight"] = value
|
| 81 |
+
+ continue
|
| 82 |
+
if sub.startswith("attn."):
|
| 83 |
+
sub = sub[len("attn.") :]
|
| 84 |
+
name, _, leaf = sub.partition(".")
|
| 85 |
+
@@ -156,6 +166,8 @@ class Model(nn.Module):
|
| 86 |
+
out["language_model.model." + target] = value
|
| 87 |
+
elif key.startswith("model.llm."):
|
| 88 |
+
sub = key[len("model.llm.") :]
|
| 89 |
+
+ if sub.startswith("middle_cycle_cross_pass_"):
|
| 90 |
+
+ continue
|
| 91 |
+
target = (
|
| 92 |
+
"language_model.lm_head.weight"
|
| 93 |
+
if sub == "unembed.weight"
|
| 94 |
+
@@ -181,6 +193,15 @@ class Model(nn.Module):
|
| 95 |
+
continue
|
| 96 |
+
else:
|
| 97 |
+
out[key] = value
|
| 98 |
+
+ query_key = "model.llm.middle_cycle_cross_pass_queries"
|
| 99 |
+
+ kv_key = "model.llm.middle_cycle_cross_pass_kv_queries"
|
| 100 |
+
+ if query_key in weights or kv_key in weights:
|
| 101 |
+
+ hidden = self.config.text_config.hidden_size
|
| 102 |
+
+ queries = weights[query_key].reshape(-1, 2, hidden)
|
| 103 |
+
+ kv_queries = weights[kv_key].reshape(-1, 2, hidden)
|
| 104 |
+
+ out["language_model.model.message_input.query"] = mx.concatenate(
|
| 105 |
+
+ [queries[:, :1], kv_queries, queries[:, 1:]], axis=1
|
| 106 |
+
+ )
|
| 107 |
+
for layer, tensors in experts.items():
|
| 108 |
+
base = f"language_model.model.layers.{layer}.mlp.switch_mlp."
|
| 109 |
+
for name, projections in (
|
| 110 |
+
diff --git a/mlx_vlm/models/inkling2/language.py b/mlx_vlm/models/inkling2/language.py
|
| 111 |
+
index 805dcc1f..023226db 100644
|
| 112 |
+
--- a/mlx_vlm/models/inkling2/language.py
|
| 113 |
+
+++ b/mlx_vlm/models/inkling2/language.py
|
| 114 |
+
@@ -537,6 +537,44 @@ class AttentionResidual(nn.Module):
|
| 115 |
+
)
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
+class MessageGate(nn.Module):
|
| 119 |
+
+ """Mix a previous-pass message into the current attention-residual input."""
|
| 120 |
+
+
|
| 121 |
+
+ def __init__(self, config):
|
| 122 |
+
+ super().__init__()
|
| 123 |
+
+ rank = config.loop_config["gate_rank"]
|
| 124 |
+
+ self.eps = config.rms_norm_eps
|
| 125 |
+
+ self.down_proj = nn.Linear(2 * config.hidden_size, rank, bias=False)
|
| 126 |
+
+ self.forget_gate_proj = nn.Linear(rank, config.hidden_size, bias=False)
|
| 127 |
+
+ self.message_gate_proj = nn.Linear(rank, config.hidden_size, bias=False)
|
| 128 |
+
+
|
| 129 |
+
+ def __call__(self, hidden, message):
|
| 130 |
+
+ hidden, message = hidden.astype(mx.float32), message.astype(mx.float32)
|
| 131 |
+
+ inputs = mx.concatenate(
|
| 132 |
+
+ [mx.fast.rms_norm(x, None, self.eps) for x in (hidden, message)], axis=-1
|
| 133 |
+
+ )
|
| 134 |
+
+ gate = self.down_proj(inputs.astype(self.down_proj.weight.dtype)).astype(
|
| 135 |
+
+ mx.float32
|
| 136 |
+
+ )
|
| 137 |
+
+ forget = mx.tanh(gate @ self.forget_gate_proj.weight.astype(mx.float32).T)
|
| 138 |
+
+ gain = mx.tanh(gate @ self.message_gate_proj.weight.astype(mx.float32).T)
|
| 139 |
+
+ return (1 - forget) * hidden + gain * message
|
| 140 |
+
+
|
| 141 |
+
+
|
| 142 |
+
+class MessageAttentionResidual(nn.Module):
|
| 143 |
+
+ def __init__(self, config):
|
| 144 |
+
+ super().__init__()
|
| 145 |
+
+ loop = config.loop_config
|
| 146 |
+
+ self.query = mx.zeros(
|
| 147 |
+
+ (loop["core_end"] - loop["core_start"], 4, config.hidden_size), mx.float32
|
| 148 |
+
+ )
|
| 149 |
+
+
|
| 150 |
+
+ def __call__(self, blocks, partial, layer_index):
|
| 151 |
+
+ return _attention_residual(
|
| 152 |
+
+ mx.stack([*blocks, partial], axis=-2), self.query[layer_index], True
|
| 153 |
+
+ )
|
| 154 |
+
+
|
| 155 |
+
+
|
| 156 |
+
class DecoderLayer(nn.Module):
|
| 157 |
+
def __init__(self, config, layer_idx):
|
| 158 |
+
super().__init__()
|
| 159 |
+
@@ -563,8 +601,12 @@ class DecoderLayer(nn.Module):
|
| 160 |
+
self.mlp_sconv = ShortConvolution(
|
| 161 |
+
config.hidden_size, config.sconv_kernel_size, 3
|
| 162 |
+
)
|
| 163 |
+
+ loop = config.loop_config
|
| 164 |
+
+ if loop and loop["core_start"] <= layer_idx < loop["core_end"]:
|
| 165 |
+
+ for name in ("q", "k", "v", "mlp"):
|
| 166 |
+
+ self[name + "_message_gate"] = MessageGate(config)
|
| 167 |
+
|
| 168 |
+
- def __call__(self, x, blocks, cache=None):
|
| 169 |
+
+ def __call__(self, x, blocks, cache=None, messages=None):
|
| 170 |
+
conv = cache[1] if cache is not None else None
|
| 171 |
+
mask = _cache_padding_mask(conv, x.shape[1])
|
| 172 |
+
mixed = (
|
| 173 |
+
@@ -572,7 +614,7 @@ class DecoderLayer(nn.Module):
|
| 174 |
+
if self.attention_input is not None
|
| 175 |
+
else x[..., None, :]
|
| 176 |
+
)
|
| 177 |
+
- if self.is_sliding:
|
| 178 |
+
+ if self.is_sliding and messages is None:
|
| 179 |
+
attn = self.self_attn(
|
| 180 |
+
self.input_layernorm(mixed[..., 0, :]).astype(x.dtype),
|
| 181 |
+
cache=cache,
|
| 182 |
+
@@ -580,17 +622,21 @@ class DecoderLayer(nn.Module):
|
| 183 |
+
)
|
| 184 |
+
else:
|
| 185 |
+
parts = [mixed[..., min(i, mixed.shape[-2] - 1), :] for i in range(3)]
|
| 186 |
+
- parts = [
|
| 187 |
+
- norm(part).astype(x.dtype)
|
| 188 |
+
- for norm, part in zip(
|
| 189 |
+
- (
|
| 190 |
+
- self.q_input_layernorm,
|
| 191 |
+
- self.k_input_layernorm,
|
| 192 |
+
- self.v_input_layernorm,
|
| 193 |
+
- ),
|
| 194 |
+
- parts,
|
| 195 |
+
+ if messages is not None:
|
| 196 |
+
+ parts = [
|
| 197 |
+
+ self[name + "_message_gate"](part, messages[..., i, :])
|
| 198 |
+
+ for i, (name, part) in enumerate(zip(("q", "k", "v"), parts))
|
| 199 |
+
+ ]
|
| 200 |
+
+ norms = (
|
| 201 |
+
+ (self.input_layernorm,) * 3
|
| 202 |
+
+ if self.is_sliding
|
| 203 |
+
+ else (
|
| 204 |
+
+ self.q_input_layernorm,
|
| 205 |
+
+ self.k_input_layernorm,
|
| 206 |
+
+ self.v_input_layernorm,
|
| 207 |
+
)
|
| 208 |
+
- ]
|
| 209 |
+
+ )
|
| 210 |
+
+ parts = [norm(part).astype(x.dtype) for norm, part in zip(norms, parts)]
|
| 211 |
+
attn = self.self_attn(*parts, cache=cache, conv_mask=mask)
|
| 212 |
+
residual = self.attn_sconv(attn, conv, mask).astype(mx.float32)
|
| 213 |
+
if self.is_block_boundary:
|
| 214 |
+
@@ -598,6 +644,8 @@ class DecoderLayer(nn.Module):
|
| 215 |
+
else:
|
| 216 |
+
residual = residual + x.astype(mx.float32)
|
| 217 |
+
hidden = self.mlp_input(blocks, residual)[..., 0, :]
|
| 218 |
+
+ if messages is not None:
|
| 219 |
+
+ hidden = self.mlp_message_gate(hidden, messages[..., 3, :])
|
| 220 |
+
hidden = self.mlp(self.post_attention_layernorm(hidden).astype(x.dtype))
|
| 221 |
+
out = (residual + self.mlp_sconv(hidden, conv, mask).astype(mx.float32)).astype(
|
| 222 |
+
x.dtype
|
| 223 |
+
@@ -610,11 +658,14 @@ class DecoderLayer(nn.Module):
|
| 224 |
+
class TextModel(nn.Module):
|
| 225 |
+
def __init__(self, config):
|
| 226 |
+
super().__init__()
|
| 227 |
+
+ self.config = config
|
| 228 |
+
self.embed_tokens = nn.Embedding(config.vocab_size, config.hidden_size)
|
| 229 |
+
self.embed_norm = nn.RMSNorm(config.hidden_size, eps=config.rms_norm_eps)
|
| 230 |
+
self.layers = [DecoderLayer(config, i) for i in range(config.num_hidden_layers)]
|
| 231 |
+
self.final_input = AttentionResidual(config)
|
| 232 |
+
self.norm = nn.RMSNorm(config.hidden_size, eps=config.rms_norm_eps)
|
| 233 |
+
+ if config.loop_config:
|
| 234 |
+
+ self.message_input = MessageAttentionResidual(config)
|
| 235 |
+
|
| 236 |
+
def embed(self, inputs):
|
| 237 |
+
return self.embed_norm(self.embed_tokens(inputs))
|
| 238 |
+
@@ -632,7 +683,7 @@ class TextModel(nn.Module):
|
| 239 |
+
if capture_layer_ids is not None and (
|
| 240 |
+
len(capture_layer_ids) != len(set(capture_layer_ids))
|
| 241 |
+
or any(
|
| 242 |
+
- type(i) is not int or not 0 <= i <= len(self.layers)
|
| 243 |
+
+ type(i) is not int or not 0 <= i <= len(self.config.layer_schedule)
|
| 244 |
+
for i in capture_layer_ids
|
| 245 |
+
)
|
| 246 |
+
):
|
| 247 |
+
@@ -640,19 +691,35 @@ class TextModel(nn.Module):
|
| 248 |
+
requested = set(capture_layer_ids or [])
|
| 249 |
+
x = self.embed(inputs) if input_embeddings is None else input_embeddings
|
| 250 |
+
blocks = []
|
| 251 |
+
- for i, (layer, c) in enumerate(
|
| 252 |
+
- zip(self.layers, cache or [None] * len(self.layers))
|
| 253 |
+
- ):
|
| 254 |
+
+ schedule = self.config.layer_schedule
|
| 255 |
+
+ if cache is not None and len(cache) != len(schedule):
|
| 256 |
+
+ raise ValueError("Inkling 2 requires a separate cache for each layer visit")
|
| 257 |
+
+ caches = cache if cache is not None else [None] * len(schedule)
|
| 258 |
+
+ loop = self.config.loop_config
|
| 259 |
+
+ pre_loop = previous = None
|
| 260 |
+
+ for i, (layer_index, c) in enumerate(zip(schedule, caches)):
|
| 261 |
+
+ layer = self.layers[layer_index]
|
| 262 |
+
+ messages = None
|
| 263 |
+
+ if loop and layer_index == loop["core_start"]:
|
| 264 |
+
+ if pre_loop is None:
|
| 265 |
+
+ pre_loop = (x, list(blocks))
|
| 266 |
+
+ else:
|
| 267 |
+
+ previous = (blocks[len(pre_loop[1]) + 1 :], x)
|
| 268 |
+
+ x, blocks = pre_loop[0], list(pre_loop[1])
|
| 269 |
+
+ if previous is not None and layer_index < loop["core_end"]:
|
| 270 |
+
+ messages = self.message_input(
|
| 271 |
+
+ *previous, layer_index - loop["core_start"]
|
| 272 |
+
+ )
|
| 273 |
+
# DSpark taps the partial block entering the layer, not its output.
|
| 274 |
+
if i in requested:
|
| 275 |
+
captures[i] = x
|
| 276 |
+
- x = layer(x, blocks, c)
|
| 277 |
+
+ x = layer(x, blocks, c, messages=messages)
|
| 278 |
+
if speculative_verify and (i + 1) % 4 == 0:
|
| 279 |
+
mx.async_eval(x)
|
| 280 |
+
h = self.final_input(blocks, x)[..., 0, :]
|
| 281 |
+
normalized = self.norm(h).astype(x.dtype)
|
| 282 |
+
- if len(self.layers) in requested:
|
| 283 |
+
- captures[len(self.layers)] = normalized
|
| 284 |
+
+ if len(schedule) in requested:
|
| 285 |
+
+ captures[len(schedule)] = normalized
|
| 286 |
+
result = h if skip_final_norm else normalized
|
| 287 |
+
if capture_layer_ids is not None:
|
| 288 |
+
return result, [captures[i] for i in capture_layer_ids]
|
| 289 |
+
@@ -830,7 +897,7 @@ class LanguageModel(InklingLanguageModel):
|
| 290 |
+
),
|
| 291 |
+
ArraysCache(4),
|
| 292 |
+
)
|
| 293 |
+
- for layer in self.model.layers
|
| 294 |
+
+ for layer in (self.model.layers[i] for i in self.config.layer_schedule)
|
| 295 |
+
]
|
| 296 |
+
|
| 297 |
+
def speculative_verify_hidden(self, inputs, cache):
|
| 298 |
+
diff --git a/mlx_vlm/models/inkling2/processing_inkling2.py b/mlx_vlm/models/inkling2/processing_inkling2.py
|
| 299 |
+
index ffefc0a1..d640a644 100644
|
| 300 |
+
--- a/mlx_vlm/models/inkling2/processing_inkling2.py
|
| 301 |
+
+++ b/mlx_vlm/models/inkling2/processing_inkling2.py
|
| 302 |
+
@@ -206,4 +206,4 @@ class Inkling2Processor(ProcessorMixin):
|
| 303 |
+
return ["input_ids", "attention_mask", "pixel_values", "image_grid_thw"]
|
| 304 |
+
|
| 305 |
+
|
| 306 |
+
-install_auto_processor_patch(["inkling2"], Inkling2Processor)
|
| 307 |
+
+install_auto_processor_patch(["inkling2", "inkling2_loop"], Inkling2Processor)
|
| 308 |
+
diff --git a/mlx_vlm/prompt_utils.py b/mlx_vlm/prompt_utils.py
|
| 309 |
+
index 79a6067b..387035a1 100644
|
| 310 |
+
--- a/mlx_vlm/prompt_utils.py
|
| 311 |
+
+++ b/mlx_vlm/prompt_utils.py
|
| 312 |
+
@@ -122,6 +122,7 @@ MODEL_CONFIG = {
|
| 313 |
+
"inkling": MessageFormat.LIST_WITH_IMAGE_FIRST,
|
| 314 |
+
"inkling_mm_model": MessageFormat.LIST_WITH_IMAGE_FIRST,
|
| 315 |
+
"inkling2": MessageFormat.LIST_WITH_IMAGE_FIRST,
|
| 316 |
+
+ "inkling2_loop": MessageFormat.LIST_WITH_IMAGE_FIRST,
|
| 317 |
+
# Prompt-only models
|
| 318 |
+
"florence2": MessageFormat.PROMPT_ONLY,
|
| 319 |
+
"plamo2vl": MessageFormat.PROMPT_ONLY,
|
| 320 |
+
diff --git a/mlx_vlm/speculative/drafters/inkling2_dspark/config.py b/mlx_vlm/speculative/drafters/inkling2_dspark/config.py
|
| 321 |
+
index 262597a0..15726d22 100644
|
| 322 |
+
--- a/mlx_vlm/speculative/drafters/inkling2_dspark/config.py
|
| 323 |
+
+++ b/mlx_vlm/speculative/drafters/inkling2_dspark/config.py
|
| 324 |
+
@@ -64,6 +64,6 @@ class ModelConfig(BaseModelConfig):
|
| 325 |
+
len(ids) < 2
|
| 326 |
+
or ids != sorted(set(ids))
|
| 327 |
+
or ids[0] < 0
|
| 328 |
+
- or ids[-1] != text["num_hidden_layers"]
|
| 329 |
+
+ or ids[-1] != len(self.text_config.layer_schedule)
|
| 330 |
+
):
|
| 331 |
+
raise ValueError("Invalid Inkling 2 DSpark target_layer_ids")
|
| 332 |
+
diff --git a/mlx_vlm/speculative/drafters/inkling2_dspark/dspark.py b/mlx_vlm/speculative/drafters/inkling2_dspark/dspark.py
|
| 333 |
+
index 197193be..b4ff9f21 100644
|
| 334 |
+
--- a/mlx_vlm/speculative/drafters/inkling2_dspark/dspark.py
|
| 335 |
+
+++ b/mlx_vlm/speculative/drafters/inkling2_dspark/dspark.py
|
| 336 |
+
@@ -211,7 +211,8 @@ class Model(nn.Module):
|
| 337 |
+
args = getattr(target, "config", None)
|
| 338 |
+
if (
|
| 339 |
+
args is None
|
| 340 |
+
- or args.model_type != "inkling2_text"
|
| 341 |
+
+ or args.model_type not in ("inkling2_text", "inkling2_loop_text")
|
| 342 |
+
+ or args.loop_config != self.config.text_config.loop_config
|
| 343 |
+
or any(
|
| 344 |
+
getattr(args, name) != getattr(self.config.text_config, name)
|
| 345 |
+
for name in ("hidden_size", "vocab_size", "num_hidden_layers")
|
| 346 |
+
diff --git a/mlx_vlm/speculative/drafters/mtp_split.py b/mlx_vlm/speculative/drafters/mtp_split.py
|
| 347 |
+
index 2c586aa2..a149c0ed 100644
|
| 348 |
+
--- a/mlx_vlm/speculative/drafters/mtp_split.py
|
| 349 |
+
+++ b/mlx_vlm/speculative/drafters/mtp_split.py
|
| 350 |
+
@@ -351,6 +351,8 @@ MTP_SPLITTERS: Dict[str, str] = {
|
| 351 |
+
"inkling_mm_model": "mlx_vlm.speculative.drafters.inkling_mtp.split:InklingMTPSplitter",
|
| 352 |
+
"inkling2": "mlx_vlm.speculative.drafters.inkling2_dspark.split:Inkling2DSparkSplitter",
|
| 353 |
+
"inkling2_text": "mlx_vlm.speculative.drafters.inkling2_dspark.split:Inkling2DSparkSplitter",
|
| 354 |
+
+ "inkling2_loop": "mlx_vlm.speculative.drafters.inkling2_dspark.split:Inkling2DSparkSplitter",
|
| 355 |
+
+ "inkling2_loop_text": "mlx_vlm.speculative.drafters.inkling2_dspark.split:Inkling2DSparkSplitter",
|
| 356 |
+
}
|
| 357 |
+
|
| 358 |
+
|
| 359 |
+
diff --git a/mlx_vlm/tests/model_cases.json b/mlx_vlm/tests/model_cases.json
|
| 360 |
+
index ce909d1a..3c21508c 100644
|
| 361 |
+
--- a/mlx_vlm/tests/model_cases.json
|
| 362 |
+
+++ b/mlx_vlm/tests/model_cases.json
|
| 363 |
+
@@ -1213,6 +1213,79 @@
|
| 364 |
+
"checks": ["forward_cache", "language", "vision", "input_embeddings"],
|
| 365 |
+
"vision": {"input_shape": [4, 1176], "feature_layer": 0, "grid_thw": [[1, 2, 2]]}
|
| 366 |
+
},
|
| 367 |
+
+ {
|
| 368 |
+
+ "id": "inkling2_loop",
|
| 369 |
+
+ "language": {
|
| 370 |
+
+ "logits_dtype": "float32"
|
| 371 |
+
+ },
|
| 372 |
+
+ "module": "inkling2",
|
| 373 |
+
+ "config": {
|
| 374 |
+
+ "image_token_id": 60,
|
| 375 |
+
+ "text_config": {
|
| 376 |
+
+ "hidden_size": 32,
|
| 377 |
+
+ "num_hidden_layers": 5,
|
| 378 |
+
+ "vocab_size": 64,
|
| 379 |
+
+ "unpadded_vocab_size": 64,
|
| 380 |
+
+ "num_attention_heads": 4,
|
| 381 |
+
+ "num_key_value_heads": 2,
|
| 382 |
+
+ "head_dim": 8,
|
| 383 |
+
+ "swa_num_attention_heads": 4,
|
| 384 |
+
+ "swa_num_key_value_heads": 2,
|
| 385 |
+
+ "swa_head_dim": 8,
|
| 386 |
+
+ "sliding_window_size": 4,
|
| 387 |
+
+ "local_layer_ids": [
|
| 388 |
+
+ 0,
|
| 389 |
+
+ 2,
|
| 390 |
+
+ 4
|
| 391 |
+
+ ],
|
| 392 |
+
+ "d_rel": 4,
|
| 393 |
+
+ "rel_extent": 4,
|
| 394 |
+
+ "sconv_kernel_size": 4,
|
| 395 |
+
+ "intermediate_size": 32,
|
| 396 |
+
+ "n_routed_experts": 4,
|
| 397 |
+
+ "num_experts_per_tok": 2,
|
| 398 |
+
+ "n_layers_per_attn_res_block": 2,
|
| 399 |
+
+ "loop_config": {
|
| 400 |
+
+ "core_start": 2,
|
| 401 |
+
+ "core_end": 4,
|
| 402 |
+
+ "num_passes": 3,
|
| 403 |
+
+ "gate_rank": 8,
|
| 404 |
+
+ "is_varloop": false
|
| 405 |
+
+ }
|
| 406 |
+
+ },
|
| 407 |
+
+ "vision_config": {
|
| 408 |
+
+ "native_patch_size": 2,
|
| 409 |
+
+ "adapter_merge_size": 2,
|
| 410 |
+
+ "hidden_size": 16,
|
| 411 |
+
+ "num_hidden_layers": 2,
|
| 412 |
+
+ "num_attention_heads": 2,
|
| 413 |
+
+ "projection_hidden_dim": 32,
|
| 414 |
+
+ "posemb_grid_size": 2
|
| 415 |
+
+ },
|
| 416 |
+
+ "model_type": "inkling2_loop"
|
| 417 |
+
+ },
|
| 418 |
+
+ "checks": [
|
| 419 |
+
+ "forward_cache",
|
| 420 |
+
+ "language",
|
| 421 |
+
+ "vision"
|
| 422 |
+
+ ],
|
| 423 |
+
+ "vision": {
|
| 424 |
+
+ "input_shape": [
|
| 425 |
+
+ 2,
|
| 426 |
+
+ 4,
|
| 427 |
+
+ 4,
|
| 428 |
+
+ 3
|
| 429 |
+
+ ],
|
| 430 |
+
+ "feature_layer": null,
|
| 431 |
+
+ "grid_thw": [
|
| 432 |
+
+ [
|
| 433 |
+
+ 1,
|
| 434 |
+
+ 1,
|
| 435 |
+
+ 2
|
| 436 |
+
+ ]
|
| 437 |
+
+ ]
|
| 438 |
+
+ }
|
| 439 |
+
+ },
|
| 440 |
+
{
|
| 441 |
+
"id": "inkling2",
|
| 442 |
+
"language": {"logits_dtype": "float32"},
|
| 443 |
+
diff --git a/mlx_vlm/tests/test_models.py b/mlx_vlm/tests/test_models.py
|
| 444 |
+
index cc269be4..2adb290d 100644
|
| 445 |
+
--- a/mlx_vlm/tests/test_models.py
|
| 446 |
+
+++ b/mlx_vlm/tests/test_models.py
|
| 447 |
+
@@ -7696,11 +7696,12 @@ class TestGemma4PerLayerConfig:
|
| 448 |
+
|
| 449 |
+
|
| 450 |
+
@pytest.fixture
|
| 451 |
+
-def inkling2_model():
|
| 452 |
+
+def inkling2_model(request):
|
| 453 |
+
from mlx_vlm.models.inkling2 import Model, ModelConfig
|
| 454 |
+
|
| 455 |
+
mx.random.seed(194)
|
| 456 |
+
- model = Model(ModelConfig.from_dict(model_case("inkling2")["config"]))
|
| 457 |
+
+ case = getattr(request, "param", "inkling2")
|
| 458 |
+
+ model = Model(ModelConfig.from_dict(model_case(case)["config"]))
|
| 459 |
+
for path, value in tree_flatten(model.parameters()):
|
| 460 |
+
if any(name in path for name in (".query", ".rel_proj", "gate_weight")):
|
| 461 |
+
model.load_weights(
|
| 462 |
+
@@ -7722,6 +7723,16 @@ def _inkling2_native_weights(model):
|
| 463 |
+
key = f"model.llm.attn_res.attn_queries.{int(layer) - 1}"
|
| 464 |
+
elif sub == "mlp_input.query":
|
| 465 |
+
key = f"model.llm.attn_res.mlp_queries.{layer}"
|
| 466 |
+
+ elif "_message_gate." in sub:
|
| 467 |
+
+ gate, leaf, _ = sub.split(".")
|
| 468 |
+
+ name = gate.removesuffix("_message_gate")
|
| 469 |
+
+ name = "attn" if name == "q" else name
|
| 470 |
+
+ leaf = {
|
| 471 |
+
+ "down_proj": "down_weight",
|
| 472 |
+
+ "forget_gate_proj": "forget_weight",
|
| 473 |
+
+ "message_gate_proj": "gain_weight",
|
| 474 |
+
+ }[leaf]
|
| 475 |
+
+ key = f"model.llm.layers.{layer}.controllers.{name}.{leaf}"
|
| 476 |
+
else:
|
| 477 |
+
for src, dst in (
|
| 478 |
+
("self_attn.q_proj", "attn.wq_du"),
|
| 479 |
+
@@ -7752,6 +7763,14 @@ def _inkling2_native_weights(model):
|
| 480 |
+
key = f"model.llm.layers.{layer}.{sub}"
|
| 481 |
+
elif key.startswith("language_model.model."):
|
| 482 |
+
sub = key[len("language_model.model.") :]
|
| 483 |
+
+ if sub == "message_input.query":
|
| 484 |
+
+ weights["model.llm.middle_cycle_cross_pass_queries"] = value[
|
| 485 |
+
+ :, [0, 3], :
|
| 486 |
+
+ ].reshape(-1, value.shape[-1])
|
| 487 |
+
+ weights["model.llm.middle_cycle_cross_pass_kv_queries"] = value[
|
| 488 |
+
+ :, 1:3, :
|
| 489 |
+
+ ].reshape(-1, value.shape[-1])
|
| 490 |
+
+ continue
|
| 491 |
+
sub = sub.replace("embed_tokens.weight", "embed.weight")
|
| 492 |
+
sub = sub.replace("final_input.query", "attn_res.output_query")
|
| 493 |
+
key = "model.llm." + sub
|
| 494 |
+
@@ -7786,6 +7805,7 @@ def _inkling2_native_weights(model):
|
| 495 |
+
return weights
|
| 496 |
+
|
| 497 |
+
|
| 498 |
+
+@pytest.mark.parametrize("inkling2_model", ["inkling2", "inkling2_loop"], indirect=True)
|
| 499 |
+
def test_inkling2_native_checkpoint_and_mixed_quantization(inkling2_model, tmp_path):
|
| 500 |
+
from mlx_vlm.convert import convert
|
| 501 |
+
|
| 502 |
+
@@ -7803,7 +7823,9 @@ def test_inkling2_native_checkpoint_and_mixed_quantization(inkling2_model, tmp_p
|
| 503 |
+
# Match the release's cast groups: queries and router bias stay FP32,
|
| 504 |
+
# while dense weights (including router/conv weights) are stored in BF16.
|
| 505 |
+
for key, value in raw.items():
|
| 506 |
+
- if not (".attn_res." in key or key.endswith(".mlp.gate.bias")):
|
| 507 |
+
+ if not (
|
| 508 |
+
+ ".attn_res." in key or "cross_pass" in key or key.endswith(".mlp.gate.bias")
|
| 509 |
+
+ ):
|
| 510 |
+
raw[key] = value.astype(mx.bfloat16)
|
| 511 |
+
elif key.endswith(".mlp.gate.bias"):
|
| 512 |
+
raw[key] = mx.arange(value.size, dtype=mx.float32) / 129
|
| 513 |
+
@@ -7860,6 +7882,11 @@ def test_inkling2_native_checkpoint_and_mixed_quantization(inkling2_model, tmp_p
|
| 514 |
+
config = json.loads((tmp_path / "config.json").read_text())
|
| 515 |
+
config.pop("quantization")
|
| 516 |
+
config.pop("quantization_config")
|
| 517 |
+
+ if model.config.text_config.loop_config:
|
| 518 |
+
+ config["quantization_config"] = {
|
| 519 |
+
+ "quant_method": "modelopt",
|
| 520 |
+
+ "quant_algo": "NVFP4",
|
| 521 |
+
+ }
|
| 522 |
+
(tmp_path / "config.json").write_text(json.dumps(config))
|
| 523 |
+
mx.save_safetensors(str(tmp_path / "model.safetensors"), raw)
|
| 524 |
+
loaded = load_model(tmp_path, strict=True)
|
| 525 |
+
@@ -7909,7 +7936,6 @@ def test_inkling2_native_checkpoint_and_mixed_quantization(inkling2_model, tmp_p
|
| 526 |
+
target = old[2:] if ".switch_mlp." in key else old
|
| 527 |
+
assert mx.array_equal(value, target).item(), key
|
| 528 |
+
converted = tmp_path / "converted"
|
| 529 |
+
- config["quantization"] = model.quantization_from_metadata(metadata)
|
| 530 |
+
expected_dtypes = {key: value.dtype for key, value in expected.items()}
|
| 531 |
+
with patch("mlx_vlm.convert.fetch_from_hub", return_value=(loaded, config, None)):
|
| 532 |
+
convert(str(tmp_path), str(converted), dtype="bfloat16")
|
| 533 |
+
@@ -7952,6 +7978,7 @@ def test_inkling2_bf16_head_keeps_fp32_projection_scores(inkling2_model, softcap
|
| 534 |
+
@pytest.mark.parametrize(
|
| 535 |
+
"dtype,tolerance", [(mx.float32, 2e-5), (mx.float16, 1e-2), (mx.bfloat16, 8e-2)]
|
| 536 |
+
)
|
| 537 |
+
+@pytest.mark.parametrize("inkling2_model", ["inkling2", "inkling2_loop"], indirect=True)
|
| 538 |
+
def test_inkling2_cached_chunks_and_speculative_rollback(
|
| 539 |
+
inkling2_model, dtype, tolerance
|
| 540 |
+
):
|
| 541 |
+
@@ -7986,6 +8013,7 @@ def test_inkling2_cached_chunks_and_speculative_rollback(
|
| 542 |
+
|
| 543 |
+
|
| 544 |
+
@pytest.mark.parametrize("dtype", [mx.float32, mx.float16, mx.bfloat16])
|
| 545 |
+
+@pytest.mark.parametrize("inkling2_model", ["inkling2", "inkling2_loop"], indirect=True)
|
| 546 |
+
def test_inkling2_multiple_images_and_embedding_slots(inkling2_model, dtype):
|
| 547 |
+
model = inkling2_model
|
| 548 |
+
model.update(tree_map(lambda a: a.astype(dtype), model.parameters()))
|
| 549 |
+
diff --git a/mlx_vlm/tests/test_speculative.py b/mlx_vlm/tests/test_speculative.py
|
| 550 |
+
index f5950086..e4ab9688 100644
|
| 551 |
+
--- a/mlx_vlm/tests/test_speculative.py
|
| 552 |
+
+++ b/mlx_vlm/tests/test_speculative.py
|
| 553 |
+
@@ -60,13 +60,15 @@ DATA = json.loads(Path(__file__).with_name("model_cases.json").read_text())[
|
| 554 |
+
]
|
| 555 |
+
|
| 556 |
+
|
| 557 |
+
-def inkling2_dspark_case(dtype=mx.float32):
|
| 558 |
+
+def inkling2_dspark_case(dtype=mx.float32, family="inkling2"):
|
| 559 |
+
from mlx_vlm.models.inkling2 import Model, ModelConfig
|
| 560 |
+
from mlx_vlm.speculative.drafters.inkling2_dspark import Model as Draft
|
| 561 |
+
from mlx_vlm.speculative.drafters.inkling2_dspark import ModelConfig as DraftConfig
|
| 562 |
+
|
| 563 |
+
- config = deepcopy(model_case("inkling2")["config"])
|
| 564 |
+
+ config = deepcopy(model_case(family)["config"])
|
| 565 |
+
config["mtp_config"] = deepcopy(DATA["inkling2_dspark"])
|
| 566 |
+
+ if family == "inkling2_loop":
|
| 567 |
+
+ config["mtp_config"]["target_layer_ids"] = [1, 3, 7, 9]
|
| 568 |
+
target = Model(ModelConfig.from_dict(config))
|
| 569 |
+
draft = Draft(
|
| 570 |
+
DraftConfig(
|
| 571 |
+
@@ -461,11 +463,12 @@ def test_inkling2_dspark_markov_head_reference(dtype):
|
| 572 |
+
@parametrize("temperature", [0, 0.7])
|
| 573 |
+
@parametrize("prefill_step_size", [None, 2])
|
| 574 |
+
@parametrize("dtype", [mx.float32, mx.bfloat16])
|
| 575 |
+
+@parametrize("family", ["inkling2", "inkling2_loop"])
|
| 576 |
+
def test_inkling2_dspark_standard_generation_and_reset(
|
| 577 |
+
- temperature, prefill_step_size, dtype, monkeypatch
|
| 578 |
+
+ temperature, prefill_step_size, dtype, family, monkeypatch
|
| 579 |
+
):
|
| 580 |
+
mx.random.seed(73)
|
| 581 |
+
- target, draft = inkling2_dspark_case(dtype)
|
| 582 |
+
+ target, draft = inkling2_dspark_case(dtype, family=family)
|
| 583 |
+
calls = []
|
| 584 |
+
forward = type(target.language_model).__call__
|
| 585 |
+
|
| 586 |
+
diff --git a/mlx_vlm/utils.py b/mlx_vlm/utils.py
|
| 587 |
+
index 86e079e0..b43e7aa8 100644
|
| 588 |
+
--- a/mlx_vlm/utils.py
|
| 589 |
+
+++ b/mlx_vlm/utils.py
|
| 590 |
+
@@ -79,6 +79,7 @@ MODEL_REMAPPING = {
|
| 591 |
+
"iquestcoder": "llama",
|
| 592 |
+
"nemotron-nas": "nemotron_nas",
|
| 593 |
+
"inkling_mm_model": "inkling",
|
| 594 |
+
+ "inkling2_loop": "inkling2",
|
| 595 |
+
"lille-130m": "lille_130m",
|
| 596 |
+
}
|
| 597 |
+
|
| 598 |
+
@@ -547,7 +548,7 @@ python -m mlx_vlm.convert --hf-path <local_dir> --mlx-path <mlx_dir>
|
| 599 |
+
if quantization_config is not None:
|
| 600 |
+
config["quantization_config"] = quantization_config
|
| 601 |
+
|
| 602 |
+
- if quantization_config is None:
|
| 603 |
+
+ if quantization_config is None or hasattr(model, "quantization_from_metadata"):
|
| 604 |
+
hf_quant_path = model_path / "hf_quant_config.json"
|
| 605 |
+
if hf_quant_path.exists():
|
| 606 |
+
with open(hf_quant_path) as f:
|
| 607 |
+
@@ -566,6 +567,7 @@ python -m mlx_vlm.convert --hf-path <local_dir> --mlx-path <mlx_dir>
|
| 608 |
+
config["quantization"] = config["quantization_config"] = (
|
| 609 |
+
native_quantization
|
| 610 |
+
)
|
| 611 |
+
+ quantization_config = None
|
| 612 |
+
|
| 613 |
+
if quantization_config is not None:
|
| 614 |
+
quant_method = quantization_config.get("quant_method")
|
| 615 |
+
diff --git a/mlx_vlm/version.py b/mlx_vlm/version.py
|
| 616 |
+
index 777f190d..2811cedf 100644
|
| 617 |
+
--- a/mlx_vlm/version.py
|
| 618 |
+
+++ b/mlx_vlm/version.py
|
| 619 |
+
@@ -1 +1 @@
|
| 620 |
+
-__version__ = "0.8.0"
|
| 621 |
+
+__version__ = "0.8.0+inkling2mini"
|
runtime/mlx_vlm-0.8.0+inkling2mini-py3-none-any.whl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d4a9c48a56719eae44879151f7c147776ee0dc3e593c8cb9206c9cc056e29745
|
| 3 |
+
size 3876401
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|endoftext|>",
|
| 4 |
+
"<|message_user|>",
|
| 5 |
+
"<|message_model|>",
|
| 6 |
+
"<|message_system|>",
|
| 7 |
+
"<|message_tool|>",
|
| 8 |
+
"<|content_text|>",
|
| 9 |
+
"<|content_image|>",
|
| 10 |
+
"<|content_model_end_sampling|>",
|
| 11 |
+
"<|content_thinking|>",
|
| 12 |
+
"<|end_message|>",
|
| 13 |
+
"<|content_tool_error|>",
|
| 14 |
+
"<|content_xml|>",
|
| 15 |
+
"<|begin_of_text|>",
|
| 16 |
+
"<|content_invoke_tool_json|>",
|
| 17 |
+
"<|content_invoke_tool_text|>"
|
| 18 |
+
],
|
| 19 |
+
"eos_token": "<|content_model_end_sampling|>",
|
| 20 |
+
"pad_token": "<|endoftext|>"
|
| 21 |
+
}
|
tiktoken/tokenizer.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f170372dd655728909228220d77cf6b8104a59f38a91262a7d2c4027906ec0d8
|
| 3 |
+
size 3386494
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6
|
| 3 |
+
size 26178678
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"begin_of_text": "<|begin_of_text|>",
|
| 4 |
+
"clean_up_tokenization_spaces": false,
|
| 5 |
+
"content_image": "<|content_image|>",
|
| 6 |
+
"content_invoke_tool_json": "<|content_invoke_tool_json|>",
|
| 7 |
+
"content_invoke_tool_text": "<|content_invoke_tool_text|>",
|
| 8 |
+
"content_model_end_sampling": "<|content_model_end_sampling|>",
|
| 9 |
+
"content_text": "<|content_text|>",
|
| 10 |
+
"content_thinking": "<|content_thinking|>",
|
| 11 |
+
"content_tool_error": "<|content_tool_error|>",
|
| 12 |
+
"content_xml": "<|content_xml|>",
|
| 13 |
+
"end_message": "<|end_message|>",
|
| 14 |
+
"endoftext": "<|endoftext|>",
|
| 15 |
+
"eos_token": "<|content_model_end_sampling|>",
|
| 16 |
+
"fix_mistral_regex": false,
|
| 17 |
+
"is_local": true,
|
| 18 |
+
"local_files_only": true,
|
| 19 |
+
"message_model": "<|message_model|>",
|
| 20 |
+
"message_system": "<|message_system|>",
|
| 21 |
+
"message_tool": "<|message_tool|>",
|
| 22 |
+
"message_user": "<|message_user|>",
|
| 23 |
+
"model_max_length": 1048576,
|
| 24 |
+
"model_specific_special_tokens": {
|
| 25 |
+
"begin_of_text": "<|begin_of_text|>",
|
| 26 |
+
"content_image": "<|content_image|>",
|
| 27 |
+
"content_invoke_tool_json": "<|content_invoke_tool_json|>",
|
| 28 |
+
"content_invoke_tool_text": "<|content_invoke_tool_text|>",
|
| 29 |
+
"content_model_end_sampling": "<|content_model_end_sampling|>",
|
| 30 |
+
"content_text": "<|content_text|>",
|
| 31 |
+
"content_thinking": "<|content_thinking|>",
|
| 32 |
+
"content_tool_error": "<|content_tool_error|>",
|
| 33 |
+
"content_xml": "<|content_xml|>",
|
| 34 |
+
"end_message": "<|end_message|>",
|
| 35 |
+
"endoftext": "<|endoftext|>",
|
| 36 |
+
"message_model": "<|message_model|>",
|
| 37 |
+
"message_system": "<|message_system|>",
|
| 38 |
+
"message_tool": "<|message_tool|>",
|
| 39 |
+
"message_user": "<|message_user|>"
|
| 40 |
+
},
|
| 41 |
+
"pad_token": "<|endoftext|>",
|
| 42 |
+
"processor_class": "Inkling2Processor",
|
| 43 |
+
"response_template": {
|
| 44 |
+
"defaults": {
|
| 45 |
+
"role": "assistant"
|
| 46 |
+
},
|
| 47 |
+
"fields": {
|
| 48 |
+
"content": {
|
| 49 |
+
"close": "<|end_message|>",
|
| 50 |
+
"content": "text",
|
| 51 |
+
"content_args": {
|
| 52 |
+
"strip": false
|
| 53 |
+
},
|
| 54 |
+
"join": "",
|
| 55 |
+
"open_pattern": "(?:<\\|message_model\\|>[^<]*)?<\\|content_(?:text|tool_error|invoke_tool_text)\\|>",
|
| 56 |
+
"repeats": true
|
| 57 |
+
},
|
| 58 |
+
"reasoning_content": {
|
| 59 |
+
"close": "<|end_message|>",
|
| 60 |
+
"content": "text",
|
| 61 |
+
"content_args": {
|
| 62 |
+
"strip": false
|
| 63 |
+
},
|
| 64 |
+
"join": "",
|
| 65 |
+
"open_pattern": "(?:<\\|message_model\\|>[^<]*)?<\\|content_thinking\\|>",
|
| 66 |
+
"repeats": true
|
| 67 |
+
},
|
| 68 |
+
"tool_calls": {
|
| 69 |
+
"close": "<|end_message|>",
|
| 70 |
+
"content": "json",
|
| 71 |
+
"open_pattern": "(?:<\\|message_model\\|>[^<]*)?<\\|content_invoke_tool_json\\|>",
|
| 72 |
+
"repeats": true,
|
| 73 |
+
"transform": {
|
| 74 |
+
"function": {
|
| 75 |
+
"arguments": "{content.args}",
|
| 76 |
+
"name": "{content.name}"
|
| 77 |
+
},
|
| 78 |
+
"type": "function"
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
},
|
| 82 |
+
"start_anchor_pattern": "<\\|end_message\\|>|<\\|content_model_end_sampling\\|>"
|
| 83 |
+
},
|
| 84 |
+
"tokenizer_class": "TokenizersBackend"
|
| 85 |
+
}
|
validation.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"validation_date": "2026-11-20",
|
| 3 |
+
"targeted_model_tests_passed": 48,
|
| 4 |
+
"targeted_speculative_tests_passed": 19,
|
| 5 |
+
"identical_converted_tensors": 1271,
|
| 6 |
+
"cache_entries": 48,
|
| 7 |
+
"expert_modes": [
|
| 8 |
+
"nvfp4",
|
| 9 |
+
"nvfp4",
|
| 10 |
+
"nvfp4",
|
| 11 |
+
"nvfp4",
|
| 12 |
+
"nvfp4",
|
| 13 |
+
"nvfp4",
|
| 14 |
+
"nvfp4",
|
| 15 |
+
"nvfp4",
|
| 16 |
+
"nvfp4",
|
| 17 |
+
"nvfp4",
|
| 18 |
+
"nvfp4",
|
| 19 |
+
"nvfp4",
|
| 20 |
+
"nvfp4",
|
| 21 |
+
"nvfp4",
|
| 22 |
+
"nvfp4",
|
| 23 |
+
"nvfp4",
|
| 24 |
+
"nvfp4",
|
| 25 |
+
"nvfp4",
|
| 26 |
+
"nvfp4",
|
| 27 |
+
"nvfp4",
|
| 28 |
+
"mxfp8",
|
| 29 |
+
"mxfp8",
|
| 30 |
+
"mxfp8",
|
| 31 |
+
"mxfp8"
|
| 32 |
+
],
|
| 33 |
+
"real_checkpoint_checks": {
|
| 34 |
+
"arithmetic": "323",
|
| 35 |
+
"text": "Correctly explained why ice floats",
|
| 36 |
+
"image": "Correctly identified a red circle",
|
| 37 |
+
"bundled_draft": "45 greedy tokens identical to standard generation"
|
| 38 |
+
},
|
| 39 |
+
"loop_primitive_reference": {
|
| 40 |
+
"message_gate_max_abs_error": 2.384185791015625e-07,
|
| 41 |
+
"message_attention_max_abs_error": 3.5762786865234375e-07,
|
| 42 |
+
"reference": "huggingface/transformers add-inkling2-mini"
|
| 43 |
+
},
|
| 44 |
+
"scope": "Smoke and conversion-integrity checks; not a full accuracy benchmark or full-model parity claim against the original runtime.",
|
| 45 |
+
"packaged_wheel_smoke_test": "passed from installed wheel outside source checkout"
|
| 46 |
+
}
|