项目 / ggml-org/ggml

ggml-org/ggml

暂无行业标签
语言 C++标签 machine-learning数据更新 2026-11-25 06:49:28 · 仓库 2026-11-24

一段话介绍

Tensor library for machine learning

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
Tensor library for machine learning
15,887累计星
2,018Fork
+53峰值日增
1上榜次数

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景 — 暂未挂到行业场景库

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
ggml 可用 CMake 从源码构建 Release 版本,仓库的 examples/simple 提供带完整注释的矩阵乘法示例。
特点或设计要点
实现为不带外部依赖的纯 C/C++ 代码,支持 x86、ARM、RISC-V、LoongArch、PowerPC、s390x 和 WebAssembly,并为 x86、ARM 和 RISC-V 提供 SIMD 优化内核。后端覆盖 CPU、GPU、NPU 和浏览器。量化方面支持 2 到 8 位整数,以及 MXFP4、NVFP4 微缩放格式;源文写明运行时不做动态内存分配。文件格式说明见仓库中的 [GGUF 文档](https://github.com/ggml-org/ggml/blob/master/docs/gguf.md)。对核心库(含 CMake 构建系统)的改动,源文建议提交到 [llama.cpp](https://github.com/ggml-org/llama.cpp)。
星标走势近 9 天
首次发现 2026-11-16 · 最近在榜 2026-11-16 · 语言 C++ · 贡献者 ggerganov、JohannesGaessler、jeffbolznv、slaren、lhez
edusdk

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 1,852 字节。

# ggml

<div align="center">

<img src="https://raw.githubusercontent.com/ggml-org/media/refs/heads/master/logo/ggml-logo.jpg" width="256" height="256" alt="ggml logo" />

<b>Tensor library for machine learning</b>

[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![Release](https://img.shields.io/github/v/release/ggml-org/ggml?filter=v*)](https://github.com/ggml-org/ggml/releases)
[![CI](https://github.com/ggml-org/ggml/actions/workflows/build-cpu.yml/badge.svg)](https://github.com/ggml-org/ggml/actions/workflows/build-cpu.yml)

</div>

## 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](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](docs/gguf.md)
- [Introduction to ggml](https://huggingface.co/blog/introduction-to-ggml)
- [GGML tips & tricks](https://github.com/ggml-org/llama.cpp/wiki/GGML-Tips-&-Tricks)

## Contributing

- For changes to the core `ggml` library (including to the CMake build system), please open a PR in [llama.cpp](https://github.com/ggml-org/llama.cpp) - doing so will make your PR more visible, better tested, and more likely to be reviewed
↑