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.
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.
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.
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 commit7afdd5ccf388f1d21e4c77778cbca5b03cd7a62c), defaultdu=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 inprompts/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_updateonly uses the nativegated_delta_kernelwhennot 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 -> f32and 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.binagainstlatent_dense_q8.binon 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