neroued commited on
Commit
7345d26
·
verified ·
1 Parent(s): 1970bbf

docs: publish Inkling-2-Mini model card, manifest, and evaluation report

Browse files
Files changed (5) hide show
  1. LICENSE +201 -0
  2. README.md +254 -0
  3. SHA256SUMS +1 -0
  4. artifact-manifest.json +85 -0
  5. evaluation.json +248 -0
LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
README.md CHANGED
@@ -1,3 +1,257 @@
1
  ---
 
 
 
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ library_name: ninfer
3
+ pipeline_tag: image-text-to-text
4
+ inference: false
5
  license: apache-2.0
6
+ base_model: thinkingmachines/Inkling-2-Mini
7
+ base_model_relation: quantized
8
+ tags:
9
+ - ninfer
10
+ - inkling2
11
+ - nvfp4
12
+ - mxfp8
13
+ - dspark
14
+ - blackwell
15
+ - rtx-5090
16
+ - multimodal
17
+ - conversational
18
+ - cuda
19
+ model-index:
20
+ - name: Inkling-2-Mini-NInfer
21
+ results:
22
+ - task:
23
+ type: text-generation
24
+ name: Text Generation
25
+ dataset:
26
+ name: IFBench
27
+ type: ifbench
28
+ metrics:
29
+ - type: prompt_level_strict
30
+ value: 71.33
31
+ name: Prompt-level strict accuracy (0-shot, rule)
32
+ - type: prompt_level_loose
33
+ value: 76.0
34
+ name: Prompt-level loose accuracy (0-shot, rule)
35
+ source:
36
+ url: https://github.com/Neroued/ninfer/blob/master/model-cards/Inkling-2-Mini-NInfer/evaluation.json
37
+ name: NInfer / EvalScope 1.10.0
38
+ - task:
39
+ type: text-generation
40
+ name: Text Generation
41
+ dataset:
42
+ name: GPQA-Diamond
43
+ type: gpqa_diamond
44
+ metrics:
45
+ - type: accuracy
46
+ value: 87.88
47
+ name: Accuracy (0-shot, rule)
48
+ source:
49
+ url: https://github.com/Neroued/ninfer/blob/master/model-cards/Inkling-2-Mini-NInfer/evaluation.json
50
+ name: NInfer / EvalScope 1.10.0
51
+ - task:
52
+ type: image-text-to-text
53
+ name: Image Text to Text
54
+ dataset:
55
+ name: MMMU-Pro (standard, 10 options)
56
+ type: mmmu_pro
57
+ metrics:
58
+ - type: accuracy
59
+ value: 75.66
60
+ name: Accuracy (0-shot, rule)
61
+ source:
62
+ url: https://github.com/Neroued/ninfer/blob/master/model-cards/Inkling-2-Mini-NInfer/evaluation.json
63
+ name: NInfer / EvalScope 1.10.0
64
+ - task:
65
+ type: text-generation
66
+ name: Text Generation
67
+ dataset:
68
+ name: OpenAI MRCR (8-needle, 262K-524K)
69
+ type: openai_mrcr
70
+ metrics:
71
+ - type: score
72
+ value: 51.52
73
+ name: Overall MRCR score (8-needle, 262K-524K)
74
+ source:
75
+ url: https://github.com/Neroued/ninfer/blob/master/model-cards/Inkling-2-Mini-NInfer/evaluation.json
76
+ name: NInfer / EvalScope 1.10.0
77
  ---
