// Run models locally
ggmlv1.1.1
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.
Open source Maintained For developers
IN ONE PARAGRAPH
ggml is 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.
Good for: Developers and teams who want to run models locally.
01How to start
- 1Read the official quick-start (link above).
- 2Install or sign up as the official guide describes.
- 3Try it on a small example before wiring it into a project.
02README (from the project)
The following is from the README of ggml-org/ggml, licensed under MIT; copyright belongs to the original authors. View original ↗
ggml
Tensor library for machine learning
Quick start
Build from source:
git clone https://github.com/ggml-org/ggml
cd ggml
mkdir build && cd build
cmake ..
cmake --build . --config Release -j 8
For a minimal, fully commented example (matrix multiplication), see examples/simple.
Description
The main goal of ggml is to be a simple, portable, and efficient tensor library for machine learning with minimal setup.
- Plain C/C++ implementation without any dependencies
- Cross-platform - x86, ARM, RISC-V, LoongArch, PowerPC, s390x, and WebAssembly
- SIMD-optimized kernels for x86, ARM, and RISC-V
- Broad backend support - CPU, GPU, NPU, and browser
- 2- to 8-bit integer quantization, plus MXFP4 and NVFP4 microscaling formats
- Zero memory allocations during runtime
Documentation
Contributing
- For changes to the core
ggmllibrary (including to the CMake build system), please open a PR in llama.cpp - doing so will make your PR more visible, better tested, and more likely to be reviewed
03Alternatives & comparison
Compare side by side →04Related
- ›Elements of AI · 赫尔辛基大学 / MinnaLearnMultilingual (incl. EN/ZH)
- ›AI For Everyone · DeepLearning.AI / 吴恩达English
- ›Generative AI for Everyone · DeepLearning.AI / 吴恩达English
- ›Introduction to Generative AI 学习路径 · Google Cloud SkillsEnglish
- ›Microsoft Learn: Fundamentals of Generative AI · Microsoft LearnMultilingual (incl. EN/ZH)
- All tutorials →
Versions, why it is listed, for AI to read
For AI agents
- Interfaces:its own app or website
- Machine-readable record:/api/v1/software/ggml.json · llms.txt
- Added 2026-11-16 · updated 2026-11-30