Skip to content

docs(moe): document MLXCEL_FUSED_MOE flags and per-model gains (#268) - #283

Merged
inureyes merged 2 commits into
mainfrom
docs/fused-moe-flags
Jun 14, 2026
Merged

inureyes merged 2 commits into
mainfrom
docs/fused-moe-flags

Conversation

@inureyes

Copy link
Copy Markdown
Member

Summary

Documents the fused decode-MoE feature now that steps 2b-3b are merged (#276, #278, #279, #280, #281). Adds a Usage and flags section to docs/benchmark_results/fused-moe-decode-kernel-design.md:

  • The env flags: MLXCEL_FUSED_MOE (enable), MLXCEL_FUSED_MOE_SGY (simdgroups/threadgroup), MLXCEL_FUSED_MOE_RELU2 (squared-ReLU path).
  • The measured per-model decode gains on M1 Ultra: gemma4 +13%, qwen3.5/3.6 +8.7%, dots.llm1 +4.7%, qwen3-30b +3.5%, qwen1.5-moe ~par, nemotron-h ~0%.
  • The f16-jitter-class parity caveat (the kernel is within RMS < 5e-3, not bit-exact; deep hybrids can flip near-tie greedy tokens, the accepted numerical consequence of the fusion).
  • The list of covered models.

Roadmap updated: steps 3-4 marked done; step 5 added (validate on M5, then decide on default-on, tracked in #282).

Docs only, no behavior change.

Refs #268, #282.

inureyes added 2 commits June 14, 2026 19:06
…ollow-up (#268)

Add a usage/flags section to the fused decode-MoE design doc: the
MLXCEL_FUSED_MOE / MLXCEL_FUSED_MOE_SGY / MLXCEL_FUSED_MOE_RELU2 env vars, the
measured per-model decode gains on M1 Ultra (gemma4 +13%, qwen3.5 +8.7%, dots
+4.7%, qwen3-30b +3.5%, nemotron ~0%), the f16-jitter-class parity caveat, and
the list of covered models. Mark roadmap steps 3-4 done (#278/#279/#280/#281)
and add step 5: validate on M5, then decide on flipping the flag default-on.
@inureyes inureyes added type:docs Documentation improvements or additions area:docs User and developer documentation area:models Model architectures, weights, loading, metadata labels Jun 14, 2026
@inureyes
inureyes merged commit d818c22 into main Jun 14, 2026
5 checks passed
@inureyes
inureyes deleted the docs/fused-moe-flags branch June 14, 2026 10:08
@inureyes inureyes added this to the 0.3 milestone Jun 21, 2026
@inureyes inureyes self-assigned this Aug 31, 2026
@inureyes inureyes added the status:done Completed label Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs User and developer documentation area:models Model architectures, weights, loading, metadata status:done Completed type:docs Documentation improvements or additions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant