[GH-ISSUE #2504] Metal: an MTP draft layer with Q4_0 experts stops the engine at the first request ("no function moe_gu_2_32_1_4") #1018

Closed
opened 2026-11-04 01:47:47 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @joesinvestments on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2504

What happened

tools/mtp_pack.py offers --experts q2_0 | q4_0 | q8_0 (its header names mtp-q4_0.gguf the acceptance comparison
arm). On the Metal engine a Q4_0 draft layer loads, then the engine exits with code 3 at the first request, on every pack
we tried (IQ3_XXS, IQ3_S, UD-Q4_K_XL). The Q2_0 layer that setup writes and a Q8_0 layer built the same way both work.

The log names the cause: the Metal library has no MoE gate/up kernel for that expert type and tile:
mtl: no function moe_gu_2_32_1_4 Function moe_gu_2_32_1_4 was not found in the library.

If Q4_0 is not meant for Metal, a refusal at load (as for Qwen3.6) would be friendlier than an exit at the first request.

Steps:

.venv/bin/python tools/mtp_pack.py --src <Strata-data>/mtp --experts q4_0 --out <Strata-data>/mtp/mtp-q4_0.gguf
STRATA_METAL_MTP_GGUF=<Strata-data>/mtp/mtp-q4_0.gguf  (config args: --mtp <Strata-data>/mtp/rt --spec 3)

Then any chat request. With mtp-q8_0.gguf the same config answers normally, and its output equals the no-MTP output
token for token on our three test prompts.

Strata version, GPU, OS

Strata v0.1.44 (ed4773eb) built from source with ./setup.sh, Metal engine. Mac Studio M5 Max (40-core GPU), 64 GB,
macOS 27.0.1. Packs streaming from the SSD (STRATA_METAL_STREAM=1).

Engine log

strata metal: MTP draft layer from <Strata-data>/mtp/mtp-q4_0.gguf (1.60 GB, 9 norms folded), draft head over 106299 tokens
strata metal stream: resident footprint after the fill: the process holds 34.6 GB (36.3 GB resident), planned 35.0 GB, cap 35.0 GB
mtl: no function moe_gu_2_32_1_4 Function moe_gu_2_32_1_4 was not found in the library
[strata] the engine stopped unexpectedly (exit code 3).
Originally created by @joesinvestments on GitHub (Oct 14, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2504 ### What happened `tools/mtp_pack.py` offers `--experts q2_0 | q4_0 | q8_0` (its header names `mtp-q4_0.gguf` the acceptance comparison arm). On the Metal engine a Q4_0 draft layer loads, then the engine exits with code 3 at the first request, on every pack we tried (IQ3_XXS, IQ3_S, UD-Q4_K_XL). The Q2_0 layer that setup writes and a Q8_0 layer built the same way both work. The log names the cause: the Metal library has no MoE gate/up kernel for that expert type and tile: `mtl: no function moe_gu_2_32_1_4 Function moe_gu_2_32_1_4 was not found in the library`. If Q4_0 is not meant for Metal, a refusal at load (as for Qwen3.6) would be friendlier than an exit at the first request. Steps: ``` .venv/bin/python tools/mtp_pack.py --src <Strata-data>/mtp --experts q4_0 --out <Strata-data>/mtp/mtp-q4_0.gguf STRATA_METAL_MTP_GGUF=<Strata-data>/mtp/mtp-q4_0.gguf (config args: --mtp <Strata-data>/mtp/rt --spec 3) ``` Then any chat request. With `mtp-q8_0.gguf` the same config answers normally, and its output equals the no-MTP output token for token on our three test prompts. ### Strata version, GPU, OS Strata v0.1.44 (ed4773eb) built from source with `./setup.sh`, Metal engine. Mac Studio M5 Max (40-core GPU), 64 GB, macOS 27.0.1. Packs streaming from the SSD (`STRATA_METAL_STREAM=1`). ### Engine log ``` strata metal: MTP draft layer from <Strata-data>/mtp/mtp-q4_0.gguf (1.60 GB, 9 norms folded), draft head over 106299 tokens strata metal stream: resident footprint after the fill: the process holds 34.6 GB (36.3 GB resident), planned 35.0 GB, cap 35.0 GB mtl: no function moe_gu_2_32_1_4 Function moe_gu_2_32_1_4 was not found in the library [strata] the engine stopped unexpectedly (exit code 3). ```
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. 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:6271095976 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. 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#1018
No description provided.