mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5241] [Engine] 0.2.10 (engine 0.1.56): the host hard-resets while reading a 64k prompt, around the point where KV streaming starts; same box fine on 0.1.40.1 (RTX 3090, Linux source build) #3121
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3121
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @web-admin-master on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5241
Summary
After updating a Linux source install from v0.1.40.1 (
82f46a8) to v0.2.10 (ffa80d73, engine 0.1.56), the whole machine reset three times on 2026-11-04. It powered off and back on, without a kernel panic and without any OS log. Each time Strata was reading a ~64k-token prompt, after it had passed 24,576 tokens. One run of the same sequence passed. Prompts of 10k tokens and below never caused a reset.I rolled back to 0.1.40.1 with the same configs, weights and pack. The same machine and prompts then passed 3× 64k and 1× 120k in a row. In October, 0.1.40.1 also handled 185k and 253k prompts on this box.
The speedups in 0.2.10 were great on this card, by the way: decode went from 69-79 to 97-100 tok/s on short prompts and from 70 to 92 tok/s after a 120k prompt. So I'd like to get back to it.
System
setup.py --update(engine"source": "local")Engine arguments under 0.2.10, as written by setup and unchanged from 0.1.40.1 except
--vram-reserve-mib(2048, was 700):The 128K config is identical except
--max-context 131072.What happens
The test is
bench-context-style: three short prompts, then a 10k, a 64k and a 120k prompt, each with a unique first line so nothing is reused, greedy, thinking off, one request at a time.reading the prompt: 24,576 of 66,045 tokens, 17 s32,768 is
--kv-resident. My guess is that the reset happens in the first prompt chunk that has to put K/V into pinned host RAM. I can't prove it, but the 10k prompts never get there, and the one reset I could place in time lands right there.What it doesn't seem to be
Defaults that are new on this box compared with 0.1.40.1 (from the 0.2.10 log)
sm_86 (Ampere): 9 exact speed switches on by default: ADAPT_NOWAIT ADAPT_LAG CPU_IQ_ALL_EXACT1 SIDE_MIXER ATTN_DAILY GR_UP75 GU_SWIGLU QSA_ROWS B6_MMVQ_ROWSprefill: the CPU share is ON by default for prompt chunks up to 3072 tokensthe prompt path borrows 2611 CUDA0 cache slots (4.25 GiB)conversation cache sized from the free RAM: 4864 MiB--vram-reserve-mib 2048(2,027 MiB of VRAM left free, against 461 MiB on 0.1.40.1)What I can test
Each failed attempt hard-resets a machine that also serves storage, so I'd rather test the switches you think are most likely than bisect blindly. Possible runs, each with three 64k prompts:
STRATA_SM86_PERF=0STRATA_PREFILL_CPU_SHARE=0STRATA_ADAPT_NOWAIT=0 STRATA_ADAPT_LAG=0alone, if these can be set individuallynvidia-smi -lgc 0,1800) with 0.2.10 unchanged#3463 looks like a relative on AMD: hard restarts with no trace, worked around with a clock cap, and PSU transients suspected. The 280 W power limit above caps the average, not sub-second spikes, so run 4 would be the test for that. It wouldn't explain why 0.1.40.1 passes at higher power, unless 0.2.10's load pattern switches faster.
Which of these, or which other switch, would you try first? Logs, the engine log of the failing sessions and the power log are available.
Unrelated, small: with gcc 12,
include/strata/core/vmm.hppneeds#include <stddef.h>forsize_t(it only includes<cstdint>and<vector>). Still the case in v0.2.10. We carry a one-line local patch.