Repository navigation
Description
Tested the 0.2.19 release on a single 16 GB Blackwell card. SQ-15 works and its answers are correct. I found three problems, plus one VRAM limit worth a note. Numbers are compared with the same benchmark I ran on PR #6520 (feat/inkling2 at 2daf740df).
Setup
- Strata v0.2.19 (
c6f6427d9), the release'sstrata-inkling0.1.65 CUDA 13 package (archs 75;80;86;89;120), served by the release'sterminal/serve/server.py. - RTX 5060 Ti 16 GB on PCIe 3.0 x8, driver 615.71.09, alone (
gpu: 0). A remote-desktop session takes about 480 MiB of it. Intel Core i7-7800X (6 cores, AVX-512, one NUMA node), 96 GiB DDR4. Fedora 45, kernel 7.2.15. - Models: the published
Inkling-2-Mini-SQ-15.strata, the officialthinkingmachines/Inkling-2-Minisafetensors (SHA-256 checked), andggml-org/Inkling-2-Mini-GGUFIQ4_NL. - Client:
/v1/chat/completions, streaming, temperature 0,reasoning_effort: "none". Speeds below are tokens divided by the whole request time. The 0.2.19 server does not stream the short thinking part, so the first visible token comes late. Timed from that token, decode looks about twice as fast (≈102 tok/s) as it is.
Numbers (SQ-15, --native …SQ-15.strata --kv fp8)
| Decode, 512 tokens (3 runs) | 4,812-token prompt, 8 out | 18,370-token prompt | 5 short questions | |
|---|---|---|---|---|
| 0.2.19, 32K, DSpark off | 39.9 / 42.9 / 44.1 tok/s | 3.6 s | 17.5 s | all correct |
| 0.2.19, 16K, DSpark off | 44.0 / 44.2 / 44.3 tok/s | 2.9 s | (over 16K) | not run |
| 0.2.19, 16K, DSpark on | 36.9 / 37.3 / 37.3 tok/s | hangs (below) | — | — |
| PR #6520, safetensors + CPU experts, 32K | 51.5-51.8 tok/s | 5.2 s | 18.7 s | all correct |
So on this card the SQ-15 path reads prompts 1.3-1.8× faster than #6520 but decodes about 15 % slower. DSpark makes decode slower here (44 → 37 tok/s). The engine log shows experts=3072 VRAM / 0 host.
1. DSpark: out of memory during prefill, and the engine then hangs
--max-context 16384 --kv fp8 --draft dspark. The engine starts, and three 133-token requests and two ~650-token requests work. On a 4,812-token prompt the engine log shows
strata-inkling CUDA error 2 (out of memory) at /data/split-pkg/rc219-r2/src/engine/src/inkling2/cuda/ink_cuda.cuh:54
After that the process does not exit and never answers. The server prints reading the prompt: 2,560 of 4,812 tokens, … s so far every 10 s, and it was still doing that 4.7 hours later (17,089 s), with the GPU at 2-3 %. I stopped it by hand. Two things might help: exiting or returning an error after a CUDA error, and a server-side timeout when the engine stops making progress. The VRAM check at start-up also passed for a setup that cannot finish a 4.8K prompt.
2. VRAM limits for SQ-15 on 16 GB (for the docs?)
With all 3,072 experts in VRAM, these fail at start-up with the same CUDA OOM: 32K with fp16 KV; DSpark at 16K with fp16 KV; DSpark at 32K with fp8 KV. These start: 8K and 16K with fp16, 32K with fp8, and DSpark at 8K or at 16K with fp8 (though see 1). --bench --prompt-len 512 with no --max-context prints Auto-sizing max_ctx 32768 -> 28864 for parallel=1 (1.59 GiB free VRAM) and then hits the same OOM. A note on what fits on 16 GB, or a context auto-size that leaves room for the activations, might save others a few tries.
3. Official safetensors: segfault on prompts of 133 tokens or more
The plain CUDA backend reads only .strata: --native on the safetensors directory gives Short read on .strata header. With --cpu-threads 5 --vram-reserve-mib 0 it picks cuda-hybrid-doorbell and loads (experts: 2768 VRAM (12.27 GiB), 304 host (doorbell=on, numa=1, thr=5) | kv=fp16). Then:
LD_LIBRARY_PATH=$PKG CUDA_VISIBLE_DEVICES=0 strata-inkling --bench --native Inkling-2-Mini \
--prompt-len N --gen 64 --cpu-threads 5 --vram-reserve-mib 0
- N=40: works,
prefill=4.2 ppts (9.51s) | decode=5.8 tps - N=133 and N=512: exit 139. The kernel log shows
segfault at 900 ip … error 4 in strata-inkling[b97bb,…], the same offset every time.
Through the server, prompts of 33-43 tokens answer correctly but slowly (35-52 s to the first token, 3-4 tok/s overall), and everything at 133 tokens or more fails. In [Engine] Inkling-2-Mini from the official NVFP4/MXFP8 checkpoint, expert offload and CPU experts for 8-16 GB cards #6520 the same checkpoint and the same flags gave 52 tok/s, so this looks like a regression in the hybrid path, not a limit of the card.
4. ggml-org/Inkling-2-Mini-GGUF IQ4_NL does not open
open: GGUF: missing tensor loop_res_query.weight. The 0.2.19 notes list only Unsloth's GGUF, so this may be expected. If so, a line saying which GGUF converters are supported would help. (On #6520 the same file failed later, with layer 20: expert sizes differ.)
Not tested: two cards, images, contexts above 32K, parallel > 1, Unsloth's GGUF, Windows.
Tested with help from Claude Code (Anthropic), which ran the builds and measurements; I checked the results.
Activity
github-actions commentedon Nov 22, 2026
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
Norhiro commentedon Nov 23, 2026
Re-tested on 0.2.20 (
v0.2.20=4920a3a4b, thestrata-inkling0.1.66linux-x86_64-cuda-cuda13package, 0.2.20server.py). The machine, the benchmark and the settings are the same as above. Speeds are tokens divided by the whole request time.--cpu-threads 5 --vram-reserve-mib 0Thanks. SQ-15 is now the fastest way to run this model on this card, and DSpark no longer runs out of memory. DSpark still makes decode slower here (47 → 36 tok/s).
1. The safetensors path now runs but answers with garbage
Same checkpoint (SHA-256 checked) and the same arguments. The engine reports
experts=2289 GPU0 + 0 GPU-1 / 783 host (… hyb=1)andAuto Host KV Offload (kv_fmt=0, 1.48 GiB free VRAM): global KV = 4608 VRAM + 28160 mapped host tokens. All 5 questions and the 512-token prompt come back as noise, for example:The 512-token request stops after 240 tokens. On 0.2.19 the same path crashed for long prompts, but its answers to the five short questions were correct. So this looks new in 0.1.66: either the host-expert path or the host KV offload with
kv_fmt=0(fp16). SQ-15 also uses host KV offload, withkv_fmt=1, and is fine. I have not split the two apart.2. For reference: the 0.2.19 segfault
I found it before 0.2.20 came out. It is the one 0.2.20 fixes in
dispatch_moe_ep: a VRAM-resident expert with more thankMaxParallelSlots(64) tokens fell through tohost_jobs, andhost_descs_[key]is empty for resident experts. Soeval_inkling2_expert_batchreadnullptr + inter*2= 0x900 ingemm_sk_q8_1, the exact fault address. Chunking on the GPU, as 0.2.20 now does, fixed it in my build too.3. The hang after a CUDA error (still in 0.2.20)
INK_CKininkling2/cuda/ink_cuda.cuhstill callsstd::exit(3). On 0.2.19 the DSpark OOM printedCUDA error 2 (out of memory) at …/ink_cuda.cuh:54, and then the process stayed alive without answering for 4.7 hours. In a build of 0.2.19 withstd::fflush(stderr); std::_Exit(3);instead, the same OOM ended the process at once. The server restarted it and returned a 400 within a minute. My guess is thatexit()runs static destructors while other threads are still inside CUDA calls. 0.2.20 no longer runs out of memory on that prompt, so I could not show the hang on 0.2.20 itself.Not tested on 0.2.20: the Unsloth GGUFs, contexts above 32K, two cards, images.
[-][Inkling-2-Mini] 0.2.19 on one RTX 5060 Ti 16 GB: SQ-15 works; DSpark runs out of memory during prefill and the engine hangs; official safetensors segfault at 133+ prompt tokens[/-][+][Engine] Inkling-2-Mini on one RTX 5060 Ti 16 GB (0.2.19, 0.2.20): DSpark OOM hang on 0.2.19; official safetensors segfault on 0.2.19, garbage output on 0.2.20[/+]github-actions commentedon Nov 23, 2026
Thanks, this follows the format now.
Niko1221 commentedon Nov 23, 2026
Thanks for the testing on the RTX 5060 Ti, including the 0.2.20 re-test table.
The full engine logs are what is missing. Could you send the log of the 0.2.19 DSpark run that stopped at the 4,812-token prompt, and the log of the 0.2.20 safetensors run that printed the garbage output?
Please look through them and remove anything private first. Never post an API key.
This stays open, and we will look at it once we have the logs.
Norhiro commentedon Nov 23, 2026
Thanks. Both logs are below. I replaced local paths with
./andmodels/; nothing else is changed except where noted.1. 0.2.19, DSpark run that stopped at 4,812 tokens
SQ-15
.strata,--max-context 16384 --kv fp8 --draft dspark, RTX 5060 Ti 16 GB alone. The requests before it (three 512-token generations and two short reads) finished normally. During the 4,812-token read the engine printed the out-of-memory line and then stayed alive without answering. The server kept printing2,560 of 4,812for about 4.7 hours until I stopped it with Ctrl+C; that is when it reported exit code 3.engine log (complete)
server log (the repeated waiting line is shortened, everything else is complete)
2. 0.2.20, official safetensors run with the garbage output
thinkingmachines/Inkling-2-Minias published,--max-context 32768 --draft off --cpu-threads 5 --vram-reserve-mib 0. The engine log has no error or warning; it ends after the KV line. The server log only shows progress, not the text. Requests were/v1/chat/completions, streaming, temperature 0. For example, the 135-token prompt withmax_tokens512 returned 240 tokens beginning with:and the same text on all three repeats.
engine log (complete)
server log (complete)
Norhiro commentedon Nov 26, 2026
Re-tested on 0.2.22 (
strata-inkling0.1.69linux-x86_64-cuda-cuda13, builda5bfe0369bfb, the 0.2.22server.py) and on 0.2.21 (0.1.67). Same machine (RTX 5060 Ti 16 GB alone) and the same checkpoint as above. The official safetensors still answer with garbage on both, while the ggml-org IQ4_NL GGUF on the same engine, card and settings answers correctly. #7093 does not apply here: this is one card, and the log shows0 GPU-1.0.2.22: the switches I could flip without a rebuild
4 short questions each (temperature 0.6,
max_tokens300). The garbage starts at the first token.Rim Number13 AG20 a<12<|end_message|>< DominicSTRATA_INK_TIER=0(no expert tier swaps; 780 host experts)STRATA_INK_EXACT=1(cold experts copied into the card and computed by its kernels)STRATA_FORCE_ISA=avx2STRATA_INK_NO_GRAPH=1The function iterates through the string, …So it is not the expert tier, not the CPU lane (
STRATA_INK_EXACT=1still breaks), not the AVX-512 kernels, and not the CUDA graph. I also checked the host SF4 and MX8 row dots (dot_sf4_rowanddot_mx8_rowin AVX-512 and AVX2) against a plain C++ reference, outside the engine: they agree to float rounding. That leaves the part that only the safetensors (HF-NVFP4-MXFP8) path uses: loading the checkpoint, or the card kernels for the trunk and the NVFP4/MXFP8 experts (see the 3060 run below).0.2.21: the longer run
--native models/Inkling-2-Mini --max-context 32768 --kv fp8 --draft off, 320 requests to/v1/chat/completions(8 short coding questions × 40 seeds, temperature 0.6, top_p 0.95,reasoning_effort: none, non-streaming). The questions were two unified-diff edits on a 300-line file and six "what does this 10-line function return" questions.Inkling-2-Mini-IQ4_NL.ggufstrata-inklingInkling-2-Mini(HF-NVFP4-MXFP8)strata-inklingInkling-2-Ministrata-ink2from #6520 (d3431b17c)A typical reply from run B:
The same question on run A answers correctly, starting "The function iterates through the list, groups consecutive identical elements, …".
What the 0.2.21 run narrows down
kv_fmt=0(fp16). This run uses--kv fp8, and the log showskv_fmt=1, the same as run A, which is fine. So the fp16 host KV is not the cause.strata-ink2from [Engine] Inkling-2-Mini from the official NVFP4/MXFP8 checkpoint, expert offload and CPU experts for 8-16 GB cards #6520 reads the same safetensors on the same card with 81 % of the experts on the card and the rest on the CPU (cpu experts: avx512, NVFP4 activations fp32), and answers normally. So the checkpoint itself is fine.0.2.22 on the RTX 3060 (sm_86,
sm120_tc=0)Same four questions, same engine.
STRATA_INK_EXACT=1So it is not the sm_120 path either: the safetensors break the same way on an Ampere card. That leaves the loading of the HF-NVFP4-MXFP8 checkpoint, or the card kernels for that format, which both cards use. On 0.2.19 (0.1.65) the same checkpoint gave correct short answers, so it looks like it came in with 0.1.66.
Not tested: a run with every expert on the card (they do not fit in 16 GB).
engine log of the 0.2.22 run with the defaults (complete; local paths replaced with
./andmodels/)engine log of the 0.2.21 run B (complete; local paths replaced with
./andmodels/)engine log of the 0.2.21 run A (the IQ4_NL GGUF that works, for comparison)
Norhiro commentedon Nov 26, 2026
I found the cause of the garbage with the official safetensors and opened a fix: #7201.
The CUDA runner reads the norm weights, the router gate, the short convolutions, the loop controllers and the attention clips through a plain
(const float*)cast. A GGUF stores them as F32. The official checkpoint stores most of them as BF16, and the safetensors loader copied them unchanged. #7201 widens those trunk tensors to F32 while loading, through the samewiden_fmtpath the drafter vectors already use.With it, on v0.2.22, the official checkpoint answers 272/320 on the RTX 5060 Ti and 265/320 on the RTX 3060, with no garbage and no reply cut off at the token limit. The same set gives 0/320 on v0.2.21. The details and what I did not test are in the PR.