ggml is an open-source tensor library designed for efficient machine learning computation with a focus on running models locally and with minimal dependencies. Written primarily in C and C++, the library provides low-level tensor operations and automatic differentiation that allow developers to implement machine learning algorithms and neural networks efficiently. The project emphasizes portability and performance, enabling machine learning inference across a wide range of hardware environments including CPUs and specialized accelerators. It is widely used as a foundational component in projects that run large language models locally, including tools that perform inference for transformer-based models. The library also implements optimization algorithms and computation graph functionality so developers can build training and inference workflows directly on top of its tensor operations.

Features

  • Low-level tensor computation library for machine learning
  • Automatic differentiation for building computation graphs
  • Integer quantization support for efficient model inference
  • Cross-platform compatibility across different hardware environments
  • Implementation of optimization algorithms such as ADAM and L-BFGS
  • Minimal dependency design for lightweight AI deployments

Project Samples

Project Activity

See All Activity >

Categories

Machine Learning

License

MIT License

Follow ggml

ggml Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ggml!

Additional Project Details

Programming Language

C++

Related Categories

C++ Machine Learning Software

Registered

2026-03-10