AI product Open source · MIT

ggml

ggml is a portable C/C++ tensor library for machine learning, designed to require minimal setup and no external dependencies. It provides SIMD-optimized kernels for x86, ARM, and RISC-V; backends for CPUs, GPUs, NPUs, and browsers; support for x86, ARM, RISC-V, LoongArch, PowerPC, s390x, and WebAssembly; and integer quantization from 2 to 8 bits alongside MXFP4 and NVFP4 microscaling formats. The library performs no memory allocations during runtime and can be built from source with CMake.

View repository