Pull down to go back
FP4 inference finally lands in llama.cpp and ik_llama.cpp — but they're not compatible

FP4 inference finally lands in llama.cpp and ik_llama.cpp — but they're not compatible

FP4 推論終於登陸 llama.cpp 和 ik_llama.cpp — 但兩個版本不相容

After months of waiting, both llama.cpp and ik_llama.cpp now support FP4 inference — but they chose different standards, and that matters. llama.cpp just merged NVFP4 (Nvidia's block-scaled FP4 format), with CUDA kernels added across mmq.cuh, mmvq.cu, convert.cu and other core files. Meanwhile, ik_llama.cpp has been running MXFP4 (the MX-standard FP4 used in gpt-oss models) since PR #682, and it actually has broader hardware support — CPU (AVX2, NEON, Zen4), CUDA, all implemented. Here's the catch: they're not the same wire format. NVFP4 and MXFP4 won't play nice with each other's models, so your choice of framework matters if you care about which FP4 variant you're using. If you're running local LLMs and want faster inference without losing too much quality, this is worth digging into.