ggml
[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)
Brought by drakestapleton
ggml / README.md
| 1 | # ggml |
| 2 | |
| 3 | <div align="center"> |
| 4 | |
| 5 | <img src="https://raw.githubusercontent.com/ggml-org/media/refs/heads/master/logo/ggml-logo.jpg" width="256" height="256" alt="ggml logo" /> |
| 6 | |
| 7 | <b>Tensor library for machine learning</b> |
| 8 | |
| 9 | [](https://opensource.org/licenses/MIT) |
| 10 | [](https://github.com/ggml-org/ggml/releases) |
| 11 | [](https://github.com/ggml-org/ggml/actions/workflows/build-cpu.yml) |
| 12 | |
| 13 | </div> |
| 14 | |
| 15 | ## Quick start |
| 16 | |
| 17 | Build from source: |
| 18 | |
| 19 | ```bash |
| 20 | git clone https://github.com/ggml-org/ggml |
| 21 | cd ggml |
| 22 | |
| 23 | mkdir build && cd build |
| 24 | cmake .. |
| 25 | cmake --build . --config Release -j 8 |
| 26 | ``` |
| 27 | |
| 28 | For a minimal, fully commented example (matrix multiplication), see [examples/simple](examples/simple). |
| 29 | |
| 30 | ## Description |
| 31 | |
| 32 | The main goal of `ggml` is to be a simple, portable, and efficient tensor library for machine learning with minimal setup. |
| 33 | |
| 34 | - Plain C/C++ implementation without any dependencies |
| 35 | - Cross-platform - x86, ARM, RISC-V, LoongArch, PowerPC, s390x, and WebAssembly |
| 36 | - SIMD-optimized kernels for x86, ARM, and RISC-V |
| 37 | - Broad backend support - CPU, GPU, NPU, and browser |
| 38 | - 2- to 8-bit integer quantization, plus MXFP4 and NVFP4 microscaling formats |
| 39 | - Zero memory allocations during runtime |
| 40 | |
| 41 | ## Documentation |
| 42 | |
| 43 | - [The GGUF file format](docs/gguf.md) |
| 44 | - [Introduction to ggml](https://huggingface.co/blog/introduction-to-ggml) |
| 45 | - [GGML tips & tricks](https://github.com/ggml-org/llama.cpp/wiki/GGML-Tips-&-Tricks) |
| 46 | |
| 47 | ## Contributing |
| 48 | |
| 49 | - 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 |