78
+
79
+ # Inkling-2-Mini for NInfer
80
+
81
+ A native NInfer v3 artifact of
82
+ [thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini),
83
+ preserving the checkpoint's native NVFP4_MUL and MXFP8 MoE expert encodings with offline W4A4
84
+ activation calibration, the 23-layer PE-Lang Vision encoder, and the 3-layer DSpark speculative
85
+ draft model (`block_size=8`, recurrent Markov RNN head).
86
+
87
+ Use it with [NInfer](https://github.com/Neroued/ninfer) for CLI generation or OpenAI-/Anthropic-compatible
88
+ HTTP serving on RTX 5090 (`sm_120a`). The native architecture is `Inkling2ForCausalLM`: a looped
89
+ 24-physical-layer / 48-logical-layer Block-AttnRes MoE backbone (6 prelude, 12 core layers × 3
90
+ passes with rank-64 message gates, 6 coda) with hybrid local sliding-window (`W=1024`) and global
91
+ relative-bias attention, causal short convolutions, and 128 routed experts (top-8 sigmoid). The
92
+ artifact embeds the tokenizer, chat template, generation config, and image processor config.
93
+ `.ninfer` files are consumed directly by NInfer.
94
+
95
+ ## Download
96
+
97
+ ```bash
98
+ hf download neroued/Inkling-2-Mini-NInfer \
99
+ inkling2_mini.ninfer --local-dir models
100
+ ```
101
+
102
+ The artifact is a single **18.89 GiB** (`20,281,047,044` bytes) v3 file:
103
+
104
+ ```bash
105
+ sha256sum -c SHA256SUMS
106
+ ```
107
+
108
+ File size, SHA-256, component geometry, and object inventory are recorded in
109
+ [artifact-manifest.json](artifact-manifest.json) and [SHA256SUMS](SHA256SUMS).
110
+
111
+ ## Representation
112
+
113
+ | Weights | Stored representation | Execution policy |
114
+ |---|---|---|
115
+ | Routed MoE experts (layers 0–19, 40 tensors) | Native `nvfp4_mul` (`batched_block_scale_k16_m128x4_v1`) + offline `max` W4A4 activation multipliers (`per_expert_down`) | `AllowA4` (132 uses) |
116
+ | Routed MoE experts (layers 20–23, 8 tensors) | Native `mxfp8` (`row_group_scale_v1`) | `AllowA8` (12 uses) |
117
+ | Embeddings, attention/short-conv/output projections, loop controllers, output head, 23-layer PE-Lang Vision encoder, 3-layer DSpark + folded Markov RNN head | BF16 (`contiguous_le_v1`, 752 tensors) | `A16Only` |
118
+ | Norms, routers/biases, short-conv taps, relative bias tables, AttnRes queries, clip scales, calibration multipliers | FP32 (`contiguous_le_v1`, 174 tensors) | Retained precision |
119
+
120
+ Native `nvfp4_mul` and `mxfp8` codes and scales are imported without requantization via the
121
+ [`inkling2` recipe](https://github.com/Neroued/ninfer/blob/master/tools/convert/official_recipes.py).
122
+ Offline `max` activation calibration attaches per-visit/per-expert FP32 multipliers (`88` tensors,
123
+ `min_expert_elements=36864`) enabling Blackwell W4A4 routed MoE execution across layers 0–19.
124
+ DSpark shares the text embedding, embedding norm, and output head bindings, with its Markov RNN
125
+ unembed projection pre-folded offline in FP64.
126
+
127
+ ## Run on RTX 5090
128
+
129
+ Build NInfer from source using its
130
+ [build instructions](https://github.com/Neroued/ninfer#build) with the `rtx5090-release` preset.
131
+ From the NInfer repository root:
132
+
133
+ ```bash
134
+ cp examples/configs/rtx5090-inkling2-mini.toml ninfer.local.toml
135
+ # Set model.path to the downloaded inkling2_mini.ninfer file.
136
+ ./build/rtx5090-release/apps/ninfer-serve --config ninfer.local.toml
137
+ ```
138
+
139
+ [`rtx5090-inkling2-mini.toml`](https://github.com/Neroued/ninfer/blob/master/examples/configs/rtx5090-inkling2-mini.toml)
140
+ enables Vision (`1 GiB` window budget), FP8 full-attention KV (`--kv-dtype fp8`), BF16
141
+ sliding-window KV (`--swa-kv-dtype bf16`), DSpark speculative decoding (`--spec dspark
142
+ --draft-tokens 7 --proposal-head full`), CUDA Graph decode, a 4,096-token prefill chunk,
143
+ `max_context = 131072`, `max_concurrency = 4`, and public model alias `inkling2-mini`.
144
+ Because this artifact's embedded `metadata.name` is unset, omitting `--model-id` advertises
145
+ `Inkling2ForCausalLM`.
146
+
147
+ For a single CLI request:
148
+
149
+ ```bash
150
+ ./build/rtx5090-release/apps/ninfer models/inkling2_mini.ninfer \
151
+ --prompt "Explain looped transformer attention briefly." \
152
+ --max-context 16384 --max-tokens 2048 \
153
+ --kv-dtype fp8 --swa-kv-dtype bf16 \
154
+ --spec dspark --draft-tokens 7 --proposal-head full
155
+ ```
156
+
157
+ Resident device weights are **17.58 GiB** (`MTP0`, no Vision) and **18.27 GiB** (`DSpark K=7`, no
158
+ Vision), leaving ~10.3–10.6 GiB for the automatic shared KV/State Context pool on a 32 GiB RTX
159
+ 5090. For high-concurrency serving (e.g. `C=16..32`), set `--swa-kv-dtype fp8` to halve the
160
+ per-lane sliding-window KV footprint. Inkling2 uses device-resident Context storage (`host_capacity`
161
+ defaults to `0 B`).
162
+
163
+ ## Features
164
+
165
+ - Text and image-only Vision prompts (23-layer PE-Lang ViT, 20×20 patches with 2×2 spatial merge;
166
+ video input is rejected explicitly), streaming, tool calls (`<|content_invoke_tool_json|>`), and
167
+ constrained output (GBNF, regex, choice, JSON object/schema).
168
+ - Native DSpark speculative decoding with `1..7` draft tokens (default `7`), adaptive verification
169
+ length, and `--proposal-head full`.
170
+ - CUDA Graph decode, exact prefix reuse, and configurable resident-request capacity.
171
+ - CLI, OpenAI Chat Completions / Responses, Anthropic Messages, and offline perplexity scoring
172
+ through the same Engine.
173
+ - Thinking enabled by default at effort `high` (`0.9`). Supports `none` (`0.0`, disables thinking),
174
+ `minimal` (`0.1`), `low` (`0.2`), `medium` (`0.7`), `high` (`0.9`), `xhigh`/`max` (`0.99`), or
175
+ continuous numeric values in `[0.0, 0.99]`.
176
+
177
+ The context limit is per request (up to 1,048,576 positions in model config). Actual shared
178
+ KV/State capacity is reported at startup and depends on the selected KV dtypes and enabled
179
+ components. NInfer returns tool calls to the client; it does not execute them.
180
+
181
+ ## Performance
182
+
183
+ Measured on November 27, 2026 on one NVIDIA GeForce RTX 5090 (SM 12.0, 32 GiB, CUDA 13.4, NInfer
184
+ revision `b2514a7ae`) with FP8 full-attention KV, BF16 SWA KV, DSpark `K=7` (adaptive), CUDA
185
+ Graphs, 4,096-token prefill chunk, and Vision/prefix reuse disabled.
186
+
187
+ Copy-edit decode saturation (`10,910`-token verbatim C++ prompt, `8,192`-token output budget,
188
+ thinking disabled):
189
+
190
+ | Concurrency | C=1 | C=2 | C=4 | C=8 | C=16 |
191
+ |---|---:|---:|---:|---:|---:|
192
+ | Steady decode (tok/s) | 568.8 | 970.2 | 1,711.6 | 2,802.3 | 4,360.8 |
193
+ | Full-batch step (ms) | 13.37 | 15.54 | 17.73 | 21.60 | 27.81 |
194
+ | DSpark acceptance | 94.6% | 94.5% | 94.1% | 94.1% | 94.3% |
195
+
196
+ A supplementary `C=32` copy-edit wave with `--swa-kv-dtype fp8` sustained **6,439.6 tok/s** across
197
+ 28 full-length active streams (peak 1s interval **6,804.0 tok/s**, full-batch `C=32` step
198
+ **34.56 ms**).
199
+
200
+ Single-request Long NIAH context profile (mean across 5 seeds, `128`-token output budget):
201
+
202
+ | Prompt tokens | DSpark K=7 prefill (tok/s) | DSpark K=7 decode (tok/s) | MTP0 decode (tok/s) | Speedup vs MTP0 |
203
+ |---:|---:|---:|---:|---:|
204
+ | 8,142 | 27,526.6 | 388.5 | 180.4 | 2.15× |
205
+ | 68,362 | 20,632.7 | 324.3 | 161.8 | 2.00× |
206
+ | 137,668 | 16,083.0 | 296.0 | 143.8 | 2.06× |
207
+ | 275,395 | 10,945.2 | 286.4 | 121.1 | 2.36× |
208
+
209
+ On the 75-request fixed serving corpus (`131,072` context limit), DSpark `K=7` reaches **352.0
210
+ tok/s at C=1** and **1,224.5 tok/s at C=8** (3.16× makespan speedup). See the
211
+ [complete serving report](https://github.com/Neroued/ninfer/blob/master/docs/performance/inkling2-mini.md)
212
+ for per-scenario breakdowns, completion outcomes, and reproduction commands.
213
+
214
+ ## Evaluation
215
+
216
+ Recorded on **2026-11-26–28** through NInfer's public OpenAI Chat Completions service on one
217
+ **RTX 5090** with EvalScope 1.10.0 (0-shot, rule-based scoring, evaluator seed 42, one sample per
218
+ question), FP8 full-attention KV, BF16 SWA KV, CUDA Graphs, and a 4,096-token prefill chunk.
219
+
220
+ | Benchmark | Primary metric | Score | Scored / slice | Deployment & effort |
221
+ |---|---|---:|---:|---|
222
+ | IFBench | Prompt-level strict (loose) | **71.33%** (76.00%) | 300 / 300 | DSpark K=7, `C=8`, `131K` ctx, `xhigh`, no thinking budget |
223
+ | GPQA-Diamond | Accuracy | **87.88%** | 174 / 198 | DSpark K=7, `C=8`, `196K` ctx, `high` (0.9), `131K` budget |
224
+ | MMMU-Pro (`standard, 10 options`) | Accuracy | **75.66%** | 1,309 / 1,730 | Vision + DSpark K=7, `C=8`, `163K` ctx, `high` (0.9), `98K` budget |
225
+ | OpenAI MRCR (`8-needle, 262K–524K`) | Overall MRCR score | **51.52%** | 99 / 99 | `MTP0`, `C=1`, `589K` ctx, `high` (0.9), `49K` budget |
226
+
227
+ Additional IFBench metrics: instruction-level strict **74.17%**, instruction-level loose **78.67%**.
228
+
229
+ All four benchmarks completed with zero request failures. Original EvalScope scorer outputs are
230
+ retained in the headline totals without dropping truncated or unparsed samples:
231
+
232
+ - **IFBench**: generation used `reasoning_effort="xhigh"`, `temperature=1.0`, `top_p=0.95`,
233
+ `top_k=20`, `min_p=0.0`, `max_tokens=131072`. Thirteen prompts hit the 131,072-token context
234
+ ceiling during `xhigh` reasoning loops (12 empty content, 1 passed loose) and remain in the
235
+ reported 300-prompt totals; the 287 non-truncated prompts scored 74.22% prompt strict (213/287)
236
+ and 79.09% prompt loose (227/287).
237
+ - **GPQA-Diamond & MMMU-Pro**: generation used template default `high` (`0.9`), `temperature=1.0`,
238
+ `top_p=1.0`, `top_k=20`, `min_p=0.0`. Zero samples truncated; one MMMU-Pro response was unparsed
239
+ and remains in the 1,730-question total.
240
+ - **OpenAI MRCR**: evaluated all 99 questions in the 8-needle `262,144–524,288` character slice
241
+ with `--spec none --no-prefix-reuse` and `max_tokens=65536`. Twenty-six items achieved an exact
242
+ `1.0` match; five items hit the 589,824-token context ceiling during reasoning (scored `0.0`) and
243
+ remain in the 51.52% mean (94 non-truncated items averaged 54.26%).
244
+
245
+ [evaluation.json](evaluation.json) preserves the exact run IDs, timestamps, revisions, server
246
+ options, generation parameters, token totals, and diagnostics. A reproducible EvalScope config is
247
+ maintained in [`eval/configs/inkling2_mini.yaml`](https://github.com/Neroued/ninfer/blob/master/eval/configs/inkling2_mini.yaml).
248
+
249
+ ## Sources and license
250
+
251
+ - Base checkpoint and frontend resources:
252
+ [thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini)
253
+ (revision `c9d028302cd0f035fdf8e7e91f089a4ce94d2195`).
254
+ - Conversion and runtime: [NInfer](https://github.com/Neroued/ninfer).
255
+
256
+ Both the upstream Inkling-2-Mini weights and NInfer are licensed under the
257
+ [Apache License 2.0](LICENSE).
SHA256SUMS ADDED
@@ -0,0 +1 @@
 
 
1
+ ef6f6ae298795023cd513ef9442743dde06be2f38404283bf14af43c9ec910b6 inkling2_mini.ninfer
artifact-manifest.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema": "ninfer.artifact-manifest",
3
+ "schema_version": 2,
4
+ "artifact": {
5
+ "filename": "inkling2_mini.ninfer",
6
+ "bytes": 20281047044,
7
+ "sha256": "ef6f6ae298795023cd513ef9442743dde06be2f38404283bf14af43c9ec910b6",
8
+ "container_version": 3,
9
+ "artifact_id": "2f56511438ec42298bfa359cf6f54fd3",
10
+ "architecture": "Inkling2ForCausalLM",
11
+ "name": null,
12
+ "components": [
13
+ "text",
14
+ "vision",
15
+ "dspark"
16
+ ]
17
+ },
18
+ "source": {
19
+ "base": {
20
+ "repo_id": "thinkingmachines/Inkling-2-Mini",
21
+ "revision": "c9d028302cd0f035fdf8e7e91f089a4ce94d2195",
22
+ "license": "Apache-2.0"
23
+ }
24
+ },
25
+ "conversion": {
26
+ "recipe_id": "inkling2",
27
+ "recipe_details": {
28
+ "mapping": "inkling2_v1",
29
+ "moe_w13_order": "deinterleaved_gate_then_up",
30
+ "vocab_padding": "truncated_64_aligned_zero_padded",
31
+ "dspark_fold": "offline_fp64_unembed_hidden_out"
32
+ },
33
+ "calibration": {
34
+ "method": "max",
35
+ "granularity": "per_expert_down",
36
+ "min_expert_elements": 36864,
37
+ "calibrated_uses": 132,
38
+ "calibration_tensors": 88
39
+ },
40
+ "converter_repository": "https://github.com/Neroued/ninfer"
41
+ },
42
+ "runtime": {
43
+ "repository": "https://github.com/Neroued/ninfer",
44
+ "cuda_architecture": "sm_120a",
45
+ "dspark_draft_tokens": {
46
+ "recommended": 7,
47
+ "minimum": 1,
48
+ "maximum": 7
49
+ },
50
+ "proposal_head": "full"
51
+ },
52
+ "inventory": {
53
+ "objects": 980,
54
+ "tensors": 974,
55
+ "resources": 6,
56
+ "bindings": 1105,
57
+ "uses": 670,
58
+ "formats": {
59
+ "bf16": 752,
60
+ "fp32": 174,
61
+ "mxfp8": 8,
62
+ "nvfp4_mul": 40
63
+ },
64
+ "layouts": {
65
+ "batched_block_scale_k16_m128x4_v1": 40,
66
+ "contiguous_le_v1": 926,
67
+ "row_group_scale_v1": 8
68
+ },
69
+ "encodings": {
70
+ "raw_bytes_v1": 6
71
+ },
72
+ "use_activation_policies": {
73
+ "A16Only": 526,
74
+ "AllowA4": 132,
75
+ "AllowA8": 12
76
+ },
77
+ "bytes": {
78
+ "tensor": 20254000368,
79
+ "resource": 26199869,
80
+ "object": 20280200237,
81
+ "payload_span": 20280211460,
82
+ "alignment": 11223
83
+ }
84
+ }
85
+ }
evaluation.json ADDED
@@ -0,0 +1,248 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "artifact_id": "2f56511438ec42298bfa359cf6f54fd3",
4
+ "evalscope_version": "1.10.0",
5
+ "hardware": "1 x NVIDIA GeForce RTX 5090 (32 GiB, SM 12.0)",
6
+ "evaluation": {
7
+ "few_shot_num": 0,
8
+ "judge_strategy": "rule",
9
+ "dataset_hub": "modelscope",
10
+ "evaluator_seed": 42
11
+ },
12
+ "runs": [
13
+ {
14
+ "dataset": "ifbench",
15
+ "name": "IFBench",
16
+ "run_id": "20261128T081314Z-00de710c",
17
+ "started_at": "2026-11-28T08:13:14.394634+00:00",
18
+ "finished_at": "2026-11-28T09:09:46.433988+00:00",
19
+ "duration_seconds": 3390.62,
20
+ "serve_commit": "b2514a7ae",
21
+ "harness_commit": "b36b06b23d9145d3f09741680da30519fd5b625a",
22
+ "deployment": {
23
+ "max_concurrency": 8,
24
+ "max_context": 131072,
25
+ "kv_dtype": "fp8",
26
+ "swa_kv_dtype": "bf16",
27
+ "prefill_chunk": 4096,
28
+ "cuda_graph": true,
29
+ "vision": false,
30
+ "speculative_backend": "dspark",
31
+ "draft_tokens": 7,
32
+ "proposal_head": "full",
33
+ "thinking_budget": null
34
+ },
35
+ "generation": {
36
+ "temperature": 1.0,
37
+ "top_p": 0.95,
38
+ "top_k": 20,
39
+ "min_p": 0.0,
40
+ "presence_penalty": 0.0,
41
+ "frequency_penalty": 0.0,
42
+ "thinking": true,
43
+ "reasoning_effort": "xhigh",
44
+ "max_tokens": 131072,
45
+ "seed": 42
46
+ },
47
+ "metrics": {
48
+ "prompt_level_strict": 0.7133,
49
+ "inst_level_strict": 0.7417,
50
+ "prompt_level_loose": 0.76,
51
+ "inst_level_loose": 0.7867
52
+ },
53
+ "counts": {
54
+ "questions": 300,
55
+ "scored": 300,
56
+ "repeats": 1,
57
+ "prompt_strict_pass": 214,
58
+ "prompt_loose_pass": 228,
59
+ "failed": 0,
60
+ "truncated": 13,
61
+ "empty_answers": 12,
62
+ "unparsed_answers": 12
63
+ },
64
+ "tokens": {
65
+ "input_tokens": 28111,
66
+ "output_tokens": 3608969
67
+ },
68
+ "notes": [
69
+ "13 of 300 prompts hit the 131,072-token context ceiling during xhigh reasoning loops (12 empty content, 1 passed loose) and are retained in the reported totals.",
70
+ "Across the 287 non-truncated prompts, prompt_level_strict is 0.7422 (213/287) and prompt_level_loose is 0.7909 (227/287)."
71
+ ]
72
+ },
73
+ {
74
+ "dataset": "gpqa_diamond",
75
+ "name": "GPQA-Diamond",
76
+ "run_id": "20261126T205646Z-55037c1d",
77
+ "started_at": "2026-11-26T21:24:29.413988+00:00",
78
+ "finished_at": "2026-11-26T22:15:38.752930+00:00",
79
+ "duration_seconds": 3069.3,
80
+ "serve_commit": "cc8e8153b",
81
+ "harness_commit": "bbaeffdfe1efb39f9c5f82a8c4460917720b2cd8",
82
+ "deployment": {
83
+ "max_concurrency": 8,
84
+ "max_context": 196608,
85
+ "kv_dtype": "fp8",
86
+ "swa_kv_dtype": "bf16",
87
+ "prefill_chunk": 4096,
88
+ "cuda_graph": true,
89
+ "vision": false,
90
+ "speculative_backend": "dspark",
91
+ "draft_tokens": 7,
92
+ "proposal_head": "full",
93
+ "thinking_budget": 131072
94
+ },
95
+ "generation": {
96
+ "temperature": 1.0,
97
+ "top_p": 1.0,
98
+ "top_k": 20,
99
+ "min_p": 0.0,
100
+ "presence_penalty": 0.0,
101
+ "frequency_penalty": 0.0,
102
+ "thinking": true,
103
+ "reasoning_effort": "high (template default 0.9)",
104
+ "max_tokens": 163840,
105
+ "seed": 42
106
+ },
107
+ "metrics": {
108
+ "accuracy": 0.8788
109
+ },
110
+ "counts": {
111
+ "questions": 198,
112
+ "scored": 198,
113
+ "repeats": 1,
114
+ "correct": 174,
115
+ "failed": 0,
116
+ "truncated": 0,
117
+ "empty_answers": 0,
118
+ "unparsed_answers": 0
119
+ },
120
+ "tokens": {
121
+ "input_tokens": 57068,
122
+ "output_tokens": 2956735
123
+ }
124
+ },
125
+ {
126
+ "dataset": "mmmu_pro",
127
+ "name": "MMMU-Pro (standard, 10 options)",
128
+ "run_id": "20261126T225950Z-b984784a",
129
+ "started_at": "2026-11-26T22:59:50.199843+00:00",
130
+ "finished_at": "2026-11-27T02:21:09.418884+00:00",
131
+ "duration_seconds": 12076.86,
132
+ "serve_commit": "cc8e8153b",
133
+ "harness_commit": "bbaeffdfe1efb39f9c5f82a8c4460917720b2cd8",
134
+ "deployment": {
135
+ "max_concurrency": 8,
136
+ "max_context": 163840,
137
+ "kv_dtype": "fp8",
138
+ "swa_kv_dtype": "bf16",
139
+ "prefill_chunk": 4096,
140
+ "cuda_graph": true,
141
+ "vision": true,
142
+ "vision_memory_budget": "1GiB",
143
+ "speculative_backend": "dspark",
144
+ "draft_tokens": 7,
145
+ "proposal_head": "full",
146
+ "thinking_budget": 98304
147
+ },
148
+ "generation": {
149
+ "temperature": 1.0,
150
+ "top_p": 1.0,
151
+ "top_k": 20,
152
+ "min_p": 0.0,
153
+ "presence_penalty": 0.0,
154
+ "frequency_penalty": 0.0,
155
+ "thinking": true,
156
+ "reasoning_effort": "high (template default 0.9)",
157
+ "max_tokens": 131072,
158
+ "seed": 42
159
+ },
160
+ "metrics": {
161
+ "accuracy": 0.7566
162
+ },
163
+ "counts": {
164
+ "questions": 1730,
165
+ "scored": 1730,
166
+ "repeats": 1,
167
+ "correct": 1309,
168
+ "failed": 0,
169
+ "truncated": 0,
170
+ "empty_answers": 0,
171
+ "unparsed_answers": 1
172
+ },
173
+ "tokens": {
174
+ "input_tokens": 988401,
175
+ "output_tokens": 11527502
176
+ },
177
+ "notes": [
178
+ "1 of 1,730 responses was unparsed and is retained in the scored total."
179
+ ]
180
+ },
181
+ {
182
+ "dataset": "openai_mrcr",
183
+ "name": "OpenAI MRCR (8-needle, 262K-524K)",
184
+ "run_id": "20261127T022117Z-450c1cf1",
185
+ "started_at": "2026-11-27T02:21:17.721752+00:00",
186
+ "finished_at": "2026-11-27T07:53:20.288956+00:00",
187
+ "duration_seconds": 13759.85,
188
+ "serve_commit": "cc8e8153b (samples 1-18); b2514a7ae (samples 19-99)",
189
+ "harness_commit": "bbaeffdfe1efb39f9c5f82a8c4460917720b2cd8",
190
+ "deployment": {
191
+ "max_concurrency": 1,
192
+ "max_context": 589824,
193
+ "kv_dtype": "fp8",
194
+ "swa_kv_dtype": "bf16",
195
+ "prefill_chunk": 4096,
196
+ "cuda_graph": true,
197
+ "vision": false,
198
+ "prefix_reuse": false,
199
+ "speculative_backend": "none",
200
+ "draft_tokens": 0,
201
+ "thinking_budget": 49152
202
+ },
203
+ "generation": {
204
+ "temperature": 1.0,
205
+ "top_p": 1.0,
206
+ "top_k": 20,
207
+ "min_p": 0.0,
208
+ "presence_penalty": 0.0,
209
+ "frequency_penalty": 0.0,
210
+ "thinking": true,
211
+ "reasoning_effort": "high (template default 0.9)",
212
+ "max_tokens": 65536,
213
+ "seed": 42
214
+ },
215
+ "dataset_filter": {
216
+ "needle_count": [8],
217
+ "min_context_size": 262144,
218
+ "max_context_size": 524288
219
+ },
220
+ "metrics": {
221
+ "overall_mrcr_score": 0.5152,
222
+ "262144-524288_mrcr_score": 0.5152
223
+ },
224
+ "counts": {
225
+ "slice_questions": 99,
226
+ "scored": 99,
227
+ "repeats": 1,
228
+ "exact_matches": 26,
229
+ "failed": 0,
230
+ "truncated": 5,
231
+ "empty_answers": 5,
232
+ "unparsed_answers": 5
233
+ },
234
+ "tokens": {
235
+ "input_tokens": 43095702,
236
+ "output_tokens": 1316327
237
+ },
238
+ "notes": [
239
+ "All 99 items in the 8-needle 262,144-524,288 character slice completed without request errors.",
240
+ "5 of 99 items hit the 589,824-token context ceiling during reasoning (scored 0.0) and are retained in the 0.5152 overall mean; mean score over the 94 non-truncated items is 0.5426."
241
+ ]
242
+ }
243
+ ],
244
+ "notes": [
245
+ "Original EvalScope scorer outputs are retained, including truncated and unparsed responses.",
246
+ "All evaluations ran through NInfer's public OpenAI Chat Completions API on one RTX 5090 with FP8 full-attention KV and BF16 sliding-window KV."
247
+ ]
248
+ }