Skip to content
Proyectos

Acerca de

Zig INferenCe Engine — Inferencia local de LLM en GPU AMD y Apple Silicon

IA y aprendizaje automático

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
+2
in 7 days
+19
in 15 days
+21
in 1 month
+25

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

ZINC

ZINC

Run GGUF language models on your own GPU. ZINC gives you a command line and an OpenAI-compatible API in one native binary. Linux HIP and Vulkan builds and the Metal preview also include browser chat.

Tests Zig 0.17.1 MIT

Try Inkling 2 Mini · Install stable ZINC · Documentation · Benchmarks · Discord

Use it your way

Inkling 2 Mini on AMD RDNA4

Start with Inkling 2 Mini Q4_0 on the Radeon RX 9070 XT or Radeon AI PRO R9700. Both cards were tested at 4,096 tokens on ROCm and Vulkan. ROCm had higher decode throughput on both cards. AMD benchmarks and setup.

Install ZINC v0.2.0 for Linux and pull the managed checkpoint.

zinc model pull inkling-2-mini-q4-0

Browser chat starts the UI and local API together. Open http://127.0.0.1:9090/.

zinc chat --model-id inkling-2-mini-q4-0 --context 4096 --parallel 1

One prompt from the terminal.

zinc --model-id inkling-2-mini-q4-0 --context 4096 \
  --chat --prompt "Explain a ring buffer." -n 512

An existing app can connect to http://127.0.0.1:9090/v1 while the chat server is running. API guide.

Vulkan and optional ROCm DSpark setup.

ZINC 0.2.0 for ROCm can serve Qwen 3.8 27B and Muse Glimmer 30B on the 16 GB RX 9070 XT with a 2,048-token context and one request slot. RX 9070 XT setup

Install stable Linux

Setting up through a terminal agent? Use the headless install and verification steps.

For published archives, runtime requirements and verified installation/rollback, see binary releases and GitHub Releases. Linux 0.2.0 is available for HIP/ROCm on AMD and Vulkan on Intel or as an AMD alternative. The published binaries passed all three GPU profiles and both clean-install checks. Release validation. For AMD RDNA, use HIP/ROCm as the default path. Install the published Linux release without a source checkout:

curl -fL https://github.com/zolotukhin/zinc/releases/download/v0.2.0/install.sh -o install.sh

Inspect the downloaded script, then install and add the command to PATH:

ZINC_VERSION=v0.2.0 ZINC_BACKEND=rocm bash install.sh
export PATH="$HOME/.local/bin:$PATH"

Install your GPU driver/runtime first. The installer keeps the executable and its matching runtime assets together. HIP/ROCm needs its matching libraries and runtime-compilation headers; see the HIP setup guide. No Zig compiler, Git or Python is needed. For Apple Silicon previews, experimental CUDA, or unreleased changes, see building from source.

Then check your GPU, download a model, and start the API:

zinc --check
zinc model pull inkling-2-mini-q4-0
zinc serve --model-id inkling-2-mini-q4-0 -c 4096 --parallel 1

For a smaller checkpoint, try Qwen 3.5 9B. Check the memory requirements before downloading, or run zinc model list to browse the catalog. You can also load an existing file with -m /path/to/model.gguf.

Choose your GPU path

Hardware Backend Setup
AMD Radeon RDNA3 / RDNA4 HIP / ROCm · preferred HIP setup; R9700 (gfx1201) qualified
AMD Radeon Vulkan · alternative Linux Vulkan setup
Apple Silicon Metal · preview macOS
Intel Arc Xe2 / Battlemage Vulkan Intel guide
NVIDIA RTX CUDA · experimental Requirements

Each binary contains one backend; there is no runtime switch or automatic fallback between HIP/ROCm and Vulkan. Other RDNA cards need their own runtime, model and memory checks. On Intel, or when choosing AMD Vulkan, install explicitly:

ZINC_VERSION=v0.2.0 ZINC_BACKEND=vulkan bash install.sh
zinc --check

Model coverage and performance vary by backend. The hardware guide lists validated cards, operating systems, drivers, and current limitations.

Connect harnesses

Inspect the performance

Compare prompt processing and token generation on one Radeon AI PRO R9700, with ROCm on both engines. Orange is ZINC; blue is llama.cpp. Speeds are tokens per second, and each badge shows ZINC speed divided by llama.cpp speed.

Inkling 2 Mini and the other active models on Radeon AI PRO R9700 with ROCm and drafting off. Paired bars show ZINC and llama.cpp prefill and decode rates, with per-model dates and builds.

Speculative decoding is off for both engines in this chart. The benchmark dashboard includes every workload, GPU, sample spread, build revision, and the speculative-decoding on/off measurements. Each row shows both engines' drafting settings. Different or unrecorded settings and correctness cautions are excluded from ratios. It also retains incomplete results and cases where llama.cpp is ahead.

New campaigns refresh and verify the latest llama.cpp and measure on/on and off/off; older measurements retain their original build revisions and dates.

The chart uses the same GGUF files, prompt tokens, reusable servers, warmups, and repeat counts for both engines. Dates and builds vary by model and are shown in the graphic. Regenerate all four variants from zinc-performance.json with bun tools/render_benchmark_svg.mjs --readme. Reproduce the suite, or read the matched 27B MTP comparison against current llama.cpp, including the output controls that still need investigation. For Inkling 2 Mini on both Radeon cards, see the published prefill, decode, and DSpark results. Inkling 2 Mini benchmark report The earlier Zig 0.17 MTP optimization study records a separate comparison between two ZINC builds.

Build and contribute

Source builds use the pinned Zig 0.17.1 compiler, downloaded and verified by scripts/zig.sh when needed. Install the build prerequisites for your backend, plus Git and Python 3 for the initial compiler download:

git clone https://github.com/zolotukhin/zinc.git
cd zinc
./scripts/zig.sh build -Doptimize=ReleaseFast
./zig-out/bin/zinc --check

The source build writes zig-out/bin/zinc and runtime assets under zig-out/share/zinc/. Run that output directly, or add "$PWD/zig-out/bin" to PATH to use the zinc commands above. Linux source builds default to Vulkan; macOS defaults to Metal. See the ROCm guide for an explicit HIP build.

JavaScript tooling requires Bun 1.4.4 or newer, pinned in .bun-version. Use bun run format to format changed files with bun fmt.

./scripts/zig.sh build test

Development guide · Contributing · Zig 0.17 migration · Performance follow-up

Explorar proyectos relacionados

Cargando…