{"slug":"ggml","name":"ggml","nameZh":"ggml（llama.cpp 底层的开源机器学习张量库）","category":"local-inference","categoryName":"Local inference & serving","audience":["ai-era"],"primary":"ai-era","openClosed":"open","pricing":"open-source","license":"MIT","maintained":"yes","officialUrl":"https://github.com/ggml-org/ggml","repo":"https://github.com/ggml-org/ggml","latestVersion":"v1.1.1","latestRelease":"2026-11-26","stars":16252,"starsAsOf":"2026-11-30","description":"ggml is the MIT-licensed tensor library for machine learning behind llama.cpp, with the GGUF file format documented in its repository. Written in plain C/C++ with no dependencies, it targets x86, ARM, RISC-V, LoongArch, PowerPC, s390x and WebAssembly, ships SIMD-optimized kernels, supports CPU, GPU, NPU and browser backends, 2- to 8-bit integer quantization plus MXFP4 and NVFP4, and performs zero memory allocations at runtime.","descriptionZh":"ggml 是 ggml-org 组织以 MIT 许可证开源的机器学习张量库，也是 llama.cpp 等本地推理项目的底层计算库，仓库文档收录 GGUF 模型文件格式说明。项目目标是以最少的配置提供简单、可移植、高效的张量计算：采用纯 C/C++ 实现、不依赖第三方库；支持 x86、ARM、RISC-V、LoongArch、PowerPC、s390x 和 WebAssembly 等架构，并针对 x86、ARM、RISC-V 提供 SIMD 优化内核；后端覆盖 CPU、GPU、NPU 和浏览器；支持 2 至 8 位整数量化以及 MXFP4、NVFP4 微缩放格式；运行时不做内存分配。安装方式为克隆仓库后用 CMake 编译，仓库内 examples/simple 提供带完整注释的矩阵乘法示例。官方说明，对核心库（含 CMake 构建系统）的修改应提交到 llama.cpp 仓库。适合开发本地推理引擎、移植模型或研究量化与底层算子的工程师。","callMethods":[],"platforms":["Linux","macOS","Windows","WebAssembly"],"addedAt":"2026-11-16","updatedAt":"2026-11-30","topics":[],"language":null,"lastPush":"2026-11-26","formerly":null,"packages":[],"recentVersions":[],"alternatives":["ollama","llama-cpp","vllm","cherry-studio","localai","exo","sglang","mlx"],"stacks":[],"scenarios":["switch-models","run-models-locally","use-ai-compliantly-in-china","learn-ai"],"problems":[],"reasonZh":null,"sources":["editorial","github-oss","github-pool"],"record":"https://aimap.page/api/v1/software/ggml.json","pages":{"en":"https://aimap.page/en/software/ggml/","zh-hans":"https://aimap.page/zh-hans/software/ggml/"}}