Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

ggml

> 编程语言
Open source

Tensor library for machine learning

15.1K stars0 likes5 views
WebsiteGitHub

About

Tensor library for machine learning

ggml

Quick start

Build from source:

bash
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.

Description

The main goal of ggml is to be a simple, portable, and efficient tensor library for machine learning with minimal setup.

  • Plain C/C++ implementation without any dependencies
  • Cross-platform - x86, ARM, RISC-V, LoongArch, PowerPC, s390x, and WebAssembly
  • SIMD-optimized kernels for x86, ARM, and RISC-V
  • Broad backend support - CPU, GPU, NPU, and browser
  • 2- to 8-bit integer quantization, plus MXFP4 and NVFP4 microscaling formats
  • Zero memory allocations during runtime

Documentation

  • The GGUF file format
  • Introduction to ggml
  • GGML tips & tricks

Contributing

  • For changes to the core 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

Issues· 365 open

View all issuesOpen on GitHub
  • #1447

    Try to return a local variable in `mnist_model_init_from_file`

    Updated Sep 24, 2026
  • #1630

    Why doesn't ggml distrbute libggml-cpu-{arch}.so got all CPU architectures?

    Updated Sep 21, 2026
  • #1498

    ggml-cuda: missing __syncthreads() in ssm-scan.cu

    Updated Sep 15, 2026
  • #1628

    [Feature request] Use a stable GGML CPU thread pool instead of re-creating it for each request

    Updated Sep 14, 2026
  • #1223

    Upstream the mmap and splits loader from llama.cpp

    Updated Sep 14, 2026
  • #1624

    ggml-cuda: missing <cuda/iterator>/<cuda/execution>/<cuda/stream_ref> includes break build with CCCL 3.1+ (argsort.cu, top-k.cu)

    Updated Sep 11, 2026
  • #1621

    MUSA: flash-attn TILE GQA path (ncols2>1) emits all-NaN logits when attention window length is a multiple of 256

    Updated Sep 7, 2026
  • #1615

    vulkan: vkGetDeviceQueue2 returns VK_NULL_HANDLE on older AMD drivers, first vkQueueSubmit aborts

    Updated Sep 4, 2026
  • #1609

    Convert ggml to Rust

    Updated Aug 27, 2026
  • #1608

    cpu: support GGML_CPU_ALL_VARIANTS with static linking

    Updated Aug 27, 2026

> Tags

C++automatic-differentiationlarge-language-modelsmachine-learningtensor-algebra

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言