Skip to content

[Engine] strata-inkling 0.1.66 / gfx1030: 'kv grow failed in both VRAM and host-mapped pinned memory' fatal at ~71.7k tokens with fp8 auto-selected for --max-context 131072 #6755

Open

Description

@mircolike

Area

[Engine]

Desktop app, Terminal or source?

Desktop app (Strata 0.2.20 GUI) launching the bundled engine. Not built from source.

What happened

During a long-context benchmark of Inkling-2-Mini SQ-10 with --max-context 131072, one streaming request prefilled to 71,680 of 109,649 tokens and the engine died:

[strata] reading the prompt: 71,680 of 109,649 tokens, 1769 s so far
[strata] the GPU reported a fatal error and the engine ended: [ink-hip] kv grow failed in both VRAM and host-mapped pinned memory. ... The next request starts it again.
[strata] done: 0 tokens in 1769 s (no speed) (error, cancel=False)

At load the engine had logged:

[ink-hip] Auto-selected FP8_E4M3 KV cache (post-load free=5052 MiB, FP16 KV need=4256 MiB for ctx=131072 x slots=1)

So the engine picked FP8 itself because the full 131072 plan fit (by its own FP16 figure, the fp8 plan is ≈2128 MiB against 5052 MiB free), yet KV growth failed at ≈71.7k tokens — about 55% of the advertised context — in both allocation tiers (VRAM and host-mapped pinned memory).

Expected: either the prefill completes (the load-time plan says it fits), or a clean per-request error (the usual "request exceeds the context window" style 400) — not a fatal engine exit in the middle of a request.

Smallest steps or command that reproduce it

  1. Start Inkling-2-Mini SQ-10 in the desktop app with --max-context 131072 (otherwise defaults: --vram-experts-gb 8.60 --ram-experts-gb 0.00 --draft dspark, vision on, parallel 1).
  2. Send one POST /v1/chat/completions with a ~110k-token prompt, "stream": true.
  3. Prefill advances to ~71.7k tokens (≈30 min at the observed decay), then the fatal fires.

Observed once during a benchmark run; I did not re-run it (each attempt costs a ~30 min prefill). An App conversation with a 63,665-token prompt existed earlier in the same engine session, so shared KV-pool pressure is not fully excluded — a clean-engine re-run is the follow-up.

Reproduction status

Reproduced locally

Strata version

Strata 0.2.20 · engine strata-inkling 0.1.66 (BUILD.json: source release 0.2.20 2e87c08, rocm 10.2.0a20260930, variant rdna2, archs gfx1030;gfx1031;gfx1032)

Graphics card, memory and system

RX 6800 XT 16 GB (gfx1030, driver 32.0.21045.29003) · 47 GB RAM · Windows 11 (10.0.26300)

Model, size and settings

Inkling-2-Mini SQ-10 (10.5 GB .strata) + Inkling-2-Mini Vision · 128K context (n_ctx=131072) · FP8 KV auto-selected · pictures on · dspark draft · all experts in VRAM (no PCIe expert spill in any successful run)

Logs

Engine log (strata-inkling-2-mini-sq-10.log):

[strata] 2026-11-23 09:39:44 engine started: ... strata-inkling.exe --serve --native D:\models\models\inkling-2-mini\Inkling-2-Mini-SQ-10.strata --max-context 131072 --vision ... --vram-experts-gb 8.60 --ram-experts-gb 0.00 --draft dspark
[ink-hip] Auto-selected FP8_E4M3 KV cache (post-load free=5052 MiB, FP16 KV need=4256 MiB for ctx=131072 x slots=1)
[strata] 2026-11-23 11:22:14 native ERR fatal GPU error: [ink-hip] kv grow failed in both VRAM and host-mapped pinned memory

Desktop host log (app-1.server.log) around the failure:

[strata] reading the prompt: 71,680 of 109,649 tokens, 1769 s so far
[strata] the GPU reported a fatal error and the engine ended: [ink-hip] kv grow failed in both VRAM and host-mapped pinned memory. ...
[strata] done: 0 tokens in 1769 s (no speed) (error, cancel=False)

Right before this run, a clean request at 63,805-token context completed but decoded at only 8.9 tok/s (vs 61 tok/s at short context on the same host) — possible same underlying KV-at-depth behaviour, full numbers in the companion [Benchmark] issue.

Related / dedup

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions