[GH-ISSUE #3577] [Engine] MoE fused layout buffer too small during prefill — inference fails on short prompts (Strata 0.2.1) #1472

Closed
opened 2026-11-04 01:51:32 +07:00 by bsakaguchi · 2 comments
Owner

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

  • Strata version: 0.2.1
  • GPU 1: NVIDIA RTX 5080
  • GPU 2: NVIDIA RTX 3060
  • Memory configuration: RAM + VRAM
  • Quantization: IQ3_S (GSQ-RCO)
  • Model memory requirement shown: 51.3 GB (RAM + VRAM)
  • Available memory reported by UI: 78 GiB
  • Multi-GPU configuration available: RTX 5080 + RTX 3060 + RAM (layer split)

Steps to Reproduce

  1. Launch Strata 0.2.1.
  2. Load the MoE model with IQ3_S (GSQ-RCO) quantization.
  3. Start a chat session.
  4. Send a simple prompt such as "Hello".
  5. Observe the error during the prefill stage.
  6. Retry with another short prompt.

Actual Behavior

Inference fails with errors such as:

Prefill: the fused layout's MoE buffers are too small for layer 30's expert path at a chunk of 8192 tokens

The same error occurs again on subsequent attempts.

Another attempt produces:

Prefill: the fused layout's MoE buffers are too small for layer 34's expert path at a chunk of 7168 tokens

The application displays:

Try sending the message again.

No response is generated.

Expected Behavior

  • The model should successfully process short prompts and generate responses.
  • MoE expert buffers should be allocated correctly for the selected prefill chunk size.
  • If the requested chunk size exceeds available buffer capacity, the engine should automatically reduce the chunk size or use a safe fallback instead of aborting inference.

Additional Observations

  • The issue occurs even with extremely short input prompts.
  • The failure references large internal prefill chunks (8192 and 7168 tokens), despite the actual prompts containing only a few tokens.
  • Different failures reference different MoE layers (30 and 34).
  • The UI reports sufficient available memory to load the model.
  • Repeated attempts do not resolve the problem.

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:

  1. Repeated MoE buffer errors during chat inference.
  2. The selected IQ3_S quantization and reported memory requirements.
  3. The RTX 5080 + RTX 3060 + RAM layer-split configuration option.
Image Image Image
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 - **Strata version:** 0.2.1 - **GPU 1:** NVIDIA RTX 5080 - **GPU 2:** NVIDIA RTX 3060 - **Memory configuration:** RAM + VRAM - **Quantization:** IQ3_S (GSQ-RCO) - **Model memory requirement shown:** 51.3 GB (RAM + VRAM) - **Available memory reported by UI:** 78 GiB - **Multi-GPU configuration available:** RTX 5080 + RTX 3060 + RAM (layer split) ## Steps to Reproduce 1. Launch Strata 0.2.1. 2. Load the MoE model with IQ3_S (GSQ-RCO) quantization. 3. Start a chat session. 4. Send a simple prompt such as "Hello". 5. Observe the error during the prefill stage. 6. Retry with another short prompt. ## Actual Behavior Inference fails with errors such as: ```text Prefill: the fused layout's MoE buffers are too small for layer 30's expert path at a chunk of 8192 tokens ``` The same error occurs again on subsequent attempts. Another attempt produces: ```text Prefill: the fused layout's MoE buffers are too small for layer 34's expert path at a chunk of 7168 tokens ``` The application displays: ```text Try sending the message again. ``` No response is generated. ## Expected Behavior - The model should successfully process short prompts and generate responses. - MoE expert buffers should be allocated correctly for the selected prefill chunk size. - If the requested chunk size exceeds available buffer capacity, the engine should automatically reduce the chunk size or use a safe fallback instead of aborting inference. ## Additional Observations - The issue occurs even with extremely short input prompts. - The failure references large internal prefill chunks (8192 and 7168 tokens), despite the actual prompts containing only a few tokens. - Different failures reference different MoE layers (30 and 34). - The UI reports sufficient available memory to load the model. - Repeated attempts do not resolve the problem. ## 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: 1. Repeated MoE buffer errors during chat inference. 2. The selected IQ3_S quantization and reported memory requirements. 3. The RTX 5080 + RTX 3060 + RAM layer-split configuration option. <img width="681" height="621" alt="Image" src="https://github.com/user-attachments/assets/c0956b74-dc3d-43c1-9fb2-d8741d504d49" /> <img width="428" height="38" alt="Image" src="https://github.com/user-attachments/assets/93f6abc6-53e5-4f0b-9bd0-a533e2250eaa" /> <img width="420" height="66" alt="Image" src="https://github.com/user-attachments/assets/4981d1ce-4444-41af-998d-909818aa2f5a" />
Author
Owner

@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 the
cause is a cached "which card is current" in fused_ring() (src/prefill/prefill.cpp): native_supported() answers for
the card that is current at the call — at 12.0 with STRATA_PF_FUSED unset it wants 80+ SMs — so a split whose first stage
is 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.

<!-- gh-comment-id:6457388285 --> @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 the cause is a cached "which card is current" in `fused_ring()` (`src/prefill/prefill.cpp`): `native_supported()` answers for the card that is current at the call — at 12.0 with `STRATA_PF_FUSED` unset it wants 80+ SMs — so a split whose first stage is 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.
Author
Owner

@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:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6659565640 --> @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: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1472
No description provided.