mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1208] HIP layer split / gfx1030: batched prompt path produces NaN logits (output "!!!!") unless STRATA_HIP_PROMPT_F16=1 and the gfx1030 card is the first stage #498
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#498
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 @cloud4t0r on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1208
@Vop3p commented on GitHub (Oct 9, 2026):
A data point from another gfx1030 box, in case it narrows this down. 2x RX 6900 XT (gfx1030), Ubuntu 26.04, ROCm 10.0.0 system packages (rocBLAS 5.6.0, no hipBLASLt for gfx1030), Strata 0.1.41
fb58e0dbbuilt for gfx1030 only withSTRATA_PREFILL_MMQ=ON, the same IQ3_S model, layer split across the two cards,--kv int8 --spec 4 --mtp, and noSTRATA_HIP_PROMPT_F16: six fresh prompts of 4K / 32K / 128K tokens (8,192-token batched chunks, so every one went through the batched path) all produced normal text, 0 non-finite logits, andengine.loghas no NaN line. Thesplit-stockandsplit-stock-kcfolders in #1657 have the configs, summaries and every output text.So the default batched MMQ path is finite on gfx1030 with ROCm 10.0. With #1103 (the ROCm 7.14 gfx103x wheels regression on an RX 6800 XT, fixed by a different ROCm) that points at the ROCm 7.1 / TheRock 7.10 side rather than at the engine, if that helps. A mixed
gfx1030;gfx1201build is something I have not tried.Developed with an AI coding assistant; every number above was measured on 2x RX 6900 XT (gfx1030, PCIe 4.0 x8 each) / Ryzen 5 5600X, ROCm 10.0.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
@cloud4t0r commented on GitHub (Nov 3, 2026):
Reproduced on 0.1.56 (Strata 0.2.10, commit
5571819a), same machine class as the report: Fedora 44, RX 9070 (gfx1201) as stage 0 + a 16 GB gfx1030 as stage 1, packswift-iq3_sbuilt fromSwift-Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S(qwen4exp, 48 layers, 512 experts / top 10, 320M-row PLE),--kv int8 --kv-resident 32768 --spec 4 --spec-min-p 0.5 --mtp --vision --max-context 131072 --layer-split auto, HIP build.Symptoms match exactly.
248320 of 248320 logits non-finite→non-finite logits (#879) in a first decode window, whatever the prompt:--short-read 0fails even on a 56-token prompt. The same requests are fine through the verify windows:--short-read 8192answers a 71-token and a 1109-token prompt (1109 tokens read at 106.9 tok/s in windows).STRATA_DBG_NAN=1: the non-finite values appear in the MoE of the layers of the stage on the gfx1030 (38, 43, 44, 47), on 2 tokens of 66 (GU 25600 / H 12800 / Dm 51200 / bo 5120), with types 18/20, 21/20 and 23/20.--short-read 64a 56-token prompt (windows only) answers and a 71-token one fails.This did not change it:
STRATA_PREFILL_MMQ=0,--kv fp16,STRATA_ROUTE_TAIL_SKIP=0,STRATA_HC_Q8=0,--prompt-cache 0 --conversation-cache-mib 0,--max-context 32768(VRAM headroom), and--gpu 0alone. The last one is the only difference from the 0.1.40.1 report: here the RX 9070 on its own still produced the NaN, so on 0.1.56 the batched path is non-finite on gfx1201 too, not only on the gfx1030.STRATA_HIP_PROMPT_F16=1fixes it, with the gfx1030 as stage 1 (0.1.40.1 needed it as stage 0): 56, 71 and 1109-token prompts answered in a row, the 1109-token prompt read at 420.3 tok/s and answered at 59.9 tok/s. So the tip line the engine already prints at start ("HIP device 1 gfx1030 - tip: STRATA_HIP_PROMPT_F16=1 …") is still the workaround on 0.1.56, and it is also faster here.Unrelated, same session, in case it helps the tracker: after a few turns the engine hit the watchdog in
request: parking the previous conversation -1(52.2 GB resident, 5.4 GB RAM available — the 46.84 GiB expert arena on a 64 GB box), the same shape as the parking stall mentioned in #4862.