mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4627] [Engine] DeepSeek-V4.1: vision QKV GEMM fails with cuBLAS status 15 (NOT_SUPPORTED) on RTX 3090 (sm_86, CUDA 13) under high max-context #2096
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#2096
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 @whitespades on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4627
Summary
With
--vision onon DeepSeek-V4.1-Flash (IST-DAS 2.00 bpw), an image request makes the vision encoder fail with a cuBLASNOT_SUPPORTED(15) in a BF16 QKV attention GEMM, and the request then dies with a follow-upcannot open the pictures' file … .dsierror.The same engine, model and GPU encode pictures fine in a normal 262144-context session. The failure happens in a session started with
--max-context 524288 --experts 6 --reserve-mib 125on the 24 GB card, where the log is full of GPUout of memorywarnings right before the vision crash. Suspected cause: cuBLAS workspace/allocation for the vision GEMM is not available once the KV cache for the huge context has taken the remaining VRAM; a clean failure/reason (and no follow-up.dsierror) would be much better than the current cryptic pair.Environment
strata-dsv41 0.1.52 build a42cc3d7d, package0.1.52-linux-x86_64-cuda-cuda13--tp 1, vision tower on GPU 0 (318 MiB resident,vision_mibin /metrics)gpu-unlockkernel module (Zagitta, full-rate BF16) is active on both cards — should not affect cuBLAS support, noted for completenessStartup args of the failing session
What the log shows
Repeated GPU-side memory pressure first:
Then the vision encoder, on the first image of the request:
Then, as a follow-up, the request dies:
(the
ds-picturesdirectory ends up empty).Works, for comparison
Same engine binary, same model, same machine, started with
--max-context 262144 --experts 5 --reserve-mib 150:The picture encodes and the model answers with it normally.
Questions / requests
CUBLAS_STATUS_NOT_SUPPORTEDhere plausibly a workspace/allocation failure for the vision GEMM under KV-cache pressure on 24 GB? If so, could the engine check the memory situation and produce a clear message (e.g. "vision needs ~N MB free VRAM, only X free — lower --max-context / --reserve-mib") instead of a raw cuBLAS status?cannot open the pictures' file … .dsiis confusing — the real failure is the vision step. Could the request fail with the vision reason directly?docs,--vision cpu)?Happy to test any patch build on this box.
@github-actions[bot] commented on GitHub (Oct 29, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 31, 2026):
Thanks, this follows the format now.
@whitespades commented on GitHub (Oct 31, 2026):
Helper-GPU vision evidence (separate from the 4 GB RAM margin change): with
CUDA_VISIBLE_DEVICES=0,1,gpu_order: as_given,--gpus 0,DS4_VISION_GPU=1, all 40 layers stayed on the 3090 and the vision tower loaded on the 3060 (444 MiB including CUDA context); an image read took 1,130 ms. I opened #4809 as a feature request to make this a supported upstream option.