Skip to content

b12672

  • b12672
  • 51831d4
  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
  • Choose a tag to compare

  • b12672
  • 51831d4
  • Choose a tag to compare

  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
@ggerganov ggerganov tagged this 23 Nov 19:02
* metal : add NVFP4 support

Follow the MXFP4 path: add the UE4M3 scale decode, the NVFP4 dequantizers,
a dedicated mat-vec kernel with its MUL_MAT_ID, small-batch and MMA variants,
the mul_mm / mul_mm_id and tensor-op variants, and the get_rows and cpy
kernels. Enable the type in supports_op.

Tested on an M5 Max with ggml-org/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-GGUF:NVFP4
and test-backend-ops (MUL_MAT, MUL_MAT_ID, W4A8/W4A4, CPY, GET_ROWS).

Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (2x DGX Spark (RDMA, TP=2))

* metal : skip the small-batch path for NVFP4

With the few-row MMA kernels covering ne11 3..16, the small-batch mat-vec
kernels are only reachable at ne11 = 2, where they are 17-59% slower than the
generic mat-vec kernel on an M2 Ultra and an M5 Max.

Assisted-by: dsh:llama.cpp/ggml-org/DeepSeek-V4.1-Flash-1017-GGUF (2x DGX Spark (RDMA, TP=2))
Assets 2
Loading