llama、server:新增 /v1/systemone API(模型:laya、julia-1、lev、openjev、kev)· ngxson · Pull Request #29818 · ggml-org/llama.cpp

Reddit r/LocalLLaMA 工具

摘要

llama.cpp PR #29818 在 llama-server 中新增了一个 /v1/systemone API 端点,支持 laya、julia-1、lev、openjev 和 kev 等模型,由 ngxson 提交。

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

缓存时间: 2026/10/02 10:47

ggml-org/llama.cpp 来源:https://github.com/ggml-org/llama.cpp

llama.cpp

用 C/C++ 实现的 llama LLM 推理

License: MIT (https://opensource.org/licenses/MIT)

Release (https://github.com/ggml-org/llama.cpp/releases?q=tag:v0) · Nightly (https://github.com/ggml-org/llama.cpp/releases?q=b) · Server (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) · ggml (https://github.com/ggml-org/ggml) / ops (https://github.com/ggml-org/llama.cpp/blob/master/docs/ops.md) / 维护者 PRs (https://github.com/ggml-org/llama.cpp/issues?q=is%3Apr%20is%3Aopen%20draft%3AFalse%20(author%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%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%3Aallozaur%20OR%20author%3Ayomaytk%20OR%20author%3Aaendk%20OR%20author%3Awine99%20OR%20author%3Agaugarg-nv%20OR%20author%3Ataronaeo%20OR%20author%3Aforforever73%20OR%20author%3Alhez%20OR%20author%3Anetrunnereve%20OR%20author%3Afairydreaming)%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 的方式:

  • 访问 https://llama.app 并按照说明操作
  • 使用 Docker 运行——参见我们的 Docker 文档
  • 从 releases 页面 (https://github.com/ggml-org/llama.cpp/releases) 下载预编译二进制文件
  • 克隆本仓库从源码构建——参见我们的构建指南

安装完成后:

# 直接从 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 会话

内置 Web UI 连接 llama serve

简介

llama.cpp 的主要目标是以尽可能少的配置,在本地和云端的广泛硬件上,实现 SOTA 级别性能的 LLM(以及 VLM)推理。

  • 纯 C/C++ 实现,不依赖任何外部库
  • Apple silicon 是一等公民——通过 ARM NEON、Accelerate 和 Metal 框架进行优化
  • x86 架构支持 AVX、AVX2、AVX512 和 AMX
  • RISC-V 架构支持 RVV、ZVFH、ZFH、ZICBOP 和 ZIHINTPAUSE
  • 支持 1.5 位、2 位、3 位、4 位、5 位、6 位和 8 位整数量化,以加快推理速度并降低内存占用
  • 为 NVIDIA GPU 提供自定义 CUDA kernel(AMD GPU 通过 HIP 支持,Moore Threads GPU 通过 MUSA 支持)
  • 支持 Vulkan 和 SYCL 后端
  • CPU+GPU 混合推理,可部分加速超出显存总容量的模型

llama.cpp 项目构建在 ggml (https://github.com/ggml-org/ggml) 库之上。

支持的后端

后端目标设备
BLAS所有设备
BLIS所有设备
CANNAscend NPU
CUDANvidia GPU
HIPAMD GPU
HexagonSnapdragon
IBM zDNNIBM Z 与 LinuxONE
MUSAMoore Threads GPU
MetalApple Silicon
OpenCLAdreno GPU
OpenVINO(开发中)Intel CPU、GPU 和 NPU
RPC (https://github.com/ggml-org/llama.cpp/tree/master/tools/rpc)所有设备
SYCLIntel GPU
VirtGPUVirtGPU API
VulkanGPU
WebGPU所有设备
ZenDNNAMD CPU

文档

工具

开发

贡献

  • 贡献者可以提交 PR
  • 将根据贡献情况邀请协作者
  • 维护者可以向 llama.cpp 仓库的分支推送代码,并将 PR 合并到 master 分支
  • 任何在 issue、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 新增功能:决策模型

Reddit r/LocalLLaMA

llama.cpp 服务器现在通过新的 /v1/systemone 端点支持"决策模型",在该端点下,单次前向传播即可为类型化的选项(choice/score/yes-no)计算带概率的得分,而不再生成文本。多个 ggml-org 模型(Julia-1、Laya、Kev-4B、lev、OpenJev)现已提供 GGUF 格式,遵循 TypeSafe 的 Jev System One 格式规范。