Dependency-free C/C++ tensor library for machine learning
ggml is a tensor library for machine learning, written in plain C/C++ with no dependencies, aiming to be simple, portable, and efficient.
- Runs on x86, ARM, RISC-V, LoongArch, PowerPC, s390x, and WebAssembly.
- Backends cover CPU, GPU, NPU, and browser, with 2- to 8-bit integer quantization plus MXFP4 and NVFP4.
- Zero memory allocations during runtime.
try
git clone https://github.com/ggml-org/ggml