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
0826430fdocumentsQwen3.8-27B-NVFP4executing end-to-end on Metal with graph splits dropping from290to2, prompt processing jumping from4.5 t/sto~340 t/s, and token generation rising from~3 t/sto~25 t/s. Backend unit validation passed11,014checks with zero failures (556/556F8_E4M3,2,952/2,952MUL_MAT,1,296/1,296MUL_MAT_ID,499/499GET_ROWS,CPY,107/107ADD, and5,604/5,604FLASH_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.cppon aMac Studio, M5 Ultra, 256GBrunningggml-org/DeepSeek-V4.1-Flash-1017-GGUFacross three sessions (3.0h,5.5h, and1.3hwall clock;409.7to475.2 tok/sprompt eval and51.3to56.5 tok/sdecode). - Still unconfirmed / watchlist: PR #33533 publishes kernel TFLOPS only on M5 Max and M2 Ultra, plus the single
Qwen3.8-27B-NVFP4end-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 tob13030(or newer) before testing mixedNVFP4 + F8_E4M3GGUF 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_E4M3removes 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.
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.
- Dec 2, 08:56 AM ET: Georgi Gerganov opens PR #33533 with initial Metal
F8_E4M3kernels (0826430f), cuttingQwen3.8-27B-NVFP4splits from 290 to 2. - Dec 4, 05:30 AM to 04:02 PM ET: Commits
38519156,71bf7844,17100e36, and8fe6fb6cadd 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
0f2d0d46anda92ecedbland the 1.5x fasterMUL_MAT_IDMoE tensor path and strictK % 32 == 0alignment rules. - Dec 6, 08:06 AM to 08:56 AM ET: PR #33533 merges into mainline and ships in pre-release build
b13030.
ggml-org/llama.cpp PR #33533 and Release b13030 on December 6, 2026. No secondary blog summaries or unverified forum benchmarks were used.