ggml:支持 fp8 和 nvfp4 的量化缩放因子,由 0cc4m 提交 · 拉取请求 #28898 · ggml-org/llama.cpp

Reddit r/LocalLLaMA 工具

摘要

一个拉取请求为 ggML 库添加了对 FP8 和 NVFP4 数据类型量化缩放因子的支持,增强了 llama.cpp 对现代 GPU 格式的量化能力。

暂无内容
查看原文
查看缓存全文

缓存时间: 2026/11/27 15:19

ggml-org/llama.cpp 来源:https://github.com/ggml-org/llama.cpp # llama.cpp llama.cpp 使用 C/C++ 进行 LLM 推理 许可证:MIT (https://opensource.org/licenses/MIT) 正式版 (https://github.com/ggml-org/llama.cpp/releases?q=tag:v1) 每夜构建版 (https://github.com/ggml-org/llama.cpp/releases?q=b) 服务器 (https://github.com/ggml-org/llama.cpp/actions/workflows/server.yml) Docker (https://github.com/ggml-org/llama.cpp/actions/workflows/docker.yml) Winget (https://github.com/ggml-org/llama.cpp/actions/workflows/winget.yml) v1.0.0 (https://huggingface.co/blog/ggml-org/llama-cpp-v1) / ggml (https://github.com/ggml-org/ggml) / 算子 (https://github.com/ggml-org/llama.cpp/blob/master/docs/ops.md) / 维护者的 PR (https://github.com/ggml-org/llama.cpp/pulls?q=is%3Apr%20is%3Aopen%20draft%3AFalse%20(author%3Asanmai%20OR%20author%3Argerganov%20OR%20author%3AKitaitiMakoto%20OR%20author%3Adanbev%20OR%20author%3Aaldehir%20OR%20author%3Amax-krasnyansky%20OR%20author%3ACISC%20OR%20author%3Aggerganov%20OR%20author%3Aam17an%20OR%20author%3Ajhen0409%20OR%20author%3Abartowski1182%20OR%20author%3Anikwen%20OR%20author%3Ahipudding%20OR%20author%3Aravi9%20OR%20author%3AServeurpersoCom%20OR%20author%3Athelittlefireman%20OR%20author%3Apwilkin%20OR%20author%3Areeselevine%20OR%20author%3Angxson%20OR%20author%3Ajeffbolznv%20OR%20author%3Amarty1885%20OR%20author%3A0cc4m%20OR%20author%3ATitaniumtown%20OR%20author%3Aangt%20OR%20author%3AIMbackK%20OR%20author%3Aarthw%20OR%20author%3AJohannesGaessler%20OR%20author%3AORippler%20OR%20author%3Aruixiang63%20OR%20author%3Axctan%20OR%20author%3AmasterFoad%20OR%20author%3Aallozaur%20OR%20author%3AAndreas-Krebbel%20OR%20author%3Ayomaytk%20OR%20author%3Aaendk%20OR%20author%3Awine99%20OR%20author%3Agaugarg-nv%20OR%20author%3Ataronaeo%20OR%20author%3Aforforever73%20OR%20author%3Achaxu01%20OR%20author%3Alhez%20OR%20author%3AAlekseiNikiforovIBM%20OR%20author%3Anetrunnereve%20OR%20author%3Afairydreaming%20OR%20author%3Aynankani)%20sort%3Aupdated-desc) / 开发统计 (https://github.com/ggml-org/llama.cpp-dev) / lib llama API (https://github.com/ggml-org/llama.cpp/issues/9289) / llama-server REST API (https://github.com/ggml-org/llama.cpp/issues/9291) ## 简介 llama.cpp 的主要目标是以最少的配置,在各种硬件上实现具有业界领先性能的 LLM(及 MLLM)推理,支持本地和云端运行。llama.cpp 项目基于 ggml (https://github.com/ggml-org/ggml) 库构建。## 快速开始 在计算机上安装 llama.cpp 的几种方式:bash # curl curl -LsSf https://llama.app/install.sh | sh # powershell irm https://llama.app/install.ps1 | iex - 访问 https://llama.app 并按照说明操作 - 使用 Docker 运行——参阅我们的 Docker 文档 - 从发布页面 (https://github.com/ggml-org/llama.cpp/releases) 下载预编译的二进制文件 - 克隆此仓库并从源码构建——查看构建指南 安装完成后:sh # 直接从 Hugging Face 下载并运行模型 llama cli -hf ggml-org/Qwen3.5-0.8B-GGUF # 启动兼容 OpenAI 的 API 服务器 llama serve -hf ggml-org/Qwen3.5-0.8B-GGUF 使用 llama cli 进行 VLM 会话 内置聊天应用 Llama Chat,连接 llama serve ## 文档 #### 工具 - cli - completion - server - 文本转语音(TTS)模型 - GBNF 语法 #### 开发 - 如何构建 - 在 Docker 上运行 - 在 Android 上构建 - 多 GPU 使用 - 性能问题排查 - GGML 提示与技巧 (https://github.com/ggml-org/llama.cpp/wiki/GGML-Tips-&-Tricks) - XCFramework - 补全 - 模型 - 发布流程 ## 参与贡献 - 贡献者可以提交 PR - 将根据贡献情况邀请协作者加入 - 维护者可以向 llama.cpp 仓库中的分支推送代码,并将 PR 合并到 master 分支 - 非常感谢任何协助管理议题、PR 和项目的帮助!- 阅读 CONTRIBUTING.md 了解更多信息 ## 致谢 - yhirose/cpp-httplib (https://github.com/yhirose/cpp-httplib) - 单头文件 HTTP 服务器,由 llama-server 使用 - MIT 许可证 - nothings/stb (https://github.com/nothings/stb) - 单头文件图像格式解码器,由多模态子系统使用 - 公有领域 - nlohmann/json (https://github.com/nlohmann/json) - 单头文件 JSON 库,由各种工具/示例使用 - MIT 许可证 - mackron/miniaudio (https://github.com/mackron/miniaudio) - 单头文件音频格式解码器,由多模态子系统使用 - 公有领域 - sheredom/subprocess.h (https://github.com/sheredom/subprocess.h) - 用于 C 和 C++ 的单头文件进程启动方案 - 公有领域

相似文章

这是我的 llama.cpp NVFP4/MXFP6 GGUF 量化工具

Reddit r/LocalLLaMA

作者介绍了一款开源的 GGUF 量化工具,用于 llama.cpp,能够创建 NVFP4 和 MXFP6 量化模型,并采用 RSF、张量提升、动态量化等先进技术,质量优于现有方法(如 ModelOpt)。