mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #479] Pascal (sm_61) build fails in v1.1.27: set_mix_kernel exceeds the 4 KB kernel-parameter limit ("Formal parameter space overflowed") #193
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#193
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 @autemetry-james on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/479
On a Tesla P40,
./setup.shon v1.1.27 stops in step 4 (the engine build). Since v1.1.14 the setup accepts Pascal,but the EXL3 mixed-layer kernel no longer builds there.
Setup
4615f34),./setup.sh --plain --yes --download-model --model Maya-S24 --gpu 0 --context 32768 --no-vision-arch=nativeand adds-Xptxas -dlcm=caas expectedError (6 instantiations, all
set_mix_kernel<cb, gate_up>):The setup's automatic retry fails in the same place.
Cause (as far as I can tell):
set_mix_kerneltakesSetArgsandKMix(~1.8 KB for 32 classes) by value, whichcomes to 5,828 bytes of parameters. CUDA 12.1+ allows 32,764 bytes on Volta and newer but still 4,096 on Pascal. The
mixed-layer path seems to have arrived after Pascal support (#212 / v1.1.14), so a 6.x build hadn't hit it yet.
wmma_set_mix_kernelhas the same signature but is only instantiated underSTRATA_USE_HIP.Local workaround (works for GGUF models): leave the kernel out of Pascal builds. EXL3 quants aren't offered on
Pascal anyway. The CMake Pascal branch adds
add_compile_definitions(MAYA_NO_EXL3_MIX); inexl3.cutheset_mix_kerneltemplate and its two launches inset_gate_up/set_downgo inside#if !defined(MAYA_NO_EXL3_MIX),with an error message in the
#else. The full diff is 12 lines (below). With it, the engine builds and Maya-S24 runs:6.4 tok/s decode and 162 / 203 tok/s prefill (2k / 8k) on one P40 (speed report to follow separately).
A cleaner fix might be to pass
KMixthrough device or constant memory (or by pointer), so the kernel buildseverywhere, or to guard on the architecture as above.
Diff
@mw00 commented on GitHub (Oct 27, 2026):
Thank you for the exact diagnosis and the workaround. v1.1.30 fixes it at the source:
set_mix_kernelnow takes only the six fields ofSetArgsit reads instead of the whole struct, so its parameters are about 1.9 KB instead of 5.8 KB and it compiles for Pascal again. Nothing is stubbed out. On V100 and newer the kernel's results are bit-identical to v1.1.29 (we compared the output bits of the mixed-layer test). In an sm_61 build, v1.1.29'sexl3.custops with your exact error, while v1.1.30's compiles and the GLM engine (maya) links. You can drop the local patch after updating; a quick note on how the P40 build goes would be welcome.