This model card is the version-controlled source for tensorninja2/Inkling-2-Mini-NInfer.
The repository contains Inkling 2 Mini
converted to the native .ninfer artifact format of
NInfer-4090, a C++/CUDA inference engine for this
model on one RTX 4090. The file works only with NInfer. It is not a Transformers checkpoint,
Safetensors distribution, or GGUF file.
Inkling 2 Mini is a looped mixture-of-experts model. Its 24 stored layers make 48 layer visits per token, and every layer routes to 8 of 128 experts. The conversion does not calibrate, quantize, transpose, fuse, or cast any tensor. The artifact keeps the checkpoint's own NVFP4 experts in layers 0 to 19 and MXFP8 experts in layers 20 to 23, and NInfer runs them on the 4090's INT8 and FP16 tensor cores.
| Field | Value |
|---|---|
| Filename | inkling2_mini.ninfer |
| Size | 20,191,480,320 bytes (18.80 GiB) |
| SHA-256 | 32c785c7d7f91a4445103d8ca5612ca124b859df9378c20494e9c1696ed3c92a |
| Container version | 2 |
| NInfer model ID | inkling-2-mini |
| NInfer weights ID | native |
| NInfer target key | inkling2_mini |
| Stored objects | 1,305 (1,298 tensors and 7 resources) |
The file holds the Text model, the DSpark drafter, the Vision encoder, and the tokenizer, chat-template, generation, and processor files of the checkpoint, byte for byte.
To check a downloaded file, download SHA256SUMS beside it:
hf download tensorninja2/Inkling-2-Mini-NInfer SHA256SUMS --local-dir models
(cd models && sha256sum --check SHA256SUMS)
sm_89);hf download tensorninja2/Inkling-2-Mini-NInfer inkling2_mini.ninfer --local-dir models
./build-sm89/apps/ninfer-serve models/inkling2_mini.ninfer \
--max-context 131072 --kv-dtype rk4v4 --spec dspark --draft-tokens 3
The server advertises the model as inkling-2-mini. --draft-tokens takes 1 to 7. Three is
fastest at one and at three concurrent requests, because a wider verify reads more experts. Greedy
output is the same with and without DSpark.
Without --vision, the server selects dynamic Vision when the encoder's KV lease fits the pool,
and keeps the encoder on the GPU when it does not. Dynamic Vision keeps the encoder weights in host
RAM and borrows KV pages only while it encodes an image. Pass --vision off for text only.
The Docker image of NInfer-4090 downloads only the Qwen3.8-27B files. To serve this artifact from
it, mount the file and give ninfer-serve as the command:
docker run --detach --name ninfer-inkling --gpus all --publish 8080:8080 \
--env NINFER_FETCH=0 \
--volume "$PWD/models/inkling2_mini.ninfer:/models/inkling2_mini.ninfer:ro" \
ghcr.io/tensorninja/ninfer-4090:latest \
ninfer-serve /models/inkling2_mini.ninfer --host 0.0.0.0 --port 8080 \
--max-context 131072 --kv-dtype rk4v4 --spec dspark --draft-tokens 3 \
--web-dir /opt/ninfer/web
See the NInfer-4090 README for more.
Measured on an RTX 4090 at its 480 W limit with rk4v4 KV, CUDA Graphs on, and 2,048-token
prefill chunks. Prefill rates come from the server's request log with prefix reuse and the
continuation cache off. Decode generates 256 tokens after a code prompt.
| Workload | Result |
|---|---|
| Prefill, 4,096 / 32,768 / 131,072 tokens | 5,699 / 4,631 / 2,797 tok/s |
| Decode, 4K context, no drafter | 130.7 tok/s (257 tok/s for 3 streams together) |
| Decode, 128K context, no drafter | 108.2 tok/s |
| Decode, code, greedy, DSpark with 3 draft tokens | 190.9 tok/s (336 tok/s for 3 streams) |
Decode stays fast at depth because only 8 of the 48 layer visits read the full context. The other 40 are sliding-window visits that read at most 1,024 keys. Method and raw numbers are in Performance.
The context limit is 262,144 tokens, although the checkpoint advertises 1,048,576, because the
relative-attention kernel stops there. With rk4v4 KV and one request, the full 262,144 tokens fit
with Vision, and 190,208 tokens fit with Vision and DSpark at 7 draft tokens. See
Context capacity
for other profiles.
NInfer-4090 serves any agent that speaks OpenAI Chat Completions, OpenAI Responses, or Anthropic
Messages, with Inkling's own tool-call and reasoning formats. For the most native experience, use
Caudra, the coding agent from the same author. Caudra shows NInfer's live
prefill rate while it reads the prompt, marks cache breakpoints and session keys that NInfer reuses
across turns, and can use
inkling-2-mini-decision-2 on the
same server for decisions. For the providers.toml entry, see
Use it from Caudra.
The artifact supports:
rk4v4 KV cache, the two qualified modes;| Field | Value |
|---|---|
| Source repository | thinkingmachines/Inkling-2-Mini |
| Source revision | ed40e7da625f594fc9c4990f5f66be24873c22d7 |
| Conversion recipe | inkling2_mini-native-v1 |
| Regions | Text, DSpark, Vision |
| Converter repository | https://github.com/tensorninja/ninfer-4090 |
| Converter revision | 6824a977 |
The converter checked the source index against the shard keys and every registered source shape
and dtype before it wrote the output. The seven embedded resources keep the checkpoint's file names
and bytes. The artifact identity, object inventory, and conversion provenance are in
artifact-manifest.json.
The storage contract is in the
Inkling 2 Mini artifact reference.
This artifact is distributed under the Apache License 2.0. The source Inkling 2 Mini repository is also Apache-2.0.