← all repositories
ggml-org/ggml

A tensor library that banned runtime memory allocations

It exists to give machine learning inference a low-level, dependency-free tensor runtime that avoids the heap entirely at runtime.

ggml
Velocity · 7d
+6.7
★ / day
Trend
accelerating
star history

What it does

GGML is a C++ tensor algebra library for machine learning. It handles matrix operations, automatic differentiation, and optimization across platforms without third-party dependencies. The README emphasizes that the library makes no memory allocations during runtime, leaving all heap work to the setup phase.

The interesting bit

The README lists “zero memory allocations during runtime” as a first-class feature, not an afterthought. For a low-level tensor library, that constraint is unusual; it immediately separates GGML from frameworks that treat the heap as scratch space during inference.

Key highlights

  • Zero third-party dependencies and zero runtime memory allocations.
  • Built-in automatic differentiation with ADAM and L-BFGS optimizers.
  • Integer quantization support for compressed weights.
  • Cross-platform with broad hardware support—specific architectures are not listed in the README.
  • Active development is currently split across the llama.cpp and whisper.cpp repositories.

Caveats

  • Because much of the current work happens inside llama.cpp and whisper.cpp, the standalone repository may not reflect the latest state of the code.

Verdict

Worth a look if you are building an inference engine or embedded runtime and need a small, dependency-free tensor core. Skip it if you want a batteries-included framework like PyTorch; this is a foundation, not a furnished apartment.

Frequently asked

What is ggml-org/ggml?
It exists to give machine learning inference a low-level, dependency-free tensor runtime that avoids the heap entirely at runtime.
Is ggml open source?
Yes — ggml-org/ggml is open source, released under the MIT license.
What language is ggml written in?
ggml-org/ggml is primarily written in C++.
How popular is ggml?
ggml-org/ggml has 15k stars on GitHub and is currently accelerating.
Where can I find ggml?
ggml-org/ggml is on GitHub at https://github.com/ggml-org/ggml.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.