Tensor library for machine learning
15,308
stars
4,104
commits
C++
primary language
Sep 4, 2026
updated
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.
The main goal of ggml is to be a simple, portable, and efficient tensor library for machine learning with minimal setup.
ggml library (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(top 30 of 443)
C++
55.3%
C
27.1%
Cuda
9.3%
Metal
2.6%
GLSL
1.7%
WGSL
1.1%
CMake
1.0%
Go Template
1.0%
Tensor library for machine learning
15,308
stars
4,104
commits
C++
primary language
Sep 4, 2026
updated
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.
The main goal of ggml is to be a simple, portable, and efficient tensor library for machine learning with minimal setup.
ggml library (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(top 30 of 443)
C++
55.3%
C
27.1%
Cuda
9.3%
Metal
2.6%
GLSL
1.7%
WGSL
1.1%
CMake
1.0%
Go Template
1.0%