Tensor library for machine learning
Build from source:
git clone https://github.com/ggml-org/ggml
cd ggml
mkdir build && cd build
cmake ..
cmake --build . --config Release -j 8For a minimal, fully commented example (matrix multiplication), see examples/simple.
The main goal of ggml is to be a simple, portable, and efficient tensor library for machine learning with minimal setup.
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 reviewedTry to return a local variable in `mnist_model_init_from_file`
Why doesn't ggml distrbute libggml-cpu-{arch}.so got all CPU architectures?
ggml-cuda: missing __syncthreads() in ssm-scan.cu
[Feature request] Use a stable GGML CPU thread pool instead of re-creating it for each request
Upstream the mmap and splits loader from llama.cpp
ggml-cuda: missing <cuda/iterator>/<cuda/execution>/<cuda/stream_ref> includes break build with CCCL 3.1+ (argsort.cu, top-k.cu)
MUSA: flash-attn TILE GQA path (ncols2>1) emits all-NaN logits when attention window length is a multiple of 256
vulkan: vkGetDeviceQueue2 returns VK_NULL_HANDLE on older AMD drivers, first vkQueueSubmit aborts
Convert ggml to Rust
cpu: support GGML_CPU_ALL_VARIANTS with static linking