Volver al ranking

ggml-org/ggml

C++

Tensor library for machine learning

automatic-differentiationlarge-language-modelsmachine-learningtensor-algebra
Crecimiento de estrellas
Estrellas
15k
Forks
1.7k
Crecimiento semanal
Issues
307
5k10k15k
sept 2022dic 2023abr 2025jul 2026
README

ggml

Manifesto

Tensor library for machine learning

Note that this project is under active development.
Some of the development is currently happening in the llama.cpp and whisper.cpp repos

Features

  • Low-level cross-platform implementation
  • Integer quantization support
  • Broad hardware support
  • Automatic differentiation
  • ADAM and L-BFGS optimizers
  • No third-party dependencies
  • Zero memory allocations during runtime

Build

git clone https://github.com/ggml-org/ggml
cd ggml

# install python dependencies in a virtual environment
python3.10 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

# build the examples
mkdir build && cd build
cmake ..
cmake --build . --config Release -j 8

GPT inference (example)

# run the GPT-2 small 117M model
../examples/gpt-2/download-ggml-model.sh 117M
./bin/gpt-2-backend -m models/gpt-2-117M/ggml-model.bin -p "This is an example"

For more information, checkout the corresponding programs in the examples folder.

Resources

Repositorios relacionados
ggerganov/ggml

Tensor library for machine learning

C++automatic-differentiationlarge-language-models
11.5k1.1k
HIPS/autograd

Efficiently computes derivatives of NumPy code.

PythonPyPIMIT Licenseautogradautomatic-differentiation
7.5k936
gorgonia/gorgonia

Gorgonia is a library that helps facilitate machine learning in Go.

GoGo ModulesApache License 2.0machine-learningartificial-intelligence
gorgonia.org
5.9k450
stack-of-tasks/pinocchio

A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives

C++BSD 2-Clause "Simplified" Licenseroboticsdynamics
stack-of-tasks.github.io/pinocchio/
3.6k559
PennyLaneAI/pennylane

PennyLane is an open-source quantum software platform for quantum computing, quantum machine learning, and quantum chemistry. Create meaningful quantum algorithms, from inspiration to implementation.

PythonPyPIApache License 2.0quantummachine-learning
pennylane.ai
3.4k840
google/tangent

Source-to-Source Debuggable Derivatives in Pure Python

PythonPyPIApache License 2.0autodiffautomatic-differentiation
2.3k432
autodiff/autodiff

automatic differentiation made easier for C++

C++MIT Licenseautomatic-differentiationauto-differentiation
autodiff.github.io
1.9k196
nlpodyssey/spago

Self-contained Machine Learning and Natural Language Processing library in Go

GoGo ModulesBSD 2-Clause "Simplified" Licensedeep-learningmachine-learning
1.9k88
ethz-adrl/control-toolbox

The Control Toolbox - An Open-Source C++ Library for Robotics, Optimal and Model Predictive Control

C++BSD 2-Clause "Simplified" Licenseoptimal-controlmodel-predictive-control
1.7k342
EnzymeAD/Enzyme

High-performance automatic differentiation of LLVM and MLIR.

LLVMOtherenzymellvm
enzyme.mit.edu
1.6k177
FluxML/Zygote.jl

21st century AD

JuliaOtherjuliajulia-compiler
fluxml.ai/Zygote.jl/
1.6k220
mratsim/Arraymancer

A fast, ergonomic and portable tensor library in Nim with a deep learning focus for CPU, GPU and embedded devices via OpenMP, Cuda and OpenCL backends

NimApache License 2.0tensornim
mratsim.github.io/Arraymancer/
1.4k101