mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #690] Layer split: native prefill kernels fail on the second GPU (no kernel image available), regardless of which card it is #321
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#321
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 @Nauclerus on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/690
Summary
A two-GPU AMD layer split starts normally, decodes normally, and reads short prompts normally — but the first prompt larger than the prompt chunk fails with
no kernel image is available for execution on the device, thrown by the native prefill kernels.The failure follows the second device in the split, not the architecture: swapping the card order fails identically. Each card works fine on its own with the same binary.
Machine
7.2.7-1-default, user in therendergrouprocm_sdk_core/rocm_sdk_devel/rocm_sdk_libraries_gfx110X-dgpu), hipBLASLt 1.2.xengine/BUILD.json:{"backend":"hip","version":"0.1.38","archs":["gfx1030","gfx1100"],"src":"d844541998f4d168"}Model: Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS, engine args
--expert-profile --expert-cache auto --prefill auto --spec 4 --mtp --kv int8 --kv-resident 32768 --max-context 262144 --vram-reserve-mib 5120.Repro
Config
"backend": "hip", "gpu": [0, 1], "layer_split": "auto", start the server, then send a prompt bigger than the prompt chunk (8192 tokens here):Startup looks healthy:
The same request on the same server with a smaller prompt succeeds, so the split itself works:
6553 tokens (one chunk) is the largest prompt that succeeds; the next request — the first one that spans more than one chunk — fails. Both native prefill kernels I hit are the same shape of failure:
prefill swiglu_interleavedandprefill PLE: native PLE postops launch.Controls that pass
gpu: 1), same binary, same 44022-token prompt: HTTP 200.gpu: 0), same binary, 44022-token and 110022-token prompts: HTTP 200.gpu: [1, 0](6950 first, XTX second) the same error appears, this time on the XTX.CUDA_MODULE_LOADING=LAZYdoes not change it.What I think is happening
native_ple_postops.cuhas no arch guards; the launch is a plain<<<...,st>>>followed bylaunch_check()(lines 197–199, the throw at 171), andprefill.cppdoes set the device per stage (cudaSetDevice(pp->dev)), so the kernel is dispatched to the right card — but the runtime has no code object for it there. Since the failure tracks "the second device" rather than "the gfx1030 card", my guess is that the fatbinary's code object is selected once, for the device that is current when the module is first loaded, and a second device with a different arch gets nothing.Two questions:
--nativeenables them (src/program/generate.cpp:1618) and--native-ple-postopsis opt-in only — there is no off-switch, so I cannot test whether the reference path would work on the second card.Side note, probably not the cause but worth mentioning: setup's wheels on this machine are the
gfx110X-dgpuvariant, so there is no gfx1030 Tensile library, and no hipBLASLt tuning table for gfx1030 with this hipBLASLt version. The failing kernels are the engine's own, not hipBLASLt.Happy to test a patch or a build.
@christopherrobertbrooks-tech commented on GitHub (Oct 4, 2026):
A data point from NVIDIA, where the same pattern does not happen: a mixed-architecture layer split with prompts well past
the prompt chunk, in both card orders.
Machine: Tesla V100-PCIE-32GB (Volta, sm_70, PCIe 3.0 x4) + RTX 4070 12 GB (Ada, sm_89, x16), i7-13700KF, 16 GB RAM,
Ubuntu 24.04, driver 580.173.02, CUDA 12.9. Engine 0.1.39 built by setup with both architectures
(
engine-cuda12/BUILD.json:"archs": [70, 89],--cuda 12because of the Volta card).Model / config: Qwen3.8-Flash-Next IQ2_XS,
"layer_split": "auto", low-RAM mode (--mmap-experts),--max-context 131072,--kv int8,--spec 4, MTP; the 2x MI50 report'sbenchmark.py(3 runs each at 4,096 / 32,768 / 128,000 freshprompt tokens, 256-token cap) and
tools/needle_bench.py(32k and 128k, depths 10/50/90)."gpu": [1, 0])"gpu": [0, 1])No
no kernel image is available(or any other error) in the engine logs in either order; every prompt larger than the8,192-token chunk went through the native prefill on the second device. So on CUDA a two-architecture build handles it
whichever card is second -- which may help narrow #690 to the HIP build or its native prefill kernels.
Full numbers are in our community benchmark PR (#823 covers the V100 alone; the dual-card run is in our notes and can go up
as a second report if useful).
Drafted with an AI assistant (Claude) from our runs and logs, and checked by me.
@Nauclerus commented on GitHub (Oct 6, 2026):
Found the fix on my rig:
STRATA_HIP_PROMPT_F16=1makes the gfx1100 + gfx1030 split work.I updated to engine 0.1.40 (one-time
git reset --hard origin/main, then./update.sh; local-hip rebuilt forgfx1030;gfx1100with a system ROCm 7.2). The split still failed identically for prompts past the chunk, so the 0.1.39/0.1.40 split changes did not cover this.Then I saw 0.1.40's own tip on the gfx1030 stage:
Setting
STRATA_HIP_PROMPT_F16=1fixes it completely.Rig: RX 7900 XTX (gfx1100, first) + RX 6950 XT (gfx1030), Ryzen 7 5800X3D (AVX2), 62 GiB, openSUSE Tumbleweed, system ROCm 7.2 (
/usr/lib64; both gfx1030 and gfx1100 Tensile kernels present), engine 0.1.40 local-hip, Qwen3.8-Flash-Next IQ3_XXS native pack,"gpu": [0,1],"layer_split": "auto",--max-context 131072 --kv int8 --vram-reserve-mib 5120, resident arena.STRATA_HIP_PROMPT_F16prefill PLE: native PLE postops launch: no kernel image(fails with either card order, so it follows the second stage)STRATA_HIP_PROMPT_F16=1, 46,023-token promptSTRATA_HIP_PROMPT_F16=1, 83,222-token promptSTRATA_HIP_PROMPT_F16=1, 420-token generationSTRATA_HIP_PROMPT_F16=1, 3× repeat of the 46K promptSo it is neither a missing gfx1030 code object (the binary has 118 gfx1030 / 119 gfx1100 code objects and each card works alone) nor simply a missing BF16 kernel on gfx1030 (a lone 6950 XT reads a 46K prompt without the flag). It is the second stage of the split running the batched prefill that hits
no kernel image; forcing the prompt's 16-bit GEMMs to FP16 avoids it. The error is thrown at thelaunch_check()innative_ple_postops, so it may be surfacing there rather than being the PLE kernel itself.Two suggestions:
STRATA_HIP_PROMPT_F16=1: the prompt's 16-bit GEMMs run FP16 in and out, so the gfx1100 stage's prompt path also changes rounding. A per-device form (or auto-enabling it only for gfx103x stages in a split) would keep the XTX on the default path.Happy to run any instrumentation or an A/B with
STRATA_HIP_PROMPT_F16=0again, or to test the same on IQ2_XS. Config and full engine logs available on request.@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.