
The open-source inference engine llama.cpp has added native NVFP4 support to its Apple Metal backend in release b12672, tagged on November 23, 2026. Merged from pull request 32825 under commit 51831d4 and signed by maintainer ggerganov, the update extends Apple Silicon GPU execution to 4-bit NVFP4 weights rather than relying solely on MXFP4 or integer quantization. For developers running compressed models locally on macOS, the release delivers both the Metal compute kernels required for NVFP4 tensors and an immediate dispatch fix to avoid small-batch slowdowns.
Metal Backend Expands Low-Bit Precision With NVFP4
According to the b12672 release notes, the implementation follows the Metal backend's existing MXFP4 path so NVFP4 functions as a first-class data type across graph operations. Supporting a new quantization format requires more than basic matrix multiplication; embeddings, tensor copies, Mixture-of-Experts routing, and fallback checks all depend on type awareness. Release b12672 addresses that surface area by enabling NVFP4 inside supports_op, allowing the Metal scheduler to dispatch compatible operations directly on GPU shaders.
The release pairs that initial enablement with a second commit that skips the small-batch path for NVFP4. Both entries reference testing on Apple Silicon systems—specifically an M5 Max and an M2 Ultra—alongside the NVFP4-quantized Mixture-of-Experts model artifact ggml-org/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-GGUF:NVFP4, bringing another 4-bit floating-point format into local macOS workflows.
Kernel Architecture, Scale Decoding, and Dispatch Tuning
Internally, the Metal NVFP4 implementation builds out dedicated decoding and arithmetic primitives modeled on MXFP4. The changelog specifies a UE4M3 scale decode routine paired with NVFP4 dequantizers to unpack 4-bit weights and block scales during GPU execution. On the compute side, pull request 32825 adds a dedicated mat-vec kernel alongside MUL_MAT_ID, small-batch, and matrix-multiply-accumulate (MMA) variants.
To cover larger matrix workloads such as prompt processing and batched inference, b12672 also introduces mul_mm, mul_mm_id, and tensor-op variants. Data-movement and lookup primitives are handled through new get_rows and cpy kernels. As documented in the release log, maintainers exercised these paths on an M5 Max using the test-backend-ops suite—covering MUL_MAT, MUL_MAT_ID, W4A8/W4A4, CPY, and GET_ROWS—together with the Nemotron 3.5 Lightning 30B-A3B NVFP4 GGUF checkpoint.
The second commit in b12672 refines kernel selection for two-token batches. Because the few-row MMA kernels cover batch dimension ne11 values from 3 through 16, the small-batch mat-vec kernels were only reachable at ne11 = 2. At that single point, maintainers observed the small-batch mat-vec kernels running 17% to 59% slower than the generic mat-vec kernel across an M2 Ultra and an M5 Max, prompting the backend to skip the small-batch branch for NVFP4.
What NVFP4 on Metal Changes for Local Inference Workflows
For engineers running local inference pipelines on Mac workstations, b12672 expands GGUF compatibility for NVFP4 checkpoints without requiring manual conversion to integer quants. Including indexed operations such as MUL_MAT_ID and mul_mm_id is particularly relevant for sparse Mixture-of-Experts architectures—like the 30B-A3B model cited in the release notes—that dynamically route tokens to active experts.
The ne11 = 2 dispatch adjustment also underscores how sensitive GPU kernels are to narrow batch regimes encountered in speculative decoding or small multi-stream workloads. By benchmarking across both M2 Ultra and M5 Max hardware before shipping the tag, contributors prevented a measurable regression on two-row batches from entering general use.
Developer Notes and AI-Assisted Engineering Attribution
Both commits in b12672 include an Assisted-by trailer crediting dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (2x DGX Spark (RDMA, TP=2)). While the release note does not detail which coding or debugging steps relied on that local distributed setup, the metadata reflects a transparent workflow where model-assisted development is explicitly disclosed alongside deterministic backend verification.
Hardware Scope, Missing Metrics, and Verification Caveats
Teams evaluating b12672 should keep several constraints in mind. First, these changes apply exclusively to the Apple Metal backend and do not modify CUDA, Vulkan, or CPU paths. Second, although the release reports passing test-backend-ops checks and cites the 17% to 59% relative kernel slowdown at ne11 = 2, it publishes no end-to-end tokens-per-second figures, memory footprint comparisons, or perplexity and accuracy benchmarks against MXFP4 or K-quant baselines.
Finally, operators downloading NVFP4 GGUF weights—including the referenced Nemotron 3.5 Lightning artifact—must check individual model-card licenses independently of llama.cpp and validate numerical behavior on their target Apple Silicon hardware before production use.
EXPLORE THE SOURCE
Projects in this story
GitHub repositories
- ggml-org/llama.cpp ↗View project details
Automated Vertex AI (gemini-4-hydrogen) primary-source report; reviewed 2026-11-24.


