mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #161] Crash: Strata v0.1.25: short request succeeds, batched prefill exits with cuBLAS status 13 on RTX 5090M Laptop / Linux LXC #87
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#87
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 @leonbollerup on GitHub (Sep 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/161
Strata v0.1.25: short request succeeds, batched prefill exits with cuBLAS status 13 on RTX 5090 Laptop / Linux LXC
Summary
Latest release and main checked at reproduction time: v0.1.25, commit
8fc40dde5e8897a097ec0ea6ea27f9313d171268. Startup and a 28-token arithmetic prompt succeed. A subsequent synthetic prompt (100 repetitions of a short sentence) fails before output with HTTP 503 and engine exit code 1.Environment
Reproduce
Start the server with the configuration above. Submit the attached
short-request.json, thenprefill-request.json:The longer prompt is generated as:
Both requests use temperature 0, reasoning_effort none, max_tokens 128. The long prompt's exact API token count is unavailable because the request fails before usage is returned.
Actual results
323, normal stop; 28 input / 4 completion tokens.the engine stopped unexpectedly (exit code 1); the next request restarts it.prefill gemm: cublasGemmEx: cuBLAS status 13(execution failed).Expected result
The longer request completes, or a recoverable diagnostic identifies the failing operation without terminating the engine.
Related observations / limitations
cublasGemmEx f16: cuBLAS status 13on a longer synthetic prompt. This is not proven unique to v0.1.25.Request for guidance
Which synchronized diagnostics or prefill feature-disable switches would best isolate this on sm_120 in LXC? Is this combination of CUDA 13.0/cuBLAS, KV streaming and borrowed expert-cache prefill buffers known to be problematic?
Attachments
Synthetic request JSONs, response bodies, engine log tail, service log, environment information and recent kernel-error search output (empty if no matches). No user conversation content included.
engine-tail.txt
environment.txt
kernel-errors.txt
prefill-response.txt
service-log.txt
short-response.txt
prefill-request.json
short-request.json
@Niko1221 commented on GitHub (Sep 29, 2026):
Thanks for the very thorough report. Status 13 means the GPU program failed to run, and since it hits different GEMMs (and 0.1.24 too), it's most likely an earlier kernel fault showing up late, or the container's driver setup. Could you:
CUDA_LAUNCH_BLOCKING=1(andcompute-sanitizerif you can);--no-prefill-borrow,--prefill 0andSTRATA_PREFILL_MMQ=0, one at a time;dmesgXid lines and the container's NVIDIA library version (it must match host driver 595.58.03 exactly)?We'll also make the engine report the underlying CUDA error before it exits.
@leonbollerup commented on GitHub (Sep 30, 2026):
i managed to fix it.. problem with nvidia driver.. weird shit.. :)
Either way, thanx mate
@leonbollerup commented on GitHub (Sep 30, 2026):
I'm optimizing the setup.
v0.1.26: prefill 2,048 → 8,192
Medians of three runs, each generating 256 tokens:
~2K input
• PP: 1,902 → 1,933 tok/s (+1.6%)
• TG: 105.3 → 105.0 tok/s
• First token: 1.079 → 1.062 seconds
~8K input
• PP: 2,231 → 2,722 tok/s (+22.0%)
• TG: 105.4 → 105.3 tok/s
• First token: 3.577 → 2.938 seconds — 18% sooner
• Total request: 5.996 → 5.356 seconds
engine: Strata v0.1.26
model: Qwen3.8-Flash-Next GSQ-RCO IQ2_XS
context_tokens: 131072
prefill_tokens: 8192
kv_cache: int8
kv_resident_cells: 32768
expert_cache: auto
expert_profile_entries: 8000
speculation_depth: 4
speculation_min_probability: 0.5
mtp_runtime: /opt/strata/mtp/rt
service_memory_limit: 56 GiB
service_swap_limit: 0
cuda: 13.0
nvidia_driver: 595.58.03
jit_library_path: /opt/strata-driver-595.58.03
--- start options..
/opt/strata-v0.1.26/build/strata
--serve
--pack /opt/strata/packs/iq2_xs
--native /opt/strata/models/IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf
--ple-gguf /opt/strata/models/IQ2_XS/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf
--expert-profile /opt/strata/data/expert-profile.bin
--expert-cache auto
--prefill 8192
--spec 4
--spec-min-p 0.5
--mtp /opt/strata/mtp/rt
--max-context 131072
--kv int8
--kv-resident 32768
Anything i can optimize here ?
• GPU: RTX 5090 Laptop
• Total VRAM: 24,463 MiB
• Used: 16,740 MiB
I have memory free on the GPU..
@Niko1221 commented on GitHub (Sep 30, 2026):
Glad it was the driver setup. About the ~7 GB of unused VRAM: the automatic expert cache never grows past the size of the expert profile, and your custom profile has 8,000 entries. With the shipped
data/expert-profile.bin(24,576 pairs) or a larger profile, it fills the free VRAM: more hits, faster output. Closing; please reopen if the crash comes back.