ggml-org/ggml

Tensor library for machine learning

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 49 minutes ago
Added to GitGenius on September 3rd, 2026
Created on September 18th, 2022
Open Issues & Pull Requests: 359 (+0)
GitHub issues: Enabled
Number of forks: 1,813
Total Stargazers: 15,302 (+0)
Total Subscribers: 154 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

GGML is a tensor library for machine learning that provides a simple, portable, and efficient foundation for numerical computation with minimal dependencies.

The library addresses the need for a lightweight machine learning framework that can run across diverse hardware platforms without complex setup. It achieves this through a plain C and C++ implementation with no external dependencies, enabling straightforward compilation and deployment. The core design emphasizes efficiency through SIMD-optimized kernels for x86, ARM, and RISC-V architectures, while supporting multiple backends including CPU, GPU, NPU, and browser environments. The tool includes built-in support for quantization at 2 to 8-bit integer precision, plus MXFP4 and NVFP4 microscaling formats, allowing models to run with reduced memory footprint. A distinctive feature is the guarantee of zero memory allocations during runtime, which matters for predictable performance in resource-constrained settings.

The project suits developers building machine learning applications that need to run on embedded systems, mobile devices, or diverse server architectures without heavyweight framework dependencies. It is particularly valuable for inference workloads where model size and memory efficiency are constraints. The library's cross-platform support spanning x86, ARM, RISC-V, LoongArch, PowerPC, s390x, and WebAssembly makes it applicable to scenarios ranging from edge devices to browser-based deployment. Those seeking a minimal, self-contained tensor computation engine with quantization capabilities will find this approach more suitable than frameworks requiring extensive system dependencies.

Development of the project is organized around the llama.cpp repository, where core library changes are contributed and tested. This structure means that improvements to the tensor library benefit from the testing and visibility provided by a larger, active downstream project. The arrangement reflects a collaborative model where the core library evolves in response to real-world usage patterns in a production inference system.