mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3577] [Engine] MoE fused layout buffer too small during prefill — inference fails on short prompts (Strata 0.2.1) #1472
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#1472
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 @yarik1390 on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3577
In Strata 0.2.1, inference consistently fails during the prefill stage when running a MoE model with IQ3_S (GSQ-RCO) quantization.
Even very short prompts such as "Hello", "Hi Strata", or "What are your features?" trigger an error indicating that the fused layout's Mixture-of-Experts (MoE) buffers are too small.
The model loads and the UI indicates that the available memory should be sufficient, but the engine fails to generate a response.
Environment
Steps to Reproduce
Actual Behavior
Inference fails with errors such as:
The same error occurs again on subsequent attempts.
Another attempt produces:
The application displays:
No response is generated.
Expected Behavior
Additional Observations
Possible Cause
This may indicate a buffer allocation or prefill chunk-sizing issue in the fused MoE execution path, potentially related to memory allocation across GPU and system RAM.
It would be useful to verify whether the engine can dynamically resize MoE buffers or reduce the prefill chunk size when the expert path exceeds the allocated buffer capacity.
Attachments
Screenshots showing:
@moses-sun commented on GitHub (Oct 28, 2026):
A four-card rig here (2x RTX 5080 + 2x RTX 5070 Ti, IQ3_S native pack,
--layer-split 12,25,37) hit the same line, and thecause is a cached "which card is current" in
fused_ring()(src/prefill/prefill.cpp):native_supported()answers forthe card that is current at the call — at 12.0 with
STRATA_PF_FUSEDunset it wants 80+ SMs — so a split whose first stageis the 5080 shrank the MoE buffers for every stage, and every stage on a card below that then ran MMQ inside them, exactly
... too small for layer N's expert path at a chunk of 8192 tokens. Your 3060 is sm_86 and would be that stage.Not confirmed on your hardware: I could not reproduce on a 5080 + 3060 pair. The candidate change is #4380 (the ring's
decision cached per device instead of once); the chunk reduction you suggest is the other way around, and it stays the
engine's own behaviour when the buffers really do not fit.
@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.