mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4266] [Engine] TQ MMQ overlay fails to build against current upstream GGML (loader x_gate parameter) #1876
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#1876
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 @Tsury on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4266
Follow-up to #3217. With a current upstream GGML through
STRATA_GGML_DIR, the trellis MMQ overlay passes its configure-time anchor checks but the CUDA build fails. The overlay's TQ loader no longer matches upstream's loader type.Environment: Strata v0.2.6
4b9e05a2(engine 0.1.51), upstream llama.cpp b1191063b4b303, Linux, CUDA 13.4, SM120. This is an override-compatibility report; the pinned3cf03257default is not affected. No weights are needed to reach the error.Cause
llama.cpp c49edf096 ("CUDA: fuse FFN gate/up matmuls and GLU in MMQ with interleaved gate/up rows", ggml-org/llama.cpp#29948) added a gate pointer to the loader type in
ggml/src/ggml-cuda/mmq.cuh:Every upstream loader now takes
x_gate(for exampleggml_cuda_mmq_load_tiles_iq2_xsignores it withGGML_UNUSED(x_gate)). Strata'sggml_cuda_mmq_load_tiles_tqinthird_party/ggml-tq/tq-mmq-tiles.cuhstill has the old five-parameter form, so the two TQ cases thatcmake/strata_ggml_tq_overlay.cmakeinserts intoggml_cuda_mmq_get_util_funcscannot build aggml_cuda_mmq_util_funcs.Error
The first target that instantiates the overlay is
src/prefill/mmq_nvfp4_w4a8.cu(64 errors of one kind):Lines 685 and 863 of the generated
mmq.cuhare the insertedGGML_TYPE_TQ2_T/TQK6/TQK7cases (DP4A and MMA layouts).Suggested fix
Give the TQ loader the gate parameter when the tree's loader type has it, and ignore it as upstream does. The overlay script already detects the precision signature (
_sig_new/_sig_old); the same check onconst char * __restrict__ x_gatein theggml_cuda_mmq_load_tiles_ttypedef could select the signature. Alternatively, the anchor check could include the loader typedef so that an unknown tree turns the overlay off with its normal message instead of failing the build.Workaround
-DSTRATA_MMQ_TQ_OVERLAY=OFFbuilds and runs normally for non-trellis models (verified here with Qwen3.8 Flash-Next IQ3_S; trellis prompts then use the FP16 path, as the option describes).@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.