qmetrics.net

ggml

Portable C/C++ tensor library for machine learning

A dependency-free tensor library aimed at simple setup, broad CPU and accelerator backends, and efficient quantized inference.

Overview

ggml is a tensor library for machine learning implemented in plain C and C++ without external dependencies. The stated goal is to stay small, portable, and efficient while remaining easy to adopt for inference and related workloads.

It runs across several CPU architectures, including x86, ARM, RISC-V, LoongArch, PowerPC, s390x, and WebAssembly, with SIMD kernels for common platforms. Backends include CPU, GPU, NPU, and browser environments. Quantization covers integer widths from 2 through 8 bits plus MXFP4 and NVFP4 microscaling formats.

The runtime is designed to avoid heap allocations during execution once set up. Documentation includes the GGUF file format used with the ecosystem. A minimal matrix-multiplication example is provided for newcomers building from source.

Key features

  • Plain C/C++ with no mandatory dependencies
  • SIMD-optimized kernels on major CPU families
  • CPU, GPU, NPU, and WebAssembly backends
  • 2–8-bit integer and microscaling quant formats
  • Zero runtime memory allocations after setup
  • Cross-platform architecture support
  • GGUF file format documentation
  • Simple commented example for matrix multiply

Use cases

  • On-device or embedded ML inference
  • Building tools that load GGUF model files
  • Cross-platform tensor code without heavy frameworks
  • Browser or WASM-accelerated ML experiments

Tags

Similar software

TensorFlow

End-to-end machine learning platform and tooling ecosystem

TensorFlow is a machine learning platform with Python and C++ APIs, optional GPU packages, and companion libraries for data, training, deployment, and visualization.

★ 201.8k⟳ todayApache-2.0

Ollama

Run open AI models locally or in the cloud

Ollama runs open language models such as Gemma, Qwen, DeepSeek and gpt-oss on macOS, Windows and Linux, locally or in the cloud. It offers a CLI, a REST API, and Python and JavaScript libraries.

★ 188.3k⟳ 2 days agoMIT
Open Source Alternative to:OpenAI API

Transformers

Shared model definitions for multimodal ML workloads

Transformers is a Python library that defines pretrained text, vision, audio, and multimodal models once in PyTorch for shared inference and training across the ecosystem.

★ 169.4k⟳ todayApache-2.0

llama.cpp

LLM inference engine in C/C++ for local and cloud hardware

llama.cpp runs large language models and multimodal models locally or in the cloud with minimal setup. It includes a CLI, an OpenAI-compatible server with a built-in chat app, and a C library API.

★ 136.5k⟳ todayMIT
Open Source Alternative to:OpenAI API

Whisper

General-purpose speech recognition and translation model

Whisper is a speech recognition model trained on diverse audio. It supports multilingual transcription, speech-to-English translation, and language identification via Python or the command line.

★ 113.6k⟳ 2 months agoMIT

vLLM

High-throughput, memory-efficient inference and serving engine for LLMs

vLLM is a library and server for running and serving large language models. It uses PagedAttention and continuous batching for throughput, offers an OpenAI-compatible API, and runs on many GPU, CPU and accelerator types.

★ 97.7k⟳ todayApache-2.0
Open Source Alternative to:OpenAI API