DFlash2 使 Inkling2m 在 llama.cpp 上提速 3 倍(代码生成速度从 50 提升至 150 token/秒)

Reddit r/LocalLLaMA 新闻

摘要

在 llama.cpp 上,DFlash2 为 Inkling2m 带来了 3 倍加速,将代码生成吞吐量从每秒 50 个 token 提升至 150 个 token,凸显了 ggml-org/llama.cpp 项目在推理性能方面的显著提升。

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

缓存时间: 2026/11/25 16:54

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) / 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++ 的单头文件进程启动方案 - 公有领域

相似文章

Inkling 2 获得 llama.cpp 支持!

Reddit r/LocalLLaMA

llama.cpp 新增了对 Inkling 2 的支持,使用户能够通过这个基于 ggml 构建的广泛使用的 C/C++ 运行时,在本地进行该模型的 LLM 推理。

Strix Halo 上的 Inkling-2-Mini:智能体通过 Loom 在一个下午内完成了内核调优。解码时达到带宽理论上限的约 80%,对比 llama.cpp 的首日支持表现

Reddit r/LocalLLaMA

演示 Loom 在 Strix Halo 8060S 上运行新发布的 Inkling-2-Mini 模型,达到约 80% 的理论带宽上限;相比 llama.cpp 的最佳支持方案,解码速度提升至 1.88 倍,预填充速度最高提升至 5.9 倍,全部工作由一个 AI 编程智能体在约 4.3 小时内完成。

Inkling2-Mini 与 llama.cpp 使用体验

Reddit r/LocalLLaMA

有用户反馈,unsloth 的 Inkling-2-Mini GGUF 构建在最新版 llama.cpp 上运行失败或输出乱码,而 ggml-org 的 Q8_0 版本可以运行,但只能在单张显卡上跑,速度约 30 tok/s,建议这个模型还需要几天时间来完善。