Skip to content

[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 #6688

Open

Description

@Norhiro

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's strata-inkling 0.1.65 CUDA 13 package (archs 75;80;86;89;120), served by the release's terminal/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 official thinkingmachines/Inkling-2-Mini safetensors (SHA-256 checked), and ggml-org/Inkling-2-Mini-GGUF IQ4_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

  1. github-actions commented on Nov 22, 2026

    @github-actions

    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:

    • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

    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

  2. added
    needs-format
    on Nov 22, 2026
  3. Norhiro commented on Nov 23, 2026

    @Norhiro
    ContributorAuthor

    Re-tested on 0.2.20 (v0.2.20 = 4920a3a4b, the strata-inkling 0.1.66 linux-x86_64-cuda-cuda13 package, 0.2.20 server.py). The machine, the benchmark and the settings are the same as above. Speeds are tokens divided by the whole request time.

    0.2.19 0.2.20
    SQ-15, 32K, KV fp8, DSpark off 40-44 tok/s, 4.8K prompt 3.6 s, 18.4K 17.5 s 46.2-46.9 tok/s, 2.9 s, 14.0 s, 5 answers correct
    SQ-15, 16K, KV fp8, DSpark on out of memory on the 4.8K prompt, then hung 35.9-36.5 tok/s, the 4.8K prompt works
    Official safetensors, --cpu-threads 5 --vram-reserve-mib 0 segfault at 133+ prompt tokens no crash, 15-21 tok/s, but the output is garbage (below)

    Thanks. 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) and Auto 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:

    < < < < < < < < < < << << < < < < < …
    ********* Sets*** Sets*<**<*4*****< Sets Even<<<<*<*<*sinister*<*****
    ( 1⁢1 1 1₁ ​(  ⁢⁢₁⁢     Re⁀ 0 0 ⁢⁢ …
    

    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, with kv_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 than kMaxParallelSlots (64) tokens fell through to host_jobs, and host_descs_[key] is empty for resident experts. So eval_inkling2_expert_batch read nullptr + inter*2 = 0x900 in gemm_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_CK in inkling2/cuda/ink_cuda.cuh still calls std::exit(3). On 0.2.19 the DSpark OOM printed CUDA 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 with std::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 that exit() 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.

  4. changed the title [-][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[/+] on Nov 23, 2026
  5. removed
    needs-format
    on Nov 23, 2026
  6. github-actions commented on Nov 23, 2026

    @github-actions

    Thanks, this follows the format now.

  7. Niko1221 commented on Nov 23, 2026

    @Niko1221
    Owner

    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.

  8. Norhiro commented on Nov 23, 2026

    @Norhiro
    ContributorAuthor

    Thanks. Both logs are below. I replaced local paths with ./ and models/; 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 printing 2,560 of 4,812 for about 4.7 hours until I stopped it with Ctrl+C; that is when it reported exit code 3.

    engine log (complete)
    [strata] 2026-11-22 23:13:33 engine started: ./inkling-cuda13/strata-inkling --serve --native models/Inkling-2-Mini-Strata/Inkling-2-Mini-SQ-15.strata --max-context 16384 --kv fp8 --draft dspark
    [InkCUDA] Loaded models/Inkling-2-Mini-Strata/Inkling-2-Mini-SQ-15.strata (SQ-15): trunk=2.07 GB (0.58s), experts=3072 VRAM / 0 host (3.23s, hyb=0, promo=0, pf_buf=0MB), sm120_tc=1, screen=0
    strata-inkling CUDA error 2 (out of memory) at /data/split-pkg/rc219-r2/src/engine/src/inkling2/cuda/ink_cuda.cuh:54
    
    server log (the repeated waiting line is shortened, everything else is complete)
    loading the model (the first start takes a minute or two) ...
    [strata] starting the engine: reading the model's weights ...
    ready: http://127.0.0.1:8080/v1  (OpenAI: /v1/chat/completions, Anthropic: /v1/messages, context 16384 tokens)
           open http://127.0.0.1:8080/ in a browser to chat; close this window to stop the model
    [strata] reading the prompt: 37 of max 512 tokens, 44.8 tok/s, 1 s
    [strata] reading the prompt: 86 of max 512 tokens, 46.1 tok/s, 2 s
    [strata] reading the prompt: 124 of max 512 tokens, 43.2 tok/s, 3 s
    [strata] answering: 161 of max 512 tokens, 41.3 tok/s, 4 s
    [strata] answering: 194 of max 512 tokens, 39.3 tok/s, 5 s
    [strata] answering: 228 of max 512 tokens, 38.4 tok/s, 6 s
    [strata] answering: 258 of max 512 tokens, 37.2 tok/s, 7 s
    [strata] answering: 295 of max 512 tokens, 36.9 tok/s, 8 s
    [strata] answering: 337 of max 512 tokens, 37.5 tok/s, 9 s
    [strata] answering: 367 of max 512 tokens, 36.7 tok/s, 10 s
    [strata] answering: 415 of max 512 tokens, 37.7 tok/s, 11 s
    [strata] answering: 445 of max 512 tokens, 37.0 tok/s, 12 s
    [strata] answering: 488 of max 512 tokens, 37.3 tok/s, 13 s
    [strata] done: 512 tokens in 14 s (37.5 tok/s) (length, cancel=False)
    [strata] reading the prompt: 43 of max 512 tokens, 48.8 tok/s, 1 s
    [strata] reading the prompt: 91 of max 512 tokens, 48.0 tok/s, 2 s
    [strata] reading the prompt: 131 of max 512 tokens, 45.2 tok/s, 3 s
    [strata] answering: 164 of max 512 tokens, 41.8 tok/s, 4 s
    [strata] answering: 196 of max 512 tokens, 39.6 tok/s, 5 s
    [strata] answering: 232 of max 512 tokens, 38.8 tok/s, 6 s
    [strata] answering: 263 of max 512 tokens, 37.5 tok/s, 7 s
    [strata] answering: 301 of max 512 tokens, 37.5 tok/s, 8 s
    [strata] answering: 342 of max 512 tokens, 37.8 tok/s, 9 s
    [strata] answering: 378 of max 512 tokens, 37.6 tok/s, 10 s
    [strata] answering: 419 of max 512 tokens, 37.8 tok/s, 11 s
    [strata] answering: 452 of max 512 tokens, 37.2 tok/s, 12 s
    [strata] answering: 494 of max 512 tokens, 37.5 tok/s, 13 s
    [strata] done: 512 tokens in 14 s (37.8 tok/s) (length, cancel=False)
    [strata] reading the prompt: 43 of max 512 tokens, 48.8 tok/s, 1 s
    [strata] reading the prompt: 91 of max 512 tokens, 48.0 tok/s, 2 s
    [strata] reading the prompt: 131 of max 512 tokens, 45.2 tok/s, 3 s
    [strata] answering: 164 of max 512 tokens, 41.8 tok/s, 4 s
    [strata] answering: 196 of max 512 tokens, 39.7 tok/s, 5 s
    [strata] answering: 232 of max 512 tokens, 38.8 tok/s, 6 s
    [strata] answering: 263 of max 512 tokens, 37.5 tok/s, 7 s
    [strata] answering: 302 of max 512 tokens, 37.7 tok/s, 8 s
    [strata] answering: 342 of max 512 tokens, 37.8 tok/s, 9 s
    [strata] answering: 378 of max 512 tokens, 37.6 tok/s, 10 s
    [strata] answering: 419 of max 512 tokens, 37.8 tok/s, 11 s
    [strata] answering: 452 of max 512 tokens, 37.2 tok/s, 12 s
    [strata] answering: 494 of max 512 tokens, 37.5 tok/s, 13 s
    [strata] done: 512 tokens in 14 s (37.8 tok/s) (length, cancel=False)
    [strata] done: 8 tokens in 1 s (69.0 tok/s) (length, cancel=False)
    [strata] done: 8 tokens in 1 s (69.1 tok/s) (length, cancel=False)
    [strata] reading the prompt: 2,048 of 4,812 tokens, 1 s so far
    [strata] reading the prompt: 2,560 of 4,812 tokens, 11 s so far
    [strata] reading the prompt: 2,560 of 4,812 tokens, 21 s so far
    ... (1706 more identical lines, one every 10 s; only the elapsed time changes) ...
    [strata] reading the prompt: 2,560 of 4,812 tokens, 17099 s so far
    
    [strata] stopping (Ctrl+C again to end the engine at once) ...
    [strata] the engine stopped unexpectedly (exit code 3). The engine exited (code 3). Its last log line: strata-inkling CUDA error 2 (out of memory) at /data/split-pkg/rc219-r2/src/engine/src/inkling2/cuda/ink_cuda.cuh:54 - if that does not explain it, please report it at github.com/Niko1221/Strata/issues with the log. The next request starts the engine again. Its log: ./engine-A1.log
    [strata] done: 0 tokens in 17106 s (no speed) (error, cancel=True)
    [strata] stopped
    

    2. 0.2.20, official safetensors run with the garbage output

    thinkingmachines/Inkling-2-Mini as 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 with max_tokens 512 returned 240 tokens beginning with:

    ( Frans( a (
    -*de of Phil( Count
    **<(算(算誹漢de†阿蕡( 算(算 (of( to? (de to
    

    and the same text on all three repeats.

    engine log (complete)
    [strata] 2026-11-23 10:08:55 engine started: ./inkling-cuda13/strata-inkling --serve --native models/Inkling-2-Mini --max-context 32768 --draft off --cpu-threads 5 --vram-reserve-mib 0
    [InkCUDA] Loaded models/Inkling-2-Mini (HF-NVFP4-MXFP8, fmt=safetensors): trunk=3.85 GB (3.88s), experts=2289 GPU0 + 0 GPU-1 / 783 host (23.02s, ep2=0, p2p=0, hyb=1), sm120_tc=1
    [InkCUDA] Auto Host KV Offload (kv_fmt=0, 1.48 GiB free VRAM): global KV = 4608 VRAM + 28160 mapped host tokens (880.0 MiB host RAM, max_ctx=32768)
    
    server log (complete)
    loading the model (the first start takes a minute or two) ...
    [strata] starting the engine: reading the model's weights ...
    [strata] still starting (20 s) - please wait ...
    ready: http://127.0.0.1:8080/v1  (OpenAI: /v1/chat/completions, Anthropic: /v1/messages, context 32768 tokens)
           open http://127.0.0.1:8080/ in a browser to chat; close this window to stop the model
    [strata] answering: 2 of max 512 tokens, 8.0 tok/s, 1 s
    [strata] answering: 26 of max 512 tokens, 24.7 tok/s, 2 s
    [strata] answering: 50 of max 512 tokens, 24.2 tok/s, 3 s
    [strata] answering: 74 of max 512 tokens, 24.0 tok/s, 4 s
    [strata] answering: 98 of max 512 tokens, 23.8 tok/s, 5 s
    [strata] answering: 122 of max 512 tokens, 23.8 tok/s, 6 s
    [strata] answering: 146 of max 512 tokens, 23.7 tok/s, 7 s
    [strata] answering: 170 of max 512 tokens, 23.7 tok/s, 8 s
    [strata] answering: 194 of max 512 tokens, 23.7 tok/s, 9 s
    [strata] answering: 218 of max 512 tokens, 23.7 tok/s, 10 s
    [strata] answering: 237 of max 512 tokens, 23.1 tok/s, 11 s
    [strata] done: 240 tokens in 11 s (22.9 tok/s) (length, cancel=False)
    [strata] answering: 15 of max 512 tokens, 15.3 tok/s, 1 s
    [strata] answering: 30 of max 512 tokens, 14.9 tok/s, 2 s
    [strata] answering: 45 of max 512 tokens, 14.7 tok/s, 3 s
    [strata] answering: 60 of max 512 tokens, 14.6 tok/s, 4 s
    [strata] answering: 75 of max 512 tokens, 14.6 tok/s, 5 s
    [strata] answering: 90 of max 512 tokens, 14.5 tok/s, 6 s
    [strata] answering: 105 of max 512 tokens, 14.5 tok/s, 7 s
    [strata] answering: 120 of max 512 tokens, 14.4 tok/s, 8 s
    [strata] answering: 135 of max 512 tokens, 14.4 tok/s, 9 s
    [strata] answering: 151 of max 512 tokens, 14.5 tok/s, 10 s
    [strata] answering: 175 of max 512 tokens, 15.3 tok/s, 12 s
    [strata] answering: 199 of max 512 tokens, 16.0 tok/s, 13 s
    [strata] answering: 223 of max 512 tokens, 16.5 tok/s, 14 s
    [strata] done: 240 tokens in 14 s (16.9 tok/s) (length, cancel=False)
    [strata] answering: 24 of max 512 tokens, 24.7 tok/s, 1 s
    [strata] answering: 40 of max 512 tokens, 19.9 tok/s, 2 s
    [strata] answering: 55 of max 512 tokens, 18.0 tok/s, 3 s
    [strata] answering: 70 of max 512 tokens, 17.0 tok/s, 4 s
    [strata] answering: 85 of max 512 tokens, 16.5 tok/s, 5 s
    [strata] answering: 100 of max 512 tokens, 16.1 tok/s, 6 s
    [strata] answering: 115 of max 512 tokens, 15.8 tok/s, 7 s
    [strata] answering: 130 of max 512 tokens, 15.6 tok/s, 8 s
    [strata] answering: 145 of max 512 tokens, 15.4 tok/s, 9 s
    [strata] answering: 160 of max 512 tokens, 15.3 tok/s, 10 s
    [strata] answering: 175 of max 512 tokens, 15.2 tok/s, 12 s
    [strata] answering: 190 of max 512 tokens, 15.2 tok/s, 13 s
    [strata] answering: 205 of max 512 tokens, 15.1 tok/s, 14 s
    [strata] answering: 220 of max 512 tokens, 15.0 tok/s, 15 s
    [strata] answering: 235 of max 512 tokens, 15.0 tok/s, 16 s
    [strata] done: 240 tokens in 16 s (15.0 tok/s) (length, cancel=False)
    [strata] reading the prompt: 686 of 687 tokens, 2 s so far
    [strata] done: 8 tokens in 2 s (27.1 tok/s) (length, cancel=False)
    [strata] reading the prompt: 634 of 635 tokens, 2 s so far
    [strata] done: 8 tokens in 2 s (16.6 tok/s) (length, cancel=False)
    [strata] reading the prompt: 1,024 of 4,814 tokens, 2 s so far
    [strata] reading the prompt: 2,048 of 4,814 tokens, 4 s so far
    [strata] reading the prompt: 3,072 of 4,814 tokens, 6 s so far
    [strata] reading the prompt: 4,096 of 4,814 tokens, 8 s so far
    [strata] reading the prompt: 4,813 of 4,814 tokens, 10 s so far
    [strata] done: 8 tokens in 10 s (26.5 tok/s) (length, cancel=False)
    [strata] reading the prompt: 1,024 of 4,792 tokens, 2 s so far
    [strata] reading the prompt: 2,048 of 4,792 tokens, 4 s so far
    [strata] reading the prompt: 3,072 of 4,792 tokens, 6 s so far
    [strata] reading the prompt: 4,096 of 4,792 tokens, 8 s so far
    [strata] reading the prompt: 4,791 of 4,792 tokens, 10 s so far
    [strata] done: 8 tokens in 10 s (16.1 tok/s) (length, cancel=False)
    [strata] reading the prompt: 1,024 of 18,372 tokens, 2 s so far
    [strata] reading the prompt: 2,048 of 18,372 tokens, 4 s so far
    [strata] reading the prompt: 3,072 of 18,372 tokens, 6 s so far
    [strata] reading the prompt: 4,096 of 18,372 tokens, 8 s so far
    [strata] reading the prompt: 5,120 of 18,372 tokens, 10 s so far
    [strata] reading the prompt: 6,144 of 18,372 tokens, 12 s so far
    [strata] reading the prompt: 6,656 of 18,372 tokens, 13 s so far
    [strata] reading the prompt: 7,168 of 18,372 tokens, 14 s so far
    [strata] reading the prompt: 7,680 of 18,372 tokens, 15 s so far
    [strata] reading the prompt: 8,192 of 18,372 tokens, 16 s so far
    [strata] reading the prompt: 8,704 of 18,372 tokens, 17 s so far
    [strata] reading the prompt: 9,216 of 18,372 tokens, 18 s so far
    [strata] reading the prompt: 9,728 of 18,372 tokens, 19 s so far
    [strata] reading the prompt: 10,240 of 18,372 tokens, 20 s so far
    [strata] reading the prompt: 10,752 of 18,372 tokens, 21 s so far
    [strata] reading the prompt: 11,264 of 18,372 tokens, 22 s so far
    [strata] reading the prompt: 11,776 of 18,372 tokens, 23 s so far
    [strata] reading the prompt: 12,288 of 18,372 tokens, 24 s so far
    [strata] reading the prompt: 12,800 of 18,372 tokens, 25 s so far
    [strata] reading the prompt: 13,312 of 18,372 tokens, 27 s so far
    [strata] reading the prompt: 13,824 of 18,372 tokens, 28 s so far
    [strata] reading the prompt: 14,336 of 18,372 tokens, 29 s so far
    [strata] reading the prompt: 14,848 of 18,372 tokens, 30 s so far
    [strata] reading the prompt: 15,360 of 18,372 tokens, 31 s so far
    [strata] reading the prompt: 15,872 of 18,372 tokens, 32 s so far
    [strata] reading the prompt: 16,384 of 18,372 tokens, 33 s so far
    [strata] reading the prompt: 16,896 of 18,372 tokens, 35 s so far
    [strata] reading the prompt: 17,408 of 18,372 tokens, 36 s so far
    [strata] reading the prompt: 17,920 of 18,372 tokens, 37 s so far
    [strata] reading the prompt: 18,371 of 18,372 tokens, 38 s so far
    [strata] answering: 7 of max 8 tokens, 8.2 tok/s, 39 s
    [strata] done: 8 tokens in 39 s (8.0 tok/s) (length, cancel=False)
    [strata] reading the prompt: 1,024 of 15,078 tokens, 2 s so far
    [strata] reading the prompt: 2,048 of 15,078 tokens, 4 s so far
    [strata] reading the prompt: 3,072 of 15,078 tokens, 6 s so far
    [strata] reading the prompt: 4,096 of 15,078 tokens, 8 s so far
    [strata] reading the prompt: 5,120 of 15,078 tokens, 10 s so far
    [strata] reading the prompt: 6,144 of 15,078 tokens, 12 s so far
    [strata] reading the prompt: 6,656 of 15,078 tokens, 13 s so far
    [strata] reading the prompt: 7,168 of 15,078 tokens, 14 s so far
    [strata] reading the prompt: 7,680 of 15,078 tokens, 15 s so far
    [strata] reading the prompt: 8,192 of 15,078 tokens, 16 s so far
    [strata] reading the prompt: 8,704 of 15,078 tokens, 17 s so far
    [strata] reading the prompt: 9,216 of 15,078 tokens, 18 s so far
    [strata] reading the prompt: 9,728 of 15,078 tokens, 19 s so far
    [strata] reading the prompt: 10,240 of 15,078 tokens, 20 s so far
    [strata] reading the prompt: 10,752 of 15,078 tokens, 21 s so far
    [strata] reading the prompt: 11,264 of 15,078 tokens, 22 s so far
    [strata] reading the prompt: 11,776 of 15,078 tokens, 23 s so far
    [strata] reading the prompt: 12,288 of 15,078 tokens, 24 s so far
    [strata] reading the prompt: 12,800 of 15,078 tokens, 25 s so far
    [strata] reading the prompt: 13,312 of 15,078 tokens, 26 s so far
    [strata] reading the prompt: 13,824 of 15,078 tokens, 28 s so far
    [strata] reading the prompt: 14,336 of 15,078 tokens, 29 s so far
    [strata] reading the prompt: 14,848 of 15,078 tokens, 30 s so far
    [strata] reading the prompt: 15,077 of 15,078 tokens, 31 s so far
    [strata] done: 8 tokens in 32 s (9.5 tok/s) (length, cancel=False)
    [strata] answering: 3 of max 1200 tokens, 12.0 tok/s, 1 s
    [strata] answering: 19 of max 1200 tokens, 16.5 tok/s, 2 s
    [strata] answering: 35 of max 1200 tokens, 16.2 tok/s, 3 s
    [strata] answering: 51 of max 1200 tokens, 16.0 tok/s, 4 s
    [strata] answering: 67 of max 1200 tokens, 16.0 tok/s, 5 s
    [strata] answering: 83 of max 1200 tokens, 15.9 tok/s, 6 s
    [strata] done: 96 tokens in 7 s (15.9 tok/s) (length, cancel=False)
    [strata] answering: 3 of max 1200 tokens, 12.0 tok/s, 1 s
    [strata] answering: 19 of max 1200 tokens, 16.3 tok/s, 2 s
    [strata] answering: 35 of max 1200 tokens, 15.9 tok/s, 3 s
    [strata] answering: 51 of max 1200 tokens, 15.8 tok/s, 4 s
    [strata] answering: 67 of max 1200 tokens, 15.6 tok/s, 5 s
    [strata] answering: 83 of max 1200 tokens, 15.6 tok/s, 6 s
    [strata] answering: 99 of max 1200 tokens, 15.6 tok/s, 7 s
    [strata] answering: 115 of max 1200 tokens, 15.5 tok/s, 8 s
    [strata] answering: 131 of max 1200 tokens, 15.5 tok/s, 9 s
    [strata] answering: 147 of max 1200 tokens, 15.5 tok/s, 10 s
    [strata] answering: 163 of max 1200 tokens, 15.5 tok/s, 11 s
    [strata] answering: 179 of max 1200 tokens, 15.5 tok/s, 12 s
    [strata] answering: 195 of max 1200 tokens, 15.5 tok/s, 14 s
    [strata] answering: 211 of max 1200 tokens, 15.5 tok/s, 15 s
    [strata] answering: 227 of max 1200 tokens, 15.5 tok/s, 16 s
    [strata] answering: 243 of max 1200 tokens, 15.5 tok/s, 17 s
    [strata] answering: 259 of max 1200 tokens, 15.5 tok/s, 18 s
    [strata] answering: 275 of max 1200 tokens, 15.5 tok/s, 19 s
    [strata] answering: 291 of max 1200 tokens, 15.5 tok/s, 20 s
    [strata] answering: 307 of max 1200 tokens, 15.5 tok/s, 21 s
    [strata] answering: 323 of max 1200 tokens, 15.5 tok/s, 22 s
    [strata] answering: 339 of max 1200 tokens, 15.5 tok/s, 23 s
    [strata] answering: 355 of max 1200 tokens, 15.5 tok/s, 24 s
    [strata] answering: 371 of max 1200 tokens, 15.5 tok/s, 25 s
    [strata] answering: 387 of max 1200 tokens, 15.4 tok/s, 26 s
    [strata] answering: 403 of max 1200 tokens, 15.4 tok/s, 27 s
    [strata] answering: 419 of max 1200 tokens, 15.4 tok/s, 28 s
    [strata] answering: 435 of max 1200 tokens, 15.4 tok/s, 29 s
    [strata] answering: 451 of max 1200 tokens, 15.5 tok/s, 30 s
    [strata] answering: 467 of max 1200 tokens, 15.5 tok/s, 31 s
    [strata] answering: 483 of max 1200 tokens, 15.5 tok/s, 32 s
    [strata] answering: 499 of max 1200 tokens, 15.5 tok/s, 33 s
    [strata] answering: 515 of max 1200 tokens, 15.5 tok/s, 34 s
    [strata] answering: 531 of max 1200 tokens, 15.5 tok/s, 35 s
    [strata] answering: 547 of max 1200 tokens, 15.5 tok/s, 36 s
    [strata] answering: 563 of max 1200 tokens, 15.5 tok/s, 37 s
    [strata] answering: 579 of max 1200 tokens, 15.5 tok/s, 38 s
    [strata] answering: 595 of max 1200 tokens, 15.5 tok/s, 39 s
    [strata] answering: 611 of max 1200 tokens, 15.5 tok/s, 40 s
    [strata] done: 611 tokens in 40 s (15.5 tok/s) (length, cancel=False)
    [strata] answering: 2 of max 1200 tokens, 8.0 tok/s, 1 s
    [strata] answering: 17 of max 1200 tokens, 15.4 tok/s, 2 s
    [strata] answering: 32 of max 1200 tokens, 15.0 tok/s, 3 s
    [strata] answering: 47 of max 1200 tokens, 14.8 tok/s, 4 s
    [strata] answering: 62 of max 1200 tokens, 14.7 tok/s, 5 s
    [strata] answering: 77 of max 1200 tokens, 14.7 tok/s, 6 s
    [strata] answering: 92 of max 1200 tokens, 14.6 tok/s, 7 s
    [strata] answering: 107 of max 1200 tokens, 14.6 tok/s, 8 s
    [strata] answering: 122 of max 1200 tokens, 14.6 tok/s, 9 s
    [strata] answering: 137 of max 1200 tokens, 14.5 tok/s, 10 s
    [strata] answering: 152 of max 1200 tokens, 14.5 tok/s, 11 s
    [strata] answering: 167 of max 1200 tokens, 14.5 tok/s, 12 s
    [strata] answering: 182 of max 1200 tokens, 14.5 tok/s, 14 s
    [strata] answering: 197 of max 1200 tokens, 14.5 tok/s, 15 s
    [strata] answering: 212 of max 1200 tokens, 14.5 tok/s, 16 s
    [strata] answering: 227 of max 1200 tokens, 14.4 tok/s, 17 s
    [strata] answering: 242 of max 1200 tokens, 14.4 tok/s, 18 s
    [strata] answering: 257 of max 1200 tokens, 14.4 tok/s, 19 s
    [strata] answering: 272 of max 1200 tokens, 14.4 tok/s, 20 s
    [strata] answering: 287 of max 1200 tokens, 14.4 tok/s, 21 s
    [strata] answering: 302 of max 1200 tokens, 14.4 tok/s, 22 s
    [strata] answering: 317 of max 1200 tokens, 14.4 tok/s, 23 s
    [strata] answering: 332 of max 1200 tokens, 14.4 tok/s, 24 s
    [strata] answering: 347 of max 1200 tokens, 14.4 tok/s, 25 s
    [strata] answering: 362 of max 1200 tokens, 14.4 tok/s, 26 s
    [strata] done: 371 tokens in 27 s (14.4 tok/s) (length, cancel=False)
    [strata] answering: 3 of max 1200 tokens, 12.0 tok/s, 1 s
    [strata] answering: 18 of max 1200 tokens, 15.3 tok/s, 2 s
    [strata] answering: 33 of max 1200 tokens, 14.9 tok/s, 3 s
    [strata] answering: 48 of max 1200 tokens, 14.8 tok/s, 4 s
    [strata] answering: 63 of max 1200 tokens, 14.7 tok/s, 5 s
    [strata] answering: 78 of max 1200 tokens, 14.6 tok/s, 6 s
    [strata] answering: 93 of max 1200 tokens, 14.6 tok/s, 7 s
    [strata] answering: 108 of max 1200 tokens, 14.6 tok/s, 8 s
    [strata] answering: 123 of max 1200 tokens, 14.6 tok/s, 9 s
    [strata] answering: 138 of max 1200 tokens, 14.5 tok/s, 10 s
    [strata] answering: 153 of max 1200 tokens, 14.5 tok/s, 11 s
    [strata] answering: 168 of max 1200 tokens, 14.5 tok/s, 13 s
    [strata] answering: 183 of max 1200 tokens, 14.5 tok/s, 14 s
    [strata] answering: 198 of max 1200 tokens, 14.5 tok/s, 15 s
    [strata] answering: 213 of max 1200 tokens, 14.5 tok/s, 16 s
    [strata] answering: 228 of max 1200 tokens, 14.5 tok/s, 17 s
    [strata] answering: 243 of max 1200 tokens, 14.5 tok/s, 18 s
    [strata] answering: 258 of max 1200 tokens, 14.5 tok/s, 19 s
    [strata] answering: 273 of max 1200 tokens, 14.5 tok/s, 20 s
    [strata] done: 282 tokens in 20 s (14.5 tok/s) (length, cancel=False)
    [strata] answering: 3 of max 1200 tokens, 12.0 tok/s, 1 s
    [strata] answering: 18 of max 1200 tokens, 15.3 tok/s, 2 s
    [strata] answering: 33 of max 1200 tokens, 14.8 tok/s, 3 s
    [strata] answering: 48 of max 1200 tokens, 14.7 tok/s, 4 s
    [strata] answering: 63 of max 1200 tokens, 14.6 tok/s, 5 s
    [strata] answering: 78 of max 1200 tokens, 14.5 tok/s, 6 s
    [strata] answering: 93 of max 1200 tokens, 14.5 tok/s, 7 s
    [strata] answering: 108 of max 1200 tokens, 14.5 tok/s, 8 s
    [strata] answering: 123 of max 1200 tokens, 14.4 tok/s, 9 s
    [strata] answering: 138 of max 1200 tokens, 14.4 tok/s, 10 s
    [strata] answering: 153 of max 1200 tokens, 14.4 tok/s, 12 s
    [strata] answering: 168 of max 1200 tokens, 14.4 tok/s, 13 s
    [strata] answering: 183 of max 1200 tokens, 14.4 tok/s, 14 s
    [strata] answering: 198 of max 1200 tokens, 14.4 tok/s, 15 s
    [strata] answering: 213 of max 1200 tokens, 14.4 tok/s, 16 s
    [strata] answering: 228 of max 1200 tokens, 14.4 tok/s, 17 s
    [strata] answering: 243 of max 1200 tokens, 14.4 tok/s, 18 s
    [strata] answering: 258 of max 1200 tokens, 14.4 tok/s, 19 s
    [strata] answering: 273 of max 1200 tokens, 14.4 tok/s, 20 s
    [strata] answering: 288 of max 1200 tokens, 14.3 tok/s, 21 s
    [strata] answering: 303 of max 1200 tokens, 14.3 tok/s, 22 s
    [strata] answering: 318 of max 1200 tokens, 14.3 tok/s, 23 s
    [strata] answering: 333 of max 1200 tokens, 14.4 tok/s, 24 s
    [strata] answering: 348 of max 1200 tokens, 14.4 tok/s, 25 s
    [strata] answering: 363 of max 1200 tokens, 14.4 tok/s, 26 s
    [strata] answering: 378 of max 1200 tokens, 14.4 tok/s, 27 s
    [strata] answering: 393 of max 1200 tokens, 14.4 tok/s, 28 s
    [strata] answering: 408 of max 1200 tokens, 14.4 tok/s, 29 s
    [strata] answering: 423 of max 1200 tokens, 14.4 tok/s, 30 s
    [strata] answering: 438 of max 1200 tokens, 14.4 tok/s, 31 s
    [strata] answering: 453 of max 1200 tokens, 14.4 tok/s, 32 s
    [strata] answering: 468 of max 1200 tokens, 14.4 tok/s, 34 s
    [strata] answering: 483 of max 1200 tokens, 14.4 tok/s, 35 s
    [strata] answering: 498 of max 1200 tokens, 14.4 tok/s, 36 s
    [strata] answering: 513 of max 1200 tokens, 14.4 tok/s, 37 s
    [strata] answering: 528 of max 1200 tokens, 14.4 tok/s, 38 s
    [strata] answering: 543 of max 1200 tokens, 14.4 tok/s, 39 s
    [strata] answering: 558 of max 1200 tokens, 14.4 tok/s, 40 s
    [strata] answering: 573 of max 1200 tokens, 14.4 tok/s, 41 s
    [strata] answering: 588 of max 1200 tokens, 14.4 tok/s, 42 s
    [strata] answering: 603 of max 1200 tokens, 14.4 tok/s, 43 s
    [strata] answering: 618 of max 1200 tokens, 14.4 tok/s, 44 s
    [strata] answering: 633 of max 1200 tokens, 14.4 tok/s, 45 s
    [strata] answering: 648 of max 1200 tokens, 14.4 tok/s, 46 s
    [strata] answering: 663 of max 1200 tokens, 14.4 tok/s, 47 s
    [strata] answering: 678 of max 1200 tokens, 14.4 tok/s, 48 s
    [strata] answering: 693 of max 1200 tokens, 14.4 tok/s, 49 s
    [strata] answering: 708 of max 1200 tokens, 14.4 tok/s, 50 s
    [strata] answering: 723 of max 1200 tokens, 14.4 tok/s, 51 s
    [strata] answering: 738 of max 1200 tokens, 14.4 tok/s, 52 s
    [strata] answering: 753 of max 1200 tokens, 14.4 tok/s, 53 s
    [strata] answering: 768 of max 1200 tokens, 14.4 tok/s, 54 s
    [strata] answering: 783 of max 1200 tokens, 14.4 tok/s, 55 s
    [strata] answering: 798 of max 1200 tokens, 14.4 tok/s, 56 s
    [strata] answering: 813 of max 1200 tokens, 14.4 tok/s, 57 s
    [strata] answering: 828 of max 1200 tokens, 14.4 tok/s, 58 s
    [strata] answering: 843 of max 1200 tokens, 14.4 tok/s, 60 s
    [strata] answering: 858 of max 1200 tokens, 14.4 tok/s, 61 s
    [strata] answering: 873 of max 1200 tokens, 14.4 tok/s, 62 s
    [strata] answering: 888 of max 1200 tokens, 14.4 tok/s, 63 s
    [strata] answering: 903 of max 1200 tokens, 14.4 tok/s, 64 s
    [strata] answering: 918 of max 1200 tokens, 14.4 tok/s, 65 s
    [strata] answering: 933 of max 1200 tokens, 14.4 tok/s, 66 s
    [strata] answering: 948 of max 1200 tokens, 14.4 tok/s, 67 s
    [strata] answering: 963 of max 1200 tokens, 14.4 tok/s, 68 s
    [strata] answering: 978 of max 1200 tokens, 14.4 tok/s, 69 s
    [strata] answering: 993 of max 1200 tokens, 14.4 tok/s, 70 s
    [strata] answering: 1008 of max 1200 tokens, 14.4 tok/s, 71 s
    [strata] answering: 1023 of max 1200 tokens, 14.4 tok/s, 72 s
    [strata] answering: 1038 of max 1200 tokens, 14.4 tok/s, 73 s
    [strata] answering: 1053 of max 1200 tokens, 14.4 tok/s, 74 s
    [strata] answering: 1068 of max 1200 tokens, 14.4 tok/s, 75 s
    [strata] answering: 1083 of max 1200 tokens, 14.4 tok/s, 76 s
    [strata] answering: 1098 of max 1200 tokens, 14.4 tok/s, 77 s
    [strata] answering: 1113 of max 1200 tokens, 14.4 tok/s, 78 s
    [strata] done: 1117 tokens in 78 s (14.4 tok/s) (length, cancel=False)
    
    [strata] stopping (Ctrl+C again to end the engine at once) ...
    [strata] stopped
    
  9. Norhiro commented on Nov 26, 2026

    @Norhiro
    ContributorAuthor

    Re-tested on 0.2.22 (strata-inkling 0.1.69 linux-x86_64-cuda-cuda13, build a5bfe0369bfb, the 0.2.22 server.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 shows 0 GPU-1.

    0.2.22: the switches I could flip without a rebuild
    4 short questions each (temperature 0.6, max_tokens 300). The garbage starts at the first token.

    Run on 0.2.22 Correct Reply starts with
    official safetensors, defaults 0 / 4 Rim Number13 AG20 a<12<|end_message|>< Dominic
    + STRATA_INK_TIER=0 (no expert tier swaps; 780 host experts) 0 / 4 garbage
    + STRATA_INK_EXACT=1 (cold experts copied into the card and computed by its kernels) 0 / 4 garbage
    + STRATA_FORCE_ISA=avx2 0 / 4 garbage
    + STRATA_INK_NO_GRAPH=1 0 / 4 the same text as the defaults
    IQ4_NL GGUF, defaults 4 / 4 The function iterates through the string, …

    So it is not the expert tier, not the CPU lane (STRATA_INK_EXACT=1 still breaks), not the AVX-512 kernels, and not the CUDA graph. I also checked the host SF4 and MX8 row dots (dot_sf4_row and dot_mx8_row in 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.

    Run Weights Engine Correct Stopped at the token limit
    A ggml-org Inkling-2-Mini-IQ4_NL.gguf 0.2.21 strata-inkling 288 / 320 0 / 320
    B official Inkling-2-Mini (HF-NVFP4-MXFP8) 0.2.21 strata-inkling 0 / 320 318 / 320
    S official Inkling-2-Mini strata-ink2 from #6520 (d3431b17c) answers normally –

    A typical reply from run B:

    <mn<mn< < Big<|end_message|><access<|end_message|>
        (12 (11<:<<|end_message|>
    ?< <П** Yak:<TAB<|end_message|> <1<,< ol<<
    

    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

    • In the 0.2.20 run the host KV offload used kv_fmt=0 (fp16). This run uses --kv fp8, and the log shows kv_fmt=1, the same as run A, which is fine. So the fp16 host KV is not the cause.
    • Both A and B run the hybrid path with about 800–930 experts on the host. The only difference between them is the weight format.
    • strata-ink2 from [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.

    Run on the 3060 experts on the card / host Correct
    official safetensors, defaults 1,309 / 1,763 0 / 4 (garbage from the first token)
    official safetensors + STRATA_INK_EXACT=1 1,309 / 1,763 0 / 4
    IQ4_NL GGUF, defaults 1,637 / 1,435 4 / 4

    So 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 ./ and models/)
    [strata] 2026-11-26 08:12:13 engine started: ./pkg/strata-inkling --serve --native models/Inkling-2-Mini --max-context 32768 --kv fp8 --draft off
    [InkTier] adaptive expert tier on: 2 classes, pool 9.56 GiB, slots 1965 x 4.48 MB (of 2560 experts) 178 x 8.21 MB (of 512 experts); a round every 4 tokens, 16 swaps
    [InkHybrid] host expert arena 15.67 GB pinned (under 45% of the available RAM; available RAM 95.1 GB): the card reads the cold experts itself
    [InkCUDA] Loaded models/Inkling-2-Mini (HF-NVFP4-MXFP8, fmt=safetensors): trunk=3.85 GB (3.91s), experts=2143 GPU0 + 0 GPU-1 / 929 host (27.02s, ep2=0, p2p=0, hyb=1), sm120_tc=1
    [InkCUDA] prefill chunk 512 (auto: 1638 MiB free after the experts, 396 MiB of K/V still to grow, 1 slot(s); --chunk N sets it)
    [InkCUDA] Auto Host KV Offload (kv_fmt=1, 1.40 GiB free VRAM): global KV = 9216 VRAM + 23552 mapped host tokens (379.5 MiB host RAM, max_ctx=32768)
    [InkCUDA] memory: 1638 MiB free after load, runner+KV took 1224 MiB (max_batch=512), DSpark took 0 MiB, 414 MiB free now
    [InkHybrid] cold experts: launch probe (18 decode steps each): CPU lane 27.5 ms/token, copy into the card 74.4 ms/token -> computed on the CPU where they are (the answer can differ from an all-resident run in rounding) (STRATA_INK_EXACT=1 or 0 forces a lane)
    [InkTier] 299 rounds, 817 swaps
    
    engine log of the 0.2.21 run B (complete; local paths replaced with ./ and models/)
    [strata] 2026-11-26 04:18:38 engine started: ./inkling-cuda13/strata-inkling --serve --native models/Inkling-2-Mini --max-context 32768 --kv fp8 --draft off
    [InkTier] adaptive expert tier on: 2 classes, pool 9.56 GiB, slots 1965 x 4.48 MB (of 2560 experts) 178 x 8.21 MB (of 512 experts); a round every 4 tokens, 16 swaps
    [InkHybrid] host expert arena 15.67 GB pinned (under 45% of the available RAM; available RAM 95.2 GB): the card reads the cold experts itself
    [InkCUDA] Loaded models/Inkling-2-Mini (HF-NVFP4-MXFP8, fmt=safetensors): trunk=3.85 GB (3.88s), experts=2143 GPU0 + 0 GPU-1 / 929 host (26.81s, ep2=0, p2p=0, hyb=1), sm120_tc=1
    [InkCUDA] prefill chunk 512 (auto: 1638 MiB free after the experts, 396 MiB of K/V still to grow, 1 slot(s); --chunk N sets it)
    [InkCUDA] Auto Host KV Offload (kv_fmt=1, 1.40 GiB free VRAM): global KV = 9216 VRAM + 23552 mapped host tokens (379.5 MiB host RAM, max_ctx=32768)
    [InkCUDA] memory: 1638 MiB free after load, runner+KV took 1224 MiB (max_batch=512), DSpark took 0 MiB, 414 MiB free now
    [InkHybrid] cold experts: launch probe (18 decode steps each): CPU lane 29.7 ms/token, copy into the card 74.3 ms/token -> computed on the CPU where they are (the answer can differ from an all-resident run in rounding) (STRATA_INK_EXACT=1 or 0 forces a lane)
    [InkTier] 105616 rounds, 62629 swaps
    
    engine log of the 0.2.21 run A (the IQ4_NL GGUF that works, for comparison)
    [strata] 2026-11-26 03:51:12 engine started: ./inkling-cuda13/strata-inkling --serve --native models/Inkling-2-Mini-GGUF/Inkling-2-Mini-IQ4_NL.gguf --max-context 32768 --kv fp8 --draft off
    [InkTier] adaptive expert tier on: 2 classes, pool 10.08 GiB, slots 2064 x 4.48 MB (of 2560 experts) 187 x 8.46 MB (of 512 experts); a round every 4 tokens, 16 swaps
    [InkHybrid] host expert arena 15.80 GB pinned (under 45% of the available RAM; available RAM 92.7 GB): the card reads the cold experts itself
    [InkCUDA] Loaded models/Inkling-2-Mini-GGUF/Inkling-2-Mini-IQ4_NL.gguf (GGUF-IQ4_NL, fmt=gguf): trunk=3.29 GB (2.32s), experts=2251 GPU0 + 0 GPU-1 / 821 host (31.72s, ep2=0, p2p=0, hyb=1), sm120_tc=1
    [InkCUDA] prefill chunk 512 (auto: 1636 MiB free after the experts, 396 MiB of K/V still to grow, 1 slot(s); --chunk N sets it)
    [InkCUDA] Auto Host KV Offload (kv_fmt=1, 1.40 GiB free VRAM): global KV = 18944 VRAM + 13824 mapped host tokens (222.8 MiB host RAM, max_ctx=32768)
    [InkCUDA] memory: 1636 MiB free after load, runner+KV took 1394 MiB (max_batch=512), DSpark took 0 MiB, 242 MiB free now
    [InkHybrid] cold experts: launch probe (18 decode steps each): CPU lane 42.4 ms/token, copy into the card 85.6 ms/token -> computed on the CPU where they are (the answer can differ from an all-resident run in rounding) (STRATA_INK_EXACT=1 or 0 forces a lane)
    [InkTier] 10195 rounds, 14114 swaps
    
  10. Norhiro commented on Nov 26, 2026

    @Norhiro
    ContributorAuthor

    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 same widen_fmt path 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions