Inkling-2-Mini-Unbound-AntiLoop - GGUF for the Strata inkling engine

GGUF conversion of Chris0105/Inkling-2-Mini-Unbound-AntiLoop for the Strata strata-inkling engine. The weights are the upstream checkpoint unchanged in meaning: this repository only re-contains them for an engine whose generation is specified for this architecture.

Built for Strata's strata-inkling engine and validated on a Tesla V100 (sm_70). It is not Volta-specific: the same file serves Ampere and Ada cards with the matching engine build - only the engine binary differs, the GGUF does not. The conversion fixes described below matter on every architecture, since they are about layout rather than hardware.

What is in here

file size notes
Inkling-2-Mini-Unbound-AntiLoop-v5-NVFP4.gguf 15.6 GB 752 tensors, NVFP4 experts, Q8_0 dense - the fast variant

The NVFP4 file was originally published at 20.2 GB with F32 dense weights. The dense half - attention, embeddings, output head - is now Q8_0, which takes the file to 15.6 GB with the expert tensors byte-identical and no measurable change in speed (bench measured 1,999 vs 1,999 tok/s prefill at 512, 113.9 vs 112.3 decode, 2,671 vs 2,664 at 2,048). Norms, biases and router tensors stay F32.

Layout notes for anyone converting this family themselves:

  • Experts that the checkpoint stores as NVFP4 are copied through as NVFP4 with a per-expert .scale of amax / outer_scale_denominator.
  • Experts the checkpoint stores as MXFP8 are dequantised and re-encoded as NVFP4, with a per-expert .scale of 1.0 (the encoder normalises every 64-value block itself). The MXFP8 source stores w13 interleaved, gate on the even rows and up on the odd rows.
  • blk.N.loop_msg_query.weight is four rows of 2304 ([4, 2304]), taken from middle_cycle_cross_pass_queries / ..._kv_queries as cp[2i], kv[2i], kv[2i+1], cp[2i+1].
  • The four-tap convolution tensors need a flip. blk.{5,11,17,23}.attn_{k,v}_conv.weight are (4, N) in the checkpoint and (N, 4) with the four rows reversed in the GGUF. Writing them flat scrambles the only globally attending layers: short text stays fluent and long-context retrieval silently fails. This is the bug that cost the most to find, so it is written down here.

Serving

Tested with the Strata engine built from the Volta/Turing kernel PRs (Niko1221/Strata#7517 and #7518), CUDA 12.9, CMAKE_CUDA_ARCHITECTURES=70:

strata-inkling --serve --native Inkling-2-Mini-Unbound-AntiLoop-v5-NVFP4.gguf \
  --draft auto --max-context 262144 --parallel 2 --chunk 4096 --kv fp8

Optional: the DFlash 2 drafter (dflash2.safetensors from an SQ-20 v2 pack) placed beside the file is picked up by --draft auto.

Measured for the NVFP4 file on a Tesla V100-PCIE-32GB, single slot, --kv fp8:

  • prefill 2,044 tok/s at 512 tokens, 2,430 tok/s at 8,192
  • decode 112 tok/s at 512, 62.9 tok/s at 8,192 (engine bench, no drafter)
  • with the drafter through the API: ~85 tok/s on short prompts
  • 119,141-token needle in a synthetic haystack: answered correctly (temperature 0)
  • 262,144-token context loads with --kv fp8; 22.4 GB of the card in use at two slots

On pre-Ampere cards the engine stops drafting from 3,072 tokens by design (kDraftPlainCtxSlowArch in ink_draft_rule.hpp); --draft on overrides that and was ~10% faster at 4.6k tokens here.

Why there is no Q3/Q4 build in this repository

A smaller expert quant was built, measured and withdrawn. Two things make it a bad trade here.

The geometry blocks a proper K quant. ffn_down_exps is [1152, 2304, 128], and every K-quant and IQ variant uses 256-value super-blocks - 1152 is 4.5 x 256, so the tensor cannot be tiled. Quantisers do not refuse; they silently fall back to q8_0 on that one tensor, which makes a "Q4_K_M" build larger than a 4-bit file should be (17.5 GB, measured). The only way to reach ~15 GB is to force a 32-block type on the down projection, which is what the withdrawn build did.

And it is slow everywhere. Measured on an RTX 3090 (sm_86, CUDA 13.4), same engine, prompt 512 / 2,048 / 8,192:

file prefill tok/s decode tok/s
NVFP4 (this repo) 2,474 / 2,854 / 2,658 88.6 / 85.8 / 82.8
Q4 (withdrawn) 250 / 268 / 263 71.7 / 69.7 / 66.9

A 10x prefill loss for 0.7 GB of file size. The engine's tuned expert kernels are NVFP4 on every architecture it supports; Q4-class experts fall into a generic dequantise-then-GEMM path. Nothing about the filename changes that, and Q3 would be no better.

If you need a smaller footprint, shrink the residency, not the precision - see below.

Fitting a smaller card: expert offload beats a smaller quant

The engine can keep only part of the expert pool in VRAM and run the rest from host memory (--vram-experts-gb N). Measured with the NVFP4 file on an RTX 3090, prompt 512:

experts in VRAM prefill tok/s decode tok/s
13 GB (all) 2,526 88.5
11 GB 1,968 85.7
9 GB 1,545 77.1
6 GB 438 53.3

Offload degrades far more gracefully than swapping the quant type does: at a 9 GB expert budget you still decode at 77 tok/s, where the Q4 file at full 13.90 GiB of weights manages 71.7. For a 16 GB card that is the practical recipe - NVFP4 file, --vram-experts-gb set so weights plus the ~2.2 GiB of runtime buffers fit, and let the remainder stream from RAM. It also keeps the file at full expert precision instead of trading quality for a size you do not need to trade.

Whole-model footprint measured on the 3090 with --bench: the NVFP4 file needs 17,150 MiB for 14,872 MiB of weights (~2.2 GiB of buffers), the Q4 file 17,756 MiB for 14,232 MiB. Neither fits a 16 GiB card at full residency; both do with an 11-13 GB expert budget.

Credit and provenance

  • Base model: thinkingmachines/Inkling-2-Mini, modified by nokeepai/Inkling-2-Mini-Unbound and then by Chris0105 into the AntiLoop variant. All model credit belongs to them; this repository is a container conversion plus the layout fixes listed above.
  • Licence follows the upstream card: apache-2.0.
  • The conversion code is in the strata-unbound-build working tree; the conv-flip finding is also recorded in the Strata fork branch volta/loader-debug (diagnostics only).
Downloads last month
-
GGUF
Model size
26B params
Architecture
inkling2_loop
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for fingaz/Inkling-2-Mini-Unbound-AntiLoop-GGUF