Edge0-120B on an M3 Max

We ported Edge0-120B to MLX. The model is a 120B-total, 8.64B-active latent mixture of experts, Edge0/Edge0-120B-q3k, derived from Qwen/Qwen3.8-Flash-Next. We did not install Edge0's own engine. Every number below is from this port, on an M3 Max with 128 GB, with Q4_0 as the default.

The MLX port was built by the Gemini 4 Neon coding agent.

Weights: austindixson/Edge0-120B-MLX and mlx-community/Edge0-120B-MLX.

The dequantizer matches gguf.quants.dequantize. Max abs error is 0.0 on Q3_K, IQ4_NL, Q8_0, Q4_0, and Q2_0 (8/8 tests). The fused Metal MoE path still has a max relative error of 2.06e-7 / 3.05e-7. All 48 layers are finite on a 17-token probe, with no NaNs. That sanity run loaded in 21.41 s. A later Q4_0 cold load in the speed bench was 22.67 s. Those are two different timings.

WikiText-2 test perplexity is 5.9392 at Q8_0 and 6.0271 at Q4_0, on 32,752 scored tokens (16 windows of 2048). 6.0271 - 5.9392 = +0.0879, which is +1.48%. There is a published Qwen3.8-Flash-Next BF16 number of 3.273, but it uses a different chunking protocol (100 × 512), so I am not treating the gap as a direct quality drop.

On the eight-prompt greedy suite, strict substring checks pass 7/8, and all eight answers are factually right. The miss is science_physics: the model explains wavelength-dependent scattering and never says the word "Rayleigh".

Decode is greedy, 512 output tokens, Q4_0, n=3. Agent goes from 27.08 ± 0.57 tok/s with no MTP to 54.27 ± 0.77 tok/s with MTP k=3 (73.1% accept). 54.27 / 27.08 = 2.00×. Chat goes from 24.46 ± 1.26 tok/s to 39.67 ± 1.73 tok/s with MTP k=4, a +15.21 tok/s gain, which is +62.2% (39.67 / 24.46 = 1.62×). Chat's best number here is k=4, not k=3.

Bar chart of our greedy Q4_0 decode on an M3 Max 128 GB, 512 output tokens, n=3. Agent: 27.08 plus or minus 0.57 tok/s with no MTP, 54.27 plus or minus 0.77 tok/s with MTP k=3 at 73.1% accept, 54.27 / 27.08 = 2.00x. Chat: 24.46 plus or minus 1.26 tok/s with no MTP, 39.67 plus or minus 1.73 tok/s with MTP k=4 at 44.2% accept, +62.2%, 39.67 / 24.46 = 1.62x.
Fig. 1. Decode on an M3 Max with 128 GB. Greedy, Q4_0, 512 output tokens, n=3. Agent MTP is k=3. Chat MTP is k=4. These are our measurements from the MLX port.

Prefill, BF16 KV, 4096-token chunks: 413.7 ± 1.2 tok/s at 4K (TTFT 9.901 ± 0.029 s, n=3) and 348.2 ± 8.9 tok/s at 16K (n=2). 348.2 / 413.7 = 0.842, which is -15.8%. Peak MLX memory is 46.30 GB at 4K, and 46.18 GB at 16K.

Bar chart of our Q4_0 prefill on an M3 Max 128 GB, BF16 KV, chunk size 4096. 4K: 413.7 plus or minus 1.2 tok/s, TTFT 9.901 plus or minus 0.029 s, n=3, peak 46.30 GB. 16K: 348.2 plus or minus 8.9 tok/s, TTFT 47.069 plus or minus 1.208 s, n=2, peak 46.18 GB. 348.2 / 413.7 = 0.842, which is -15.8%.
Fig. 2. Prefill by context length on an M3 Max with 128 GB. BF16 KV, chunk_size 4096, Q4_0. These are our measurements from the MLX port. Peak MLX memory stays nearly flat from 4K to 16K.

Edge0 published Metal numbers on an M2 Ultra (800 GB/s), which has twice the memory bandwidth of this M3 Max (400 GB/s). The engine, the prompts, and the hardware all differ, so treat the comparison as cross-hardware context. Agent decode is 54.27 / 63.0 = 86.1%. Prefill at 4K is 413.7 / 867.6 = 47.7%. Prefill is the open gap. The files do not give a URL for those published figures, so I am crediting them as published Edge0 Metal on an M2 Ultra, without a link.

Two-panel comparison. Left, prefill at 4K: our MLX port on an M3 Max 128 GB is 413.7 tok/s, published Edge0 Metal on an M2 Ultra is 867.6 tok/s, 413.7 / 867.6 = 47.7%. Right, agent decode at 512 tokens with MTP k=3: 54.27 tok/s vs 63.0 tok/s, 54.27 / 63.0 = 86.1%. Caption in the figure states this is cross-hardware context, not a same-hardware baseline, and that the files give no URL for the published M2 Ultra numbers.
Fig. 3. Our MLX port on an M3 Max with 128 GB versus published Edge0 Metal figures on an M2 Ultra. The M2 Ultra has 2.0× the memory bandwidth (800 vs 400 GB/s), and the engine and prompt suite also differ, so this is cross-hardware context. The source files do not give a URL for the published Metal numbers.

I have not tested past 16K, or any sampling besides greedy, or a token-by-token trace against Edge0's engine. Under bfloat16, MTP verify matches exactly on 4/8 of the coherence prompts and stays semantically equivalent on the other four.

Change log

  • Hardware: Apple M3 Max MacBook Pro, 128 GB, 400 GB/s memory bandwidth. MLX 0.32.5 (mlx-metal 0.32.5), Python 3.13.15.
  • Model: Edge0/Edge0-120B-q3k (Hugging Face commit 7afdd5ccf388f1d21e4c77778cbca5b03cd7a62c), default du=Q4_0, MTP draft head on where noted.
  • Prompts: speed benches from src/bench_speed.py (chat and agent decode at 512 and 2048 tokens, prefill at 4K and 16K); WikiText-2 test split, 16 windows of 2048 tokens; 8-prompt greedy coherence suite in prompts/coherence_prompts.json; 17-token layer-sanity probe.
  • Settings: greedy decoding (temperature 0, batch_size 1); decode n=3 at 512 tokens and n=1 at 2048; prefill n=3 at 4K and n=2 at 16K, chunk_size 4096, BF16 KV unless noted.

Problem: GDN prefill ran in the slow Python loop because the model was left in training mode

Change: Call model.eval() so gated_delta_update dispatches Apple's native Metal kernel

  • Status: kept
  • Rationale: MLX's gated_delta_update only uses the native gated_delta_kernel when not self.training.
  • Predicted: Turning training off would cut per-layer GDN time and raise prefill throughput.
  • Observed: GDN time went from 86 ms/layer to 3.5 ms/layer. 4K prefill moved from 138.6 tok/s (chunk=512, Python GDN fallback) to 203.5 tok/s (chunk=4096, before eval()) to 413.7 tok/s after model.eval() plus coalesced Q3_K/IQ4_NL dequant (n=3 mean).

Problem: RMSNorm weights stayed float32 and upcasted the whole graph

Change: Cast norm weights to bfloat16

  • Status: kept
  • Rationale: Loading GGUF float32 RMSNorm weights without a cast caused bf16 * f32 -> f32 and promoted activations in all 48 layers.
  • Predicted: Casting the already-folded norm weights to bfloat16 would drop the graph back to bf16 and raise decode speed.
  • Observed: Non-MTP decode went from 16.3 tok/s to 26.6 tok/s.

Problem: Q8_0 D/U was slower to load and used more RAM, for a small PPL gain

Change: Default the latent D/U projections to Q4_0

  • Status: kept
  • Rationale: Compare latent_dense_q4.bin against latent_dense_q8.bin on the same machine.
  • Predicted: Q4_0 would load faster and use less RAM, with some PPL cost.
  • Observed: Cold load went from 76.17 s to 22.67 s (-70.2%). Active RAM dropped 1.26 GB (38.92 GB to 37.66 GB). WikiText-2 PPL went from 5.9392 to 6.0271 (6.0271 - 5.9392 = +0.0879, +1.48%). Chat 512 MTP k=4 went from 37.64 tok/s to 39.67 tok/s.

Problem: Decode without MTP sat in the mid-20s tok/s

Change: Enable the 1.26B Q2_0 MTP speculative draft head

  • Status: kept
  • Rationale: The model ships a draft head. Measure it on the chat and agent 512-token greedy benches, n=3, Q4_0.
  • Predicted: Accepted draft tokens would raise decode tok/s, more so on the agent prompts if accept rate was higher.
  • Observed: Agent went from 27.08 ± 0.57 tok/s to 54.27 ± 0.77 tok/s at MTP k=3 (73.1% accept), 54.27 / 27.08 = 2.00×. Chat went from 24.46 ± 1.26 tok/s to 39.67 ± 1.73 tok/s at MTP k=4 (44.2% accept), +15.21 tok/s, +62.2% (39.67 / 24.46 = 1.62×).

Tags: Local inference MLX macOS Benchmarks Speculative decoding Quantization

All ship logs