mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #420] 0.1.32 aborts with mmq.cuh:1555 fatal error (J_best=0) on a 77-token prompt, SM 12.0, 2 GPUs, Swift IQ3_XXS #194
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#194
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 @qni-live on GitHub (Oct 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/420
Engine 0.1.32 aborts on the first longer request. Engine 0.1.30 with the same settings, model and pack runs fine.
Setup
setup.py --build(arch 120, source built on this PC, not the ready-made engine)--layer-split 25,--kv k8v4,--spec 5 --spec-min-p 0.5, MTP,--prefill auto, vision onexepoints at the 0.1.32 build)What happens
ready.max_tokens 256, temperature 0).reading the prompt: 77 tokens, 10 s so far, then the engine aborts:max_tokens 20) in the same setup did answer, also with--prefill 512and with--spec 4. I did not find the exact prompt length where it starts, and I did not test other models or one GPU.Not tested: whether it is my local build or the release code; whether one GPU or another quantization shows it.
Logs available: server log with the abort, the config file. I can try a given length or flag if you tell me what is useful.
@Niko1221 commented on GitHub (Oct 1, 2026):
Thanks for the clear report.
J_best=0means ggml's MMQ found no tile size that fits for that matrix on that card. Our builds use the same pinned ggml on the same compute capability (an sm_120 RTX 5070 here) without this, so we need to find which matrix it is. Your 20-token requests worked and the 77-token one didn't, and from 64 tokens the draft layer reads the prompt in one batch through a Q8_0 MMQ product. So that's the first suspect; the experts' MMQ path is the other.Could you run the 77-token request once with each of these in the config's
"env"(one at a time) and say which one avoids the abort?"STRATA_MTP_BATCH_F16": "1": the draft layer's batch pass on FP16 instead of MMQ."STRATA_PREFILL_MMQ": "0": the experts' prompt products without MMQ.Also useful:
"gpu": 0, no layer split) shows it;"STRATA_TRACE": "1";nvidia-smi -q | grep -i -A2 "compute mode\|MIG", in case the cards are partitioned.Engine 0.1.33 is out (
./setup.sh --buildrebuilds), but it doesn't change this path, so please test on whichever is easier. Either switch above is also a workaround until it's fixed: (1) costs nothing measurable, while (2) makes prompts slower.@qni-live commented on GitHub (Oct 1, 2026):
Thanks, results on 0.1.32 (my source build, sm_120), same 76-token prompt each time:
nvidia-smi: Compute Mode Default, MIG N/A on both cards.
So it looks like the experts' prompt MMQ path, not the draft layer and not the layer split. I have not measured how much slower prompts are with PREFILL_MMQ=0, and I have not tried 0.1.33.
I can only continue testing tomorrow, so there is no rush on your side. Happy to test 0.1.33 or any other flag then.
@Niko1221 commented on GitHub (Oct 2, 2026):
Thanks for the report. We couldn't reproduce it here: the same pinned ggml on an sm_120 card never runs out of tiles. So 0.1.34 makes the engine robust against it. Before the prompt path uses llama.cpp's MMQ for a type, it asks, on every visible GPU, the same question MMQ's tile choice asks: is there a tile for this type and matrix shape that fits the card's shared memory? Where there isn't, that product takes the existing FP16 path instead of aborting with
J_best=0, and the engine prints one line naming the type, the card, its compute capability and its shared memory. On cards where everything fits (all ours), nothing changes. Please update; if that line appears in your log, post it here and reopen. It tells us exactly which matrix your cards can't tile. RunSTART-HERE.bat(Linux:./setup.sh) once to update.