[GH-ISSUE #1996] 0.1.43 fixes the #1712 reproduction, but Memory access fault after 31 min under multi-slot load with image requests (2x RX 7900 XTX) #798

Closed
opened 2026-11-04 01:45:57 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @mantovaniluca91 on GitHub (Oct 11, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1996

Strata version, GPU, OS: 0.1.43 (built from the tag, STRATA_ISA_FLOOR=avx) · 2x RX 7900 XTX 24GB (gfx1100), ROCm 7.2.4 in Docker · Ubuntu 22.04.5, kernel 6.8, Xeon E5-2630 v2 (AVX only)

Follow-up to #1712, which 0.1.43 closed. Thanks for taking the fix so quickly. We ran 0.1.43 on the same box the same evening.
Short version: it removes the deterministic image→text fault from #1712, but under our 4-hour multi-slot load it still faulted, after
31 minutes. Patch C on 0.1.41 (attached to my last comment in #1712) passed that same load for 4 hours.

Setup for both runs below: 2x RX 7900 XTX (gfx1100), ROCm 7.2.4 in the container, Xeon E5-2630 v2 (AVX only), 0.1.43 built from the
tag with STRATA_ISA_FLOOR=avx, no patches of ours (checked: no [floria patch] line, session is up (engine 0.1.43)).
Config: parallel 4, --max-context 262144 --kv int8 --kv-resident 32768 --spec 4 --mtp --no-prefill-borrow --batch-groups auto --trim-stage-weights --layer-split 27 --conversation-cache-mib 6144 --conversation-cache-slots 4, vision encoder on a separate card
(cuda_device).

1. The image→text reproduction: fixed

The same two requests as in #1712: a vision request (1803 prompt tokens) and right after it the first text-only
request (2142 tokens, two 2048 chunks). Fresh engine for every run, debug agent attached, 5 alternating rounds, with the order of the
arms reversed in even rounds:

Engine Faults
0.1.41 as shipped 5 of 5 (3 named by the debug agent: block_topk_kernel, MEMORY_VIOLATION, as before; in the other 2 the debug agent hit its own wave ... not found error at the same point)
0.1.43 0 of 5
0.1.43 with STRATA_NO_IQ128=1 0 of 5

The third arm turns off the new AVX1 expert kernels. They change the CPU-side timing, and this fault was timing-sensitive. Holding
there too says the upload fix is what removes it.

Also, since the 0.1.42 notes say the AVX1 kernels were only tested under emulation: they run on a real Ivy Bridge here
(the expert kernels run on AVX1 128-bit (iq_avx1, the older-CPU build)). They were on in 7 engine starts (5 in the reproduction, 2 in the stress
below), with no SIGILL.

2. Four-hour stress: 0.1.43 faults after 31 minutes

This is the same stress that patch C passed on 0.1.41 (240 min, 0 faults), with the same config (including STRATA_HIP_WMMA=1 STRATA_SELECT_WMMA=1, as in the C run), and no debug agent. The debug agent restarts the engine under load (rocm-dbgapi: fatal error: wave_... not found), so we leave it out of long runs.

Load: 6 clients on the 4 slots, so conversations keep moving through the conversation cache:

  • 2 agent sessions on real read-only requests;
  • 2 delivery-note loops (vision request, then a structured text request), 4 minutes apart;
  • 2 clients that pick at random between a new 32K/64K/128K prompt, a synthetic image followed by a long synthetic text, and a short
    chat.

Result: one Memory access fault by GPU node-4 ... Reason: Page not present or supervisor privilege at minute 31, and the engine
exited with code -6. No upload failed line appeared before it. These are the last engine lines before the fault (hit-rate and
KV lines trimmed). The 1803-token prompts have the size of the delivery-note vision request and are read in the batch while the other
slots decode; then come two short text prompts:

strata batch: slot 1 takes 1803 tokens (copied in 84.4 ms)
strata serve: prompt 1803 tokens = 0 reused + 1803 read in 2391 ms (754.1 tok/s), 1 generated in 119 ms (8.4 tok/s), drafts accepted 0 of 0, 1 checkpoints
strata serve: conversation cache: parked 1803 tokens in 85.3 ms; parked=4 bytes=2751082592 evictions=85 snapshot_bytes=264433456 reused_kv_bytes=0
strata batch: slot 3 takes 1803 tokens (copied in 70.3 ms)
strata serve: prompt 1803 tokens = 0 reused + 1803 read in 2086 ms (864.4 tok/s), 1 generated in 30 ms (32.9 tok/s), drafts accepted 0 of 0, 1 checkpoints
strata serve: conversation cache: parked 1803 tokens in 88.6 ms; parked=4 bytes=2187382416 evictions=86 snapshot_bytes=264433456 reused_kv_bytes=0
strata batch: slot 0 takes 70 tokens (copied in 97.2 ms)
strata serve: prompt 70 tokens = 0 reused + 70 read in 1055 ms (66.3 tok/s), 1 generated in 34 ms (29.1 tok/s), drafts accepted 0 of 0, 1 checkpoints
strata batch: slot 2 takes 70 tokens (copied in 104.6 ms)
strata serve: prompt 70 tokens = 0 reused + 70 read in 717 ms (97.7 tok/s), 1 generated in 28 ms (36.2 tok/s), drafts accepted 0 of 0, 1 checkpoints
strata batch: slot 1 takes 1571 tokens (copied in 118.7 ms)
strata serve: prompt 1571 tokens = 0 reused + 1571 read in 2081 ms (754.9 tok/s), 1 generated in 29 ms (34.5 tok/s), drafts accepted 0 of 0, 1 checkpoints
strata serve: KV streaming: 85.69% of 16482 block reads hit VRAM, 9.5 MiB read from RAM
strata serve: conversation cache: parked 1571 tokens in 84.6 ms; parked=4 bytes=1001258752 evictions=89 snapshot_bytes=260888432 reused_kv_bytes=0
Memory access fault by GPU node-4 (Agent handle: 0x8efbf50) on address 0xc9f2d000. Reason: Page not present or supervisor privilege.

Without the debug agent we have no kernel name for this one. Until then, the quality and speed matched patch C: one full
delivery-note pass scored 32/37 at 114 s per note under load, against C's 32-33/37 at about 110 s.

3. What C covers that 0.1.43 does not

In 0.1.43 the step records and the batched token ids go up from pinned memory. Patch C also moves every other async H2D of the prompt
path whose host side is pageable through pinned bounce slots, one event per slot. In 0.1.43 those copies are:

  • the image embedding rows, cudaMemcpyAsync(m.emb + t * N, row, ...) from embd_rows, at prefill.cpp:2185;
  • the draft bounds and tokens in the draft K/V step, at prefill.cpp:1447 and 1451 (bh[4] on the stack, tk a vector);
  • the PLE rows in the ple_pageable fallback, at prefill.cpp:2212 (only taken without pinnable RAM);
  • the expert routing copies in the non-mapped branches. These are inactive with the default config, where grp_host is mapped.

The fault came right after vision requests read in the batch, so the image-row copy is our first suspect. We have not isolated it,
though: C changed all of them at once, and that is the version that held 4 hours.

Would you extend PinnedUpload to these copies, or take the bounce-slot approach of C (the patch is attached to my last comment in #1712)? We are keeping
patch C in production for now, and we can run any build of yours through the same reproduction and stress.

Originally created by @mantovaniluca91 on GitHub (Oct 11, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1996 **Strata version, GPU, OS:** 0.1.43 (built from the tag, `STRATA_ISA_FLOOR=avx`) · 2x RX 7900 XTX 24GB (gfx1100), ROCm 7.2.4 in Docker · Ubuntu 22.04.5, kernel 6.8, Xeon E5-2630 v2 (AVX only) Follow-up to #1712, which 0.1.43 closed. Thanks for taking the fix so quickly. We ran 0.1.43 on the same box the same evening. Short version: it removes the deterministic image→text fault from #1712, but under our 4-hour multi-slot load it still faulted, after 31 minutes. Patch C on 0.1.41 (attached to my last comment in #1712) passed that same load for 4 hours. Setup for both runs below: 2x RX 7900 XTX (gfx1100), ROCm 7.2.4 in the container, Xeon E5-2630 v2 (AVX only), 0.1.43 built from the tag with `STRATA_ISA_FLOOR=avx`, no patches of ours (checked: no `[floria patch]` line, `session is up (engine 0.1.43)`). Config: `parallel 4`, `--max-context 262144 --kv int8 --kv-resident 32768 --spec 4 --mtp --no-prefill-borrow --batch-groups auto --trim-stage-weights --layer-split 27 --conversation-cache-mib 6144 --conversation-cache-slots 4`, vision encoder on a separate card (`cuda_device`). ## 1. The image→text reproduction: fixed The same two requests as in #1712: a vision request (1803 prompt tokens) and right after it the first text-only request (2142 tokens, two 2048 chunks). Fresh engine for every run, debug agent attached, 5 alternating rounds, with the order of the arms reversed in even rounds: | Engine | Faults | |---|---| | 0.1.41 as shipped | **5 of 5** (3 named by the debug agent: `block_topk_kernel`, `MEMORY_VIOLATION`, as before; in the other 2 the debug agent hit its own `wave ... not found` error at the same point) | | 0.1.43 | **0 of 5** | | 0.1.43 with `STRATA_NO_IQ128=1` | **0 of 5** | The third arm turns off the new AVX1 expert kernels. They change the CPU-side timing, and this fault was timing-sensitive. Holding there too says the upload fix is what removes it. Also, since the 0.1.42 notes say the AVX1 kernels were only tested under emulation: they run on a real Ivy Bridge here (`the expert kernels run on AVX1 128-bit (iq_avx1, the older-CPU build)`). They were on in 7 engine starts (5 in the reproduction, 2 in the stress below), with no SIGILL. ## 2. Four-hour stress: 0.1.43 faults after 31 minutes This is the same stress that patch C passed on 0.1.41 (240 min, 0 faults), with the same config (including `STRATA_HIP_WMMA=1 STRATA_SELECT_WMMA=1`, as in the C run), and no debug agent. The debug agent restarts the engine under load (`rocm-dbgapi: fatal error: wave_... not found`), so we leave it out of long runs. **Load:** 6 clients on the 4 slots, so conversations keep moving through the conversation cache: - 2 agent sessions on real read-only requests; - 2 delivery-note loops (vision request, then a structured text request), 4 minutes apart; - 2 clients that pick at random between a new 32K/64K/128K prompt, a synthetic image followed by a long synthetic text, and a short chat. **Result:** one `Memory access fault by GPU node-4 ... Reason: Page not present or supervisor privilege` at minute 31, and the engine exited with code -6. No `upload failed` line appeared before it. These are the last engine lines before the fault (hit-rate and KV lines trimmed). The 1803-token prompts have the size of the delivery-note vision request and are read in the batch while the other slots decode; then come two short text prompts: ``` strata batch: slot 1 takes 1803 tokens (copied in 84.4 ms) strata serve: prompt 1803 tokens = 0 reused + 1803 read in 2391 ms (754.1 tok/s), 1 generated in 119 ms (8.4 tok/s), drafts accepted 0 of 0, 1 checkpoints strata serve: conversation cache: parked 1803 tokens in 85.3 ms; parked=4 bytes=2751082592 evictions=85 snapshot_bytes=264433456 reused_kv_bytes=0 strata batch: slot 3 takes 1803 tokens (copied in 70.3 ms) strata serve: prompt 1803 tokens = 0 reused + 1803 read in 2086 ms (864.4 tok/s), 1 generated in 30 ms (32.9 tok/s), drafts accepted 0 of 0, 1 checkpoints strata serve: conversation cache: parked 1803 tokens in 88.6 ms; parked=4 bytes=2187382416 evictions=86 snapshot_bytes=264433456 reused_kv_bytes=0 strata batch: slot 0 takes 70 tokens (copied in 97.2 ms) strata serve: prompt 70 tokens = 0 reused + 70 read in 1055 ms (66.3 tok/s), 1 generated in 34 ms (29.1 tok/s), drafts accepted 0 of 0, 1 checkpoints strata batch: slot 2 takes 70 tokens (copied in 104.6 ms) strata serve: prompt 70 tokens = 0 reused + 70 read in 717 ms (97.7 tok/s), 1 generated in 28 ms (36.2 tok/s), drafts accepted 0 of 0, 1 checkpoints strata batch: slot 1 takes 1571 tokens (copied in 118.7 ms) strata serve: prompt 1571 tokens = 0 reused + 1571 read in 2081 ms (754.9 tok/s), 1 generated in 29 ms (34.5 tok/s), drafts accepted 0 of 0, 1 checkpoints strata serve: KV streaming: 85.69% of 16482 block reads hit VRAM, 9.5 MiB read from RAM strata serve: conversation cache: parked 1571 tokens in 84.6 ms; parked=4 bytes=1001258752 evictions=89 snapshot_bytes=260888432 reused_kv_bytes=0 Memory access fault by GPU node-4 (Agent handle: 0x8efbf50) on address 0xc9f2d000. Reason: Page not present or supervisor privilege. ``` Without the debug agent we have no kernel name for this one. Until then, the quality and speed matched patch C: one full delivery-note pass scored 32/37 at 114 s per note under load, against C's 32-33/37 at about 110 s. ## 3. What C covers that 0.1.43 does not In 0.1.43 the step records and the batched token ids go up from pinned memory. Patch C also moves every other async H2D of the prompt path whose host side is pageable through pinned bounce slots, one event per slot. In 0.1.43 those copies are: - the image embedding rows, `cudaMemcpyAsync(m.emb + t * N, row, ...)` from `embd_rows`, at prefill.cpp:2185; - the draft bounds and tokens in the draft K/V step, at prefill.cpp:1447 and 1451 (`bh[4]` on the stack, `tk` a vector); - the PLE rows in the `ple_pageable` fallback, at prefill.cpp:2212 (only taken without pinnable RAM); - the expert routing copies in the non-mapped branches. These are inactive with the default config, where `grp_host` is mapped. The fault came right after vision requests read in the batch, so the image-row copy is our first suspect. We have not isolated it, though: C changed all of them at once, and that is the version that held 4 hours. Would you extend `PinnedUpload` to these copies, or take the bounce-slot approach of C (the patch is attached to my last comment in #1712)? We are keeping patch C in production for now, and we can run any build of yours through the same reproduction and stress.
Author
Owner

@Niko1221 commented on GitHub (Oct 12, 2026):

Thank you, mantovaniluca91, for this and for the careful follow-up: the 5-of-5 versus 0-of-5 table, the 4-hour run with the same load on both patches, and above all the list of the copies that 0.1.43 still made from pageable memory. That list was the work; the change is small because of it.

What changed (0.1.43.1, out now): every async host-to-device copy of the prompt path whose host side is pageable now goes through a ring of pinned bounce slots, one event per slot, as in your patch C (our own code, same idea). A slot is refilled only after the copy that last read it is done, so the caller can change or free its memory the moment the call returns. These are the copies we moved:

  • the picture's embedding rows (gathered into one pinned slot per run of rows, one copy per run);
  • the draft K/V step's tokens and bounds (the bh[4] on the stack and the tk vector);
  • the PLE rows in the pageable fallback (no pinned RAM);
  • in the non-mapped branches: the routed-id download, the slot/src tables and the group bounds, and the second GPU's src and bounds tables;
  • the drafter's prompt records (CUDA path).
    Without pinned RAM (or with STRATA_TEST_PAGEABLE=1) the copy is made from the caller's memory and the stream is waited for, so the source is still free on return. A failed upload now stops the request with a message ("the image embedding upload failed", ...) instead of being ignored. The copies that already read from pinned arenas and cudaHostAlloc buffers (expert blobs, hand-off, CPU-share rows) are unchanged. Only how the bytes reach the GPU changes, so answers are identical: identity gate 10 of 10 prompts and a 4K and a 20K prompt byte-identical (residual dump) on an R9700 (HIP) and a P100 (CUDA), also with STRATA_GROUP_COPY=1 (the non-mapped branch) and STRATA_TEST_PAGEABLE=1 on the P100.

We have no RX 7000 card, so we could not reproduce your fault. What we ran on one R9700: a server with 4 batch slots, a CPU image encoder, and 6 clients (two delivery-note style loops of picture then 2K text, two with random 16K/30K prompts, picture then 6K text and short chats, two multi-turn sessions that add a picture in turn 3): 65 minutes, 379 requests, 101 of them with a picture, 0 errors, 0 empty or garbage answers, no fault. Prompt speed is unchanged (R9700, 3 alternating pairs: 4K 1,493 tok/s with and without the change, 16K 1,701 against 1,703; the differences are 0.0-0.2%).

Could you run your 4-hour load on 0.1.43.1, without patch C, and tell us the result? If it faults again, the last engine lines and, if you can, which request kind came before it would tell us where to look next; STRATA_TEST_PAGEABLE=1 is also a quick way to see whether a fault depends on the pinned slots.

<!-- gh-comment-id:6129313895 --> @Niko1221 commented on GitHub (Oct 12, 2026): Thank you, mantovaniluca91, for this and for the careful follow-up: the 5-of-5 versus 0-of-5 table, the 4-hour run with the same load on both patches, and above all the list of the copies that 0.1.43 still made from pageable memory. That list was the work; the change is small because of it. What changed (0.1.43.1, out now): every async host-to-device copy of the prompt path whose host side is pageable now goes through a ring of pinned bounce slots, one event per slot, as in your patch C (our own code, same idea). A slot is refilled only after the copy that last read it is done, so the caller can change or free its memory the moment the call returns. These are the copies we moved: - the picture's embedding rows (gathered into one pinned slot per run of rows, one copy per run); - the draft K/V step's tokens and bounds (the `bh[4]` on the stack and the `tk` vector); - the PLE rows in the pageable fallback (no pinned RAM); - in the non-mapped branches: the routed-id download, the slot/src tables and the group bounds, and the second GPU's src and bounds tables; - the drafter's prompt records (CUDA path). Without pinned RAM (or with STRATA_TEST_PAGEABLE=1) the copy is made from the caller's memory and the stream is waited for, so the source is still free on return. A failed upload now stops the request with a message ("the image embedding upload failed", ...) instead of being ignored. The copies that already read from pinned arenas and cudaHostAlloc buffers (expert blobs, hand-off, CPU-share rows) are unchanged. Only how the bytes reach the GPU changes, so answers are identical: identity gate 10 of 10 prompts and a 4K and a 20K prompt byte-identical (residual dump) on an R9700 (HIP) and a P100 (CUDA), also with STRATA_GROUP_COPY=1 (the non-mapped branch) and STRATA_TEST_PAGEABLE=1 on the P100. We have no RX 7000 card, so we could not reproduce your fault. What we ran on one R9700: a server with 4 batch slots, a CPU image encoder, and 6 clients (two delivery-note style loops of picture then 2K text, two with random 16K/30K prompts, picture then 6K text and short chats, two multi-turn sessions that add a picture in turn 3): 65 minutes, 379 requests, 101 of them with a picture, 0 errors, 0 empty or garbage answers, no fault. Prompt speed is unchanged (R9700, 3 alternating pairs: 4K 1,493 tok/s with and without the change, 16K 1,701 against 1,703; the differences are 0.0-0.2%). Could you run your 4-hour load on 0.1.43.1, without patch C, and tell us the result? If it faults again, the last engine lines and, if you can, which request kind came before it would tell us where to look next; STRATA_TEST_PAGEABLE=1 is also a quick way to see whether a fault depends on the pinned slots.
Author
Owner

@mantovaniluca91 commented on GitHub (Oct 13, 2026):

Thanks for 0.1.43.1. We ran it the same evening, with the same 4-hour load as before. It held: 240 minutes, 0 faults, 0 engine restarts.

Setup: 2x RX 7900 XTX (gfx1100), ROCm 7.2.4 in the container, Xeon E5-2630 v2 (AVX only). 0.1.43.1 was built from the tag (a0116b27) with STRATA_ISA_FLOOR=avx, with no patches of ours: no [floria patch] line in the log, and session is up (engine 0.1.43.1). The config is the same as in my earlier comment: parallel 4, --max-context 262144 --kv int8 --kv-resident 32768 --spec 4 --mtp --no-prefill-borrow --batch-groups auto --trim-stage-weights --layer-split 27 --conversation-cache-mib 6144 --conversation-cache-slots 4, STRATA_HIP_WMMA=1 STRATA_SELECT_WMMA=1, and the vision encoder on a separate card. No debug agent.

The load was the same 6 clients on the 4 slots: 2 agent sessions on real read-only requests, 2 delivery-note loops (vision request, then a structured text request), and 2 clients picking at random between a new 32K/64K/128K prompt, a synthetic image followed by a long synthetic text, and a short chat. In the first 34 minutes, all 4 slots were busy with 1-2 requests waiting for about 87% of the time.

0.1.41 + patch C 0.1.43 0.1.43.1
Faults / restarts in the run 0 / 0 in 240 min 1 at minute 31 0 / 0 in 240 min
upload failed / ring failure lines — 0 0
Full delivery-note passes (16 notes each) 14, 32-33/37 1, 32/37 14, 32-33/37
Mean time per note under load ~99-128 s 114 s ~106-139 s
Prompt tokens read / tokens generated 19.3 M / 755 K (31 min) 22.1 M / 648 K
Fixed ~6K probe, write speed under load 8-55 tok/s — 6-57 tok/s

During the run, at the 33-minute check:

  • Per-request decode with all 4 slots busy: median 15 tok/s, 57 tok/s for the one request served alone.
  • Prompt reads over 5K tokens: median 1,663 tok/s.
  • MTP drafts accepted: 73%.
  • Expert cache hit rate: 99.8%.

These match patch C. The two runs had different random mixes (this one had more long prompts), so the token totals are not a like-for-like comparison.

The only client-side failures were the same kinds as with patch C, and none came from the engine:

  • The synthetic picture → long text pairs hit our client's 300 s limit or got a 502 from our proxy: 31 here, 32 with C.
  • 21 agent runs were stopped by our harness at 900 s: 16 with C.

One small thing: at start-up the log says adaptive overlap: off: not on a layer split, although we do run a layer split. From generate.cpp:8358 I take it that the overlap only works off a layer split, so the behaviour is fine. The wording reads the other way, though.

So on our hardware 0.1.43.1 behaves like patch C under the load that brought 0.1.43 down. Thank you for taking the whole list. We are keeping patch C in production until we have decided, and we can run any build of yours through the same reproduction and stress.

<!-- gh-comment-id:6138932195 --> @mantovaniluca91 commented on GitHub (Oct 13, 2026): Thanks for 0.1.43.1. We ran it the same evening, with the same 4-hour load as before. **It held: 240 minutes, 0 faults, 0 engine restarts.** Setup: 2x RX 7900 XTX (gfx1100), ROCm 7.2.4 in the container, Xeon E5-2630 v2 (AVX only). 0.1.43.1 was built from the tag (a0116b27) with `STRATA_ISA_FLOOR=avx`, with no patches of ours: no `[floria patch]` line in the log, and `session is up (engine 0.1.43.1)`. The config is the same as in my earlier comment: `parallel 4`, `--max-context 262144 --kv int8 --kv-resident 32768 --spec 4 --mtp --no-prefill-borrow --batch-groups auto --trim-stage-weights --layer-split 27 --conversation-cache-mib 6144 --conversation-cache-slots 4`, `STRATA_HIP_WMMA=1 STRATA_SELECT_WMMA=1`, and the vision encoder on a separate card. No debug agent. The load was the same 6 clients on the 4 slots: 2 agent sessions on real read-only requests, 2 delivery-note loops (vision request, then a structured text request), and 2 clients picking at random between a new 32K/64K/128K prompt, a synthetic image followed by a long synthetic text, and a short chat. In the first 34 minutes, all 4 slots were busy with 1-2 requests waiting for about 87% of the time. | | 0.1.41 + patch C | 0.1.43 | 0.1.43.1 | |---|---|---|---| | Faults / restarts in the run | 0 / 0 in 240 min | 1 at minute 31 | **0 / 0 in 240 min** | | `upload failed` / ring failure lines | — | 0 | **0** | | Full delivery-note passes (16 notes each) | 14, 32-33/37 | 1, 32/37 | **14, 32-33/37** | | Mean time per note under load | ~99-128 s | 114 s | ~106-139 s | | Prompt tokens read / tokens generated | 19.3 M / 755 K | (31 min) | 22.1 M / 648 K | | Fixed ~6K probe, write speed under load | 8-55 tok/s | — | 6-57 tok/s | During the run, at the 33-minute check: - Per-request decode with all 4 slots busy: median 15 tok/s, 57 tok/s for the one request served alone. - Prompt reads over 5K tokens: median 1,663 tok/s. - MTP drafts accepted: 73%. - Expert cache hit rate: 99.8%. These match patch C. The two runs had different random mixes (this one had more long prompts), so the token totals are not a like-for-like comparison. The only client-side failures were the same kinds as with patch C, and none came from the engine: - The synthetic picture → long text pairs hit our client's 300 s limit or got a 502 from our proxy: 31 here, 32 with C. - 21 agent runs were stopped by our harness at 900 s: 16 with C. One small thing: at start-up the log says `adaptive overlap: off: not on a layer split`, although we do run a layer split. From generate.cpp:8358 I take it that the overlap only works off a layer split, so the behaviour is fine. The wording reads the other way, though. So on our hardware 0.1.43.1 behaves like patch C under the load that brought 0.1.43 down. Thank you for taking the whole list. We are keeping patch C in production until we have decided, and we can run any build of yours through the same reproduction and stress.
Author
Owner

@mantovaniluca91 commented on GitHub (Oct 15, 2026):

One more data point on 0.1.43.1, from production this time.

After the 4-hour test passed, we put 0.1.43.1 in production on 14/10 at 07:50 (local time). It faulted once after 5 h 09 min:

[strata] 2026-10-14 05:50:06 engine started: /work/Strata/engine/strata_0431 --serve ...
...
Memory access fault by GPU node-3 (Agent handle: 0x3bcf01f0) on address 0x1dfe00000. Reason: Page not present or supervisor privilege.
[strata] 2026-10-14 10:59:03 engine started: ...

What was different from the multi-slot runs in this thread:

  • One slot only. No --batch and no --batch-groups: we moved production to a single slot with a queue in front of it. Command line:
    --serve --pack .../iq3_xxs --native ...IQ3_XXS-00001-of-00002.gguf --ple-gguf ...-00002-of-00002.gguf
    --expert-profile .../expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5
    --mtp .../mtp/rt --max-context 262144 --kv int8 --kv-resident 32768 --vision --vram-reserve-mib 700
    --trim-stage-weights --no-prefill-borrow --conversation-cache-mib 20480 --conversation-cache-slots 6 --layer-split 27
    
    HIP_VISIBLE_DEVICES covers the two XTX cards. STRATA_ROUTE_TAIL_SKIP=0. Same build as the 4-hour test (tag a0116b27, STRATA_ISA_FLOOR=avx, ROCm 7.2.4 in the container).
  • No image requests between the engine start and the fault: 532 requests, all text.
  • The last request before the fault was an agent conversation of about 87K tokens, almost all reused: 86,759 reused + 412 read, 189 generated at 57.8 tok/s. Right after it, the conversation cache parked it:
    strata serve: conversation cache: parked 87359 tokens in 952.2 ms; parked=6 bytes=7176367976 evictions=121 snapshot_bytes=2166660168 reused_kv_bytes=0
    Memory access fault by GPU node-3 ...
    
    The fault came right after a park, with the cache full (6 of 6 conversations, 121 evictions so far). It may be a coincidence, since every request here ends with a park.
  • The address looks different. The faults in the earlier reports were at high addresses like 0x7e15e8c96000, which look like host (userptr) addresses. This one is 0x1dfe00000, a low address. We don't know how to read that. We mention it in case it points to a different path than the one the pinned ring fixed.

We did not have the ROCm debug agent loaded in production, so there is no wave dump this time. If useful, we can run production with HSA_TOOLS_LIB=librocm-debug-agent.so.2 for a few days to catch the next one, or try something you suggest.

So, overall: 0.1.43.1 is far better than 0.1.43. The test gave 0 faults in 4 hours, and production gave 1 fault in 5 hours with one slot, where the old build faulted every 30 minutes. But the fault is not fully gone.

<!-- gh-comment-id:6193608039 --> @mantovaniluca91 commented on GitHub (Oct 15, 2026): One more data point on 0.1.43.1, from production this time. After the 4-hour test passed, we put 0.1.43.1 in production on 14/10 at 07:50 (local time). It faulted once after **5 h 09 min**: ``` [strata] 2026-10-14 05:50:06 engine started: /work/Strata/engine/strata_0431 --serve ... ... Memory access fault by GPU node-3 (Agent handle: 0x3bcf01f0) on address 0x1dfe00000. Reason: Page not present or supervisor privilege. [strata] 2026-10-14 10:59:03 engine started: ... ``` What was different from the multi-slot runs in this thread: - **One slot only.** No `--batch` and no `--batch-groups`: we moved production to a single slot with a queue in front of it. Command line: ``` --serve --pack .../iq3_xxs --native ...IQ3_XXS-00001-of-00002.gguf --ple-gguf ...-00002-of-00002.gguf --expert-profile .../expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp .../mtp/rt --max-context 262144 --kv int8 --kv-resident 32768 --vision --vram-reserve-mib 700 --trim-stage-weights --no-prefill-borrow --conversation-cache-mib 20480 --conversation-cache-slots 6 --layer-split 27 ``` `HIP_VISIBLE_DEVICES` covers the two XTX cards. `STRATA_ROUTE_TAIL_SKIP=0`. Same build as the 4-hour test (tag a0116b27, `STRATA_ISA_FLOOR=avx`, ROCm 7.2.4 in the container). - **No image requests** between the engine start and the fault: 532 requests, all text. - **The last request before the fault** was an agent conversation of about 87K tokens, almost all reused: 86,759 reused + 412 read, 189 generated at 57.8 tok/s. Right after it, the conversation cache parked it: ``` strata serve: conversation cache: parked 87359 tokens in 952.2 ms; parked=6 bytes=7176367976 evictions=121 snapshot_bytes=2166660168 reused_kv_bytes=0 Memory access fault by GPU node-3 ... ``` The fault came right after a park, with the cache full (6 of 6 conversations, 121 evictions so far). It may be a coincidence, since every request here ends with a park. - **The address looks different.** The faults in the earlier reports were at high addresses like `0x7e15e8c96000`, which look like host (userptr) addresses. This one is `0x1dfe00000`, a low address. We don't know how to read that. We mention it in case it points to a different path than the one the pinned ring fixed. We did not have the ROCm debug agent loaded in production, so there is no wave dump this time. If useful, we can run production with `HSA_TOOLS_LIB=librocm-debug-agent.so.2` for a few days to catch the next one, or try something you suggest. So, overall: 0.1.43.1 is far better than 0.1.43. The test gave 0 faults in 4 hours, and production gave 1 fault in 5 hours with one slot, where the old build faulted every 30 minutes. But the fault is not fully gone.
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for the report. This is fixed in 0.2.0-beta (or an earlier release), and we're closing it as part of the tracker reset for 0.2.0-beta.

If it still happens on 0.2.0-beta, add the area prefix to the title ([Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]), put the Strata version and your hardware in the issue form fields, and comment /reopen. A check runs and reopens it.

<!-- gh-comment-id:6270753841 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for the report. This is fixed in 0.2.0-beta (or an earlier release), and we're closing it as part of the tracker reset for 0.2.0-beta. If it still happens on 0.2.0-beta, add the area prefix to the title ([Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]), put the Strata version and your hardware in the issue form fields, and comment `/reopen`. A check runs and reopens it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#798
No description provided.