[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fllifys2zijn4":3},{"slug":4,"category":5,"publishedAt":6,"titleZh":7,"titleEn":8,"summaryZh":9,"summaryEn":10,"models":11,"hardwares":12,"bodyZh":13,"bodyEn":14,"sourceName":15,"sourceUrl":16,"updatedAt":6},"llamacpp-metal-nvfp4-support-merged-2026-11-24","RUNTIME","2026-11-23T23:06:44.821Z","llama.cpp合入Metal NVFP4支持：格式叫NV，不代表只能用NVIDIA","llama.cpp merges Metal NVFP4 support: the name does not limit it to NVIDIA","11月23日合入的#32825补齐NVFP4 GGUF在Metal上的执行路径。此前会回退CPU；这是支持范围变化，不是所有Mac统一提速，也没有本站独立实测。","PR #32825, merged November 23, adds Metal execution paths for NVFP4 GGUF tensors that previously fell back to the CPU. This is a compatibility change, not a universal Mac speedup or an AraoAI reproduction.",[],[],"llama.cpp于11月23日合入PR #32825，为Metal后端增加GGML_TYPE_NVFP4支持。对Mac本地部署用户，关键变化不是又多了一个量化名字，而是这类GGUF张量此前缺少Metal执行路径，会回退CPU；现在上游代码补上了相关实现。本站确认的是合入事件，尚未在真机上独立复现。\n\n1. 文件格式、执行后端和硬件不能混为一谈。NVFP4的名字带有NV，并不意味着读取该格式的软件只能运行在NVIDIA硬件上。这个补丁沿用已有MXFP4路径的组织方式，增加子块缩放值转换、反量化、矩阵向量运算以及取行和复制等内核，并让后端支持检查接受该类型。支持一种格式，不等于硬件原生执行同名低精度指令。\n\n2. 支持完成不等于所有形状都选中了最快内核。评论中一位M5 Pro用户指出，恰好两个token的小批次有另一种内核选择；作者在23日回复已按建议更新。该用户的具体速度测量发表于22日，因此不能当成23日新增跑分，更不能推广成所有Apple芯片的统一收益。\n\n3. PR正文里的DGX Spark与吞吐统计属于AI辅助开发披露，不是Apple Metal性能报告。把这些数字抄进Mac速度表，会直接把开发环境误当测试环境。本站因此不发布推算的Mac吞吐，也不把一项类型支持写成模型能力提升。\n\n需要排查CPU回退时，应保留模型文件、构建提交、后端和完整启动参数，核对实际设备分配与算子路径，再用同一输入比较变更前后。别仅凭模型成功加载、显卡有占用或量化名称判断全程GPU执行。合入也不意味着任意本地旧安装包已经包含修复；升级前先核对实际构建。\n\n来源：https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fllama.cpp\u002Fpull\u002F32825","On November 23, llama.cpp merged PR #32825, adding GGML_TYPE_NVFP4 support to its Metal backend. Previously, NVFP4 GGUF tensors lacked a Metal path and fell back to the CPU. AraoAI verified the upstream merge, not a hardware reproduction.\n\n1. Storage format, backend and hardware are different layers. NV in the format name does not prevent software from implementing it on Apple hardware. Following the existing MXFP4 structure, this patch adds scale conversion, dequantizers, matrix-vector and matrix-matrix variants, row gathering and copy kernels, and enables the type in backend support checks. Format support does not establish native execution of an identically named low-precision instruction.\n\n2. Kernel selection still matters. A commenter using an M5 Pro identified a different choice for batches of exactly two tokens. The author confirmed an update on November 23. The underlying measurements were posted on November 22: they are not new November 23 benchmark runs and cannot establish a gain across all Apple chips.\n\n3. The DGX Spark hardware and throughput statistics in the PR body describe AI-assisted development. They are not Apple Metal benchmark results. AraoAI does not repurpose them as Mac measurements or claim that this compatibility change improves model capability.\n\nFor troubleshooting, preserve the exact model file, build commit, backend and launch arguments. Inspect actual device assignment and operator paths, then compare identical inputs before and after the change. Successful loading or some GPU activity does not prove every operator ran on the GPU. A merged patch also does not prove an existing local binary includes it; check the actual build.\n\nSource: https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fllama.cpp\u002Fpull\u002F32825","llama.cpp GitHub PR及当前评论","https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fllama.cpp\u002Fpull\u002F32825"]