Dispatch AI

4 min read · Dec 6, 2026

llama.cpp b13030 Metal F8_E4M3: Qwen3.8-27B-NVFP4 Prefill Jumps From 4.5 to 340 t/s, Yet Hardware FP8 Waits for macOS 27

Mixed NVFP4 and FP8 checkpoints used to choke Apple Silicon with hundreds of CPU fallbacks. Georgi Gerganov's PR #33533 fixes that with a 256-entry threadgroup LUT that beats Q8_0 in single-stream decode, even while native hardware FP8 tensor ops stay gated on MSL 4.1 and macOS 27.

4 min read Checked Dec 6, 2026 5 primary sources

All kernel TFLOPS figures, graph-split counts, validation totals, commit hashes, and hardware telemetry were extracted directly from ggml-org/llama.cpp Pull Request #33533 and Release b13030 on December 6, 2026.

Editorial hardware still life of a CNC-machined silver aluminum silicon block beside a brass micro-pin lookup grid and emerald prism on dark slate, with a telemetry card showing Qwen3.8-27B-NVFP4 Metal prefill rising from 4.5 to 340 t/s in llama.cpp b13030
Photo & Graphic: The Benchmarque (ggml-org/llama.cpp PR #33533 & release b13030 primary audit, Dec 6, 2026) PRIMARY VISUAL

The short version

VERDICT // SUMMARY

Apple Silicon users running mixed NVFP4 and OCP FP8 (F8_E4M3) models should update to llama.cpp b13030 immediately. The patch cuts Qwen3.8-27B-NVFP4 graph splits from 290 to 2, raises prompt processing from 4.5 t/s to ~340 t/s, lifts generation from ~3 t/s to ~25 t/s, and makes F8_E4M3 beat Q8_0 across 1 to 5 decode rows on M5 Max. Do not expect hardware-native FP8 tensor acceleration yet, however: Metal still dequantizes through threadgroup memory at MSL 4.0, leaving 512-row tensor prefill at ~97% of Q8_0 until MSL 4.1 and macOS 27 arrive.

KEY NUMBERS // VERIFIED READOUT 4 METRICS AUDITED
  • Qwen3.8-27B-NVFP4 prefill

    4.5 to ~340 t/s

    Full Metal execution eliminates CPU bounce-backs; generation rises from ~3 to ~25 t/s.

    Commit 0826430f

  • Graph splits

    290 to 2

    Native Metal kernels now cover MUL_MAT, MUL_MAT_ID, GET_ROWS, SET_ROWS, CPY, ADD, and FLASH_ATTN_EXT.

    llama.cpp PR #33533

  • M5 Max single-row decode

    1.42 TFLOPS

    Edges Q8_0 (1.32 TFLOPS) via a 256-entry half LUT staged once per threadgroup.

    test-backend-ops perf

  • 512-row tensor prefill

    36.90 TFLOPS

    Sits at ~97% of Q8_0 (38.10 TFLOPS); native hardware FP8 tensor ops wait for MSL 4.1 / macOS 27+.

    PR #33533 TODO

The bottom line: llama.cpp b13030 (merged via PR #33533 at 8:06 AM ET on December 6) lands native Apple Silicon Metal kernels for GGML_TYPE_F8_E4M3 (OCP FP8 E4M3), dropping Qwen3.8-27B-NVFP4 graph splits from 290 to 2 and lifting prompt processing from 4.5 t/s to ~340 t/s.
Why it matters: Modern open-weight models increasingly ship hybrid NVFP4 plus F8_E4M3 layers. Until today, every unmapped FP8 tensor forced Metal back onto the CPU, crushing Mac Studio and MacBook Pro throughput to single-digit token speeds.

What happened: verified vs. unconfirmed

Two splits, not 290. That single scheduling change explains why mixed-precision checkpoints suddenly work on Apple Silicon.

When llama.cpp previously added NVFP4 support, checkpoints that kept sensitive tensors in 8-bit F8_E4M3 still hit an unsupported-op wall inside ggml-metal. Each unsupported tensor split the compute graph and bounced activations back to the CPU. Across 18 commits (+1,000 / -89 lines touching 17 files), Georgi Gerganov wired F8_E4M3 across MUL_MAT, MUL_MAT_ID, GET_ROWS, SET_ROWS, CPY, DUP, CONT, ADD/SUB/MUL/DIV, and FLASH_ATTN_EXT (fa_f8_e4m3.metal and fa_vec_f8_e4m3.metal).

  • Confirmed (Primary Source): Commit 0826430f documents Qwen3.8-27B-NVFP4 executing end-to-end on Metal with graph splits dropping from 290 to 2, prompt processing jumping from 4.5 t/s to ~340 t/s, and token generation rising from ~3 t/s to ~25 t/s. Backend unit validation passed 11,014 checks with zero failures (556/556 F8_E4M3, 2,952/2,952 MUL_MAT, 1,296/1,296 MUL_MAT_ID, 499/499 GET_ROWS,CPY, 107/107 ADD, and 5,604/5,604 FLASH_ATTN_EXT).
  • Confirmed (Local AI Engineering Disclosure): In the PR’s mandatory AI disclosure block, Gerganov logged that the entire 17-file Metal kernel patch was built locally through dsh:llama.cpp on a Mac Studio, M5 Ultra, 256GB running ggml-org/DeepSeek-V4.1-Flash-1017-GGUF across three sessions (3.0h, 5.5h, and 1.3h wall clock; 409.7 to 475.2 tok/s prompt eval and 51.3 to 56.5 tok/s decode).
  • Still unconfirmed / watchlist: PR #33533 publishes kernel TFLOPS only on M5 Max and M2 Ultra, plus the single Qwen3.8-27B-NVFP4 end-to-end run. Independent prompt and decode numbers on base M4, M4 Pro, and M4 Max laptops—as well as thermal stability during long context runs—have not yet been posted.

By the numbers: M5 Max and M2 Ultra kernel telemetry

On M5 Max (test-backend-ops perf, m=4096, k=14336), the new F8_E4M3 kernels outpace Q8_0 across every low-batch decode shape (rows=1 through rows=5) before falling slightly behind at wider batches and 512-row tensor prefill.

Hardware & kernel shape F8_E4M3 throughput Q8_0 baseline Practical takeaway
M5 Max · 1 row (mul_mv decode) 1.42 TFLOPS 1.32 TFLOPS F8 wins single-stream decode
M5 Max · 2 rows (MMA small-batch) 2.27 TFLOPS 2.03 TFLOPS Largest relative edge for F8
M5 Max · 3 rows (MMA small-batch) 3.20 TFLOPS 3.07 TFLOPS F8 ahead on speculative/small batch
M5 Max · 4 rows (MMA small-batch) 4.39 TFLOPS 4.01 TFLOPS F8 holds clear margin at 4 rows
M5 Max · 5 rows (MMA small-batch) 5.30 TFLOPS 5.00 TFLOPS Final row count where F8 leads
M5 Max · 8 rows (MMA small-batch) 7.26 TFLOPS 7.71 TFLOPS Q8_0 pulls ahead at 8 rows
M5 Max · 512 rows (tensor prefill) 36.90 TFLOPS 38.10 TFLOPS ~97% of Q8_0 (up from 35.09)
M2 Ultra · legacy mat-mat (mul_mm) 17.85 TFLOPS 17.80 TFLOPS Up from 13.65 TFLOPS via LUT

Older Apple Silicon benefits too. Commit 8fe6fb6c lifts the legacy kernel_mul_mm path on an M2 Ultra from 13.65 to 17.85 TFLOPS, matching Q8_0 (17.80 TFLOPS). For Mixture-of-Experts models, commit 0f2d0d46 adds F8_E4M3 indirect tensor kernels (MUL_MAT_ID) that run about 1.5x faster than the non-tensor path, with the bfloat lookup path contributing roughly 5% on MUL_MAT_ID and 11-18% on MUL_MAT.

How the 256-entry threadgroup LUT flips Metal decode

Why does an 8-bit floating-point format beat Q8_0 at n=1 through n=5 without dedicated hardware FP8 instructions?

Two physical mechanisms do the work. First, an F8_E4M3 byte has only 256 possible bit patterns, so staging a 256-entry half (FP16) lookup table once per threadgroup inside fast on-chip threadgroup memory replaces branch-heavy scalar f8_e4m3_to_fp32 bit-decoding on every weight load. Second, Q8_0 stores a 2-byte FP16 scale factor for every 32 weights, whereas raw F8_E4M3 skips that per-block scale overhead. Once commit 38519156 tuned the mat-vec kernel to 4 simdgroups and 8 values per thread—matching the mature Q8_0 memory layout—lower byte traffic per weight let F8_E4M3 pull ahead in bandwidth-bound decode.

What Apple Silicon builders should do right now

  • Mac Studio, Mac mini, and MacBook Pro users on llama.cpp: Upgrade to b13030 (or newer) before testing mixed NVFP4 + F8_E4M3 GGUF releases. Check how much unified memory your target checkpoint leaves for KV cache in The Benchmarque Can It Run calculator before downloading 27B-to-35B builds.
  • Hardware buyers weighing a Mac against discrete GPUs: Native F8_E4M3 removes a major software penalty that previously steered mixed-precision local AI buyers toward overpriced desktop GPUs. Compare live street prices across unified-memory desktops and discrete cards on The Benchmarque Market Tracker and check verified tok/s rankings on the Hardware Leaderboard.
Where this breaks and what still waits for macOS 27: Do not mistake "native Metal support" in b13030 for hardware FP8 tensor math. On MSL 4.0, kernel_mul_mm_tensor still dequantizes F8_E4M3 bytes through the threadgroup LUT into half/bfloat before matrix multiply—which is why 512-row tensor prefill on M5 Max plateaus at 36.90 vs. 38.10 TFLOPS for Q8_0. Gerganov explicitly left true M5+ hardware FP8 tensor execution (metal_fp8_e4m3_format via mpp::tensor_ops::matmul2d, gated by a runtime MTLLanguageVersion4_1 check and a separate ggml-tensor-fp8.metallib) as a future TODO requiring MSL 4.1 / macOS 27+. In addition, commit a92ecedb rejects F8_E4M3 on MUL_MAT and MUL_MAT_ID whenever the K dimension is not a multiple of 32, and the fast 2–16 row MMA path requires both 32-aligned K and an even weight pointer; odd-shaped custom checkpoints still fall back.
Developing story log (ET):
  • Dec 2, 08:56 AM ET: Georgi Gerganov opens PR #33533 with initial Metal F8_E4M3 kernels (0826430f), cutting Qwen3.8-27B-NVFP4 splits from 290 to 2.
  • Dec 4, 05:30 AM to 04:02 PM ET: Commits 38519156, 71bf7844, 17100e36, and 8fe6fb6c add the 256-entry threadgroup LUT, small-batch MMA path, and M2 Ultra / M5 Max tensor optimizations.
  • Dec 6, 05:26 AM to 07:04 AM ET: Commits 0f2d0d46 and a92ecedb land the 1.5x faster MUL_MAT_ID MoE tensor path and strict K % 32 == 0 alignment rules.
  • Dec 6, 08:06 AM to 08:56 AM ET: PR #33533 merges into mainline and ships in pre-release build b13030.
How this was verified: Every TFLOPS measurement, commit hash, graph-split count, file diff (+1,000 / -89 across 17 files), and unit-test total was pulled directly from the GitHub API and commit log of ggml-org/llama.cpp PR #33533 and Release b13030 on December 6, 2026. No secondary blog summaries or unverified forum benchmarks were used.
NEXT DECISION // LIVE DESK

Turn this report into a verified buy

Benchmarks Leaderboard ›

Sources & Primary Filings

5 cited
  1. ggml-org/llama.cpp Pull Request #33533: metal : add native F8_E4M3 support github.com
  2. ggml-org/llama.cpp Release b13030 (Pre-release binary artifacts & commit log) github.com
  3. Commit 0826430f: Qwen3.8-27B-NVFP4 Metal split & throughput validation github.com
  4. Commit 8fe6fb6c: 256-entry threadgroup LUT benchmarks on M2 Ultra and M5 Max github.com
  5. Commit 0f2d0d46: F8_E4M3 MUL_MAT_ID indirect tensor path (+1.5x speedup) github.com

The Monday Hardware & AI Briefing

Verified street-price drops, buy-or-wait signals, and reproducible benchmark tables every Monday morning. Zero popups, one-click unsubscribe.

Reader focus

Sponsor a benchmark series or hardware briefing on The Benchmarque. View media kit and sponsorship options.