mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1867] --mtp-q4 all/head ends the engine on a GSQ-RCO IQ2_XS pack: the IQ4_XS draft head is smaller than its Q4_0 copy (mtp: writing the draft head) #738
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#738
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 @renaudrenaud on GitHub (Oct 10, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1867
Summary
--mtp-q4 all(orhead) stops the engine at start-up on an ISTA-DASLab GSQ-RCO IQ2_XS pack. The last engine line isstrata serve: mtp: writing the draft head, and the server then reportsthe engine exited before it was ready. The same build with the same flags runs fine on Unsloth UD-Q4_K_XL.Cause (from reading
src/core/mtp.cpp)MtpDrafter::make_q4_headre-quantizes the draft head's subset rows to Q4_0 and writes them back in place intodhead_, on the assumption that "the Q4_0 rows replace the subset in place (they are smaller)". That holds when the model'soutput.weightis Q8_0 (UD-Q4_K_XL: 8.5 bpw). It does not hold for the GSQ-RCO IQ2_XS file, whoseoutput.weightis IQ4_XS (4.25 bpw), which is smaller than Q4_0 (4.5 bpw):output.weight38bb39e)The
cudaMemcpy(dhead_, dst.data(), dst.size(), ...)therefore writes past the allocation, fails, andmake_q4_headreturnsmtp: writing the draft head, which ends the engine.Reproduce
fb58e0d), HIP build for gfx1151 (-DSTRATA_ENABLE_HIP=ON -DSTRATA_PREFILL_MMQ=ON), ROCm 7.14.1 TheRock, Ryzen AI Max+ 395 / Radeon 8060S, 128 GB, Ubuntu 26.04, kernel 7.0. The cause is in shared code, so CUDA is probably affected the same way (not tested).tools/iq_pack.py --gguf Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf --out packs/iq2_xs.--pack packs/iq2_xs --native ...IQ2_XS-00001-of-00002.gguf --ple-gguf ...IQ2_XS-00002-of-00002.gguf --mmap-experts --expert-cache auto --prefill 16384 --spec 4 --spec-min-p 0.5 --mtp mtp/rt --max-context 262144 --kv int8 --lookup-chain 3 --mtp-q4 all --mtp-window 8192.strata mtp: draft head over 106299 tokens (137.9 MiB)/strata serve: mtp: writing the draft head.--mtp-q4 allstart and serve (39-42 tok/s);--lookup-chain,--mtp-window,--prefill 16384and the section-5 environment switches ofdocs/STRIX_HALO.mdare not involved.Suggested fix
In
make_q4_head, whendst.size() > src.size(), either allocate a new device buffer for the Q4_0 head (and free the old one), or keep the head in its own format and say so (--mtp-q4: the head is already <= 4.5 bpw (IQ4_XS), kept as is) instead of ending the engine. The second option seems closer to what--mtp-q4is for: an IQ4_XS head is already as small as Q4_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.