← 开源
zolotukhin

zinc

Zig INferenCe Engine — Local LLM inference on AMD GPUs and Apple Silicon

InfrastructureKernelsInference service optimizationZig
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
522
Star
22
Fork
+2
本周
5
贡献者
创建于 2026-03-25 · 更新于 2026-10-14 · 今日第 17823 名
主要开发者
zolotukhinch4r10t33rfusion44

zolotukhin/zinc 排名第 17,823,有 522 个星标。

同类别比较

zolotukhin/zinc 排名第 17,823,此处有 8 个同类条目;algal/pi-openai-server-compaction 排名第 17,806。

同类别比较
名称排名指标
brontoguana/krasis17,764
语言:
C++
星标数:
524
分叉数:
33
简介:
Krasis is a Hybrid LLM runtime which focuses on efficient running of larger models on consumer grade VRAM limited hardware
tinykit-studio/tinykit17,770
语言:
Svelte
星标数:
524
分叉数:
78
简介:
Self-hosted Lovable/v0 alternative. Realtime database & storage included.
NimbleEdge/deliteAI17,801
语言:
C++
星标数:
522
分叉数:
41
简介:
On-device Agentic AI platform
algal/pi-openai-server-compaction17,806
语言:
TypeScript
星标数:
522
分叉数:
46
alex-ilgayev/MCPSpy17,870
语言:
C
星标数:
519
分叉数:
78
简介:
MCP Monitoring with eBPF
different-ai/embedbase17,874
语言:
TypeScript
星标数:
519
分叉数:
53
简介:
A dead-simple API to build LLM-powered apps
zacdcook/openclaw-billing-proxy17,886
语言:
JavaScript
星标数:
519
分叉数:
132
简介:
Route OpenClaw API requests through Claude Code subscription billing instead of Extra Usage
FAST-Imaging/FAST17,887
语言:
C++
星标数:
518
分叉数:
113
简介:
A framework for high-performance medical image processing, neural network inference and visualization
关键参数与规格
关键参数与规格
参数值
语言Zig
类别Infrastructure
子类别Kernels,Inference service optimization
关键词DevOps, LocalAI, Memory management
星标数522
分叉数22
贡献者5
创建日期2026-03-25
更新日期2026-10-14
1 天星标数0
7 天星标数2
排名17,823
上次排名7,019
排名变化-10,804
7 天星标排名8,896
上次 7 天星标排名8,945
7 天星标排名变化49
总星标排名18,739
上次总星标排名18,689
总星标排名变化-50
README 摘录

ZINC Run open-weight models on the GPU you already own. Get started · See every benchmark · Read the docs · Join Discord Speed, measured honestly Each model below was run on the same Radeon AI PRO R9700 through ZINC's ROCm backend and through llama. cpp's ROCm (HIP) backend, built from the same llama. Both engines load the same GGUF file, read the same prompt tokens (the harness checks the counts match), run in a reusable server, and get the same warmups

and repeat counts. The bars show how ZINC compares on the two things you feel while using a model: how fast it reads your prompt, and how fast it writes the answer. Reading that honestly: **Prompt processing** is ahead in all 24 rows: 1. 9x on the short chat prompt shown here, narrowing to 1. **Token generation** is ahead in all 24 rows, from 1. 8 can speculate, and the chart does not count it. ** That model ships an extra

"NextN" block, and ZINC uses it to draft tokens the full model then verifies in one batched pass: identical output, fewer passes, 1. cpp can speculate with the same block (its converter exports it as a separate draft model), and our runs do not give it one, so that number would not be a fair comparison. The chart therefore shows both engines **without** speculation; the benchmark page has a switch for the speculative figure. ** ZINC's ROCm backend reads prompts much

faster than its Vulkan backend; for generation the two are close, and Vulkan is ahead on some models (Qwen 3. 6 35B-A3B: 105 tok/s on Vulkan, 97 on ROCm). The Vulkan build is compared against llama. cpp's Vulkan backend and published separately on the benchmark page. This is one GPU and six models, not a universal claim. Other cards are measured separately, and rows where llama. Every number comes from and lands in , recording prompts, raw samples, build

revisions and the llama. The chart above is regenerated from that file, never hand-edited. Linux Vulkan builds also need and a Vulkan loader; ROCm builds need a working ROCm installation. Vulkan is the portable default; ROCm uses HIP with kernels tuned for RDNA4 and leads on prompt processing: See Getting started for package prerequisites and the first-run walkthrough, or the dedicated ROCm setup guide. Chat and API That one command starts the browser chat and an OpenAI-compatible

API on the same port, so existing clients and SDKs work unchanged: for liveness, and for the API. The API guide has curl and SDK examples. The hardware guide lists validated cards, drivers, memory requirements and current limitations. Models ZINC reads local GGUF files and ships a managed catalog you can pull from. 8, Gemma 4 and Muse Glimmer, including mixture-of-experts and hybrid-attention architectures. The Muse checkpoint used in ZINC measurements is the exact Muse-Glimmer-30B

-KQuant-17GB-Q4_K_M. Build, test, contribute Start with the development guide and the contributing guide. To reproduce or

常见问题

记录了多少星标和分叉?

zolotukhin/zinc 有 522 个星标和 22 个分叉。

仓库排名是多少?

zolotukhin/zinc 排名第 17,823。

记录的语言和类别是什么?

zolotukhin/zinc 有 522 个星标,语言为 Zig,类别为 Infrastructure。

哪个仓库排名最接近?

zolotukhin/zinc 与 algal/pi-openai-server-compaction 比较,后者排名第 17,806,有 522 个星标。

README

ZINC

Run open-weight models on the GPU you already own. ZINC is a single Zig binary — no Python, no CUDA-only assumptions — that loads GGUF files and gives you a command line, a browser chat, a model manager, and an OpenAI-compatible API.

Get started · See every benchmark · Read the docs · Join Discord

Speed, measured honestly

Each model below was run on the same Radeon AI PRO R9700 through ZINC's ROCm backend and through llama.cpp's ROCm (HIP) backend, built from the same llama.cpp commit as our Vulkan comparison. Both engines load the same GGUF file, read the same prompt tokens (the harness checks the counts match), run in a reusable server, and get the same warmups and repeat counts. The bars show how ZINC compares on the two things you feel while using a model: how fast it reads your prompt, and how fast it writes the answer.

Reading that honestly:

  • Prompt processing is ahead in all 24 rows: 1.07x to 1.9x on the short chat prompt shown here, narrowing to 1.02x-1.31x on the longest prompts.
  • Token generation is ahead in all 24 rows, from 1.02x (Gemma 4 31B) to 1.28x (Qwen 3.6 35B-A3B).
  • Qwen 3.8 can speculate, and the chart does not count it. That model ships an extra "NextN" block, and ZINC uses it to draft tokens the full model then verifies in one batched pass: identical output, fewer passes, 1.9x the generation speed. llama.cpp can speculate with the same block (its converter exports it as a separate draft model), and our runs do not give it one, so that number would not be a fair comparison. The chart therefore shows both engines without speculation; the benchmark page has a switch for the speculative figure.
  • On AMD, pick the backend for the job. ZINC's ROCm backend reads prompts much faster than its Vulkan backend; for generation the two are close, and Vulkan is ahead on some models (Qwen 3.6 35B-A3B: 105 tok/s on Vulkan, 97 on ROCm). The Vulkan build is compared against llama.cpp's Vulkan backend and published separately on the benchmark page.

This is one GPU and six models, not a universal claim. Other cards are measured separately, and rows where llama.cpp is ahead stay on the page.

Every number comes from tools/performance_suite.mjs and lands in site/src/data/zinc-performance.json, recording prompts, raw samples, build revisions and the llama.cpp commit used. The chart above is regenerated from that file, never hand-edited.

Get running

ZINC needs Zig 0.15.2 or newer. Linux Vulkan builds also need glslc and a Vulkan loader; ROCm builds need a working ROCm installation.

git clone https://github.com/zolotukhin/zinc.git
cd zinc
zig build -Doptimize=ReleaseFast

./zig-out/bin/zinc --check                      # what GPU did it find?
./zig-out/bin/zinc model pull qwen35-9b-q4k-m   # fetch a model
./zig-out/bin/zinc --model-id qwen35-9b-q4k-m --prompt "Hello" --chat

On AMD you can pick either backend. Vulkan is the portable default; ROCm uses HIP with kernels tuned for RDNA4 and leads on prompt processing:

ROCM_PATH=/opt/rocm zig build -Dbackend=rocm -Doptimize=ReleaseFast
ROCR_VISIBLE_DEVICES=0 ./zig-out/bin/zinc --check

See Getting started for package prerequisites and the first-run walkthrough, or the dedicated ROCm setup guide.

Chat and API

./zig-out/bin/zinc chat --model-id qwen35-9b-q4k-m

That one command starts the browser chat and an OpenAI-compatible API on the same port, so existing clients and SDKs work unchanged: /health for liveness, /v1/models and /v1/chat/completions for the API. The API guide has curl and SDK examples.

GPU support

Hardware Backend Status
AMD Radeon (RDNA3/RDNA4) ROCm/HIP Supported · fastest prompt processing on Radeon
AMD Radeon (RDNA3/RDNA4) Vulkan Supported · portable, no ROCm install needed
Intel Arc (Xe2/Battlemage) Vulkan Supported
Apple Silicon Metal Supported
NVIDIA RTX CUDA Experimental

Each backend has its own kernels and is benchmarked separately — no backend inherits another's results. The hardware guide lists validated cards, drivers, memory requirements and current limitations.

Models

ZINC reads local GGUF files and ships a managed catalog you can pull from. Current tuning work covers Qwen 3.5, Qwen 3.6, Qwen 3.8, Gemma 4 and Muse Glimmer, including mixture-of-experts and hybrid-attention architectures.

./zig-out/bin/zinc -m /path/to/model.gguf --prompt "The capital of France is"
./zig-out/bin/zinc -hf Qwen/Qwen3-0.6B-GGUF:Q8_0 --prompt "Hello" --chat

The Muse checkpoint used in ZINC measurements is the exact Muse-Glimmer-30B-KQuant-17GB-Q4_K_M.gguf file published by Meta.

Build, test, contribute

zig build -Doptimize=ReleaseFast
zig build test

Start with the development guide and the contributing guide. To reproduce or extend the benchmarks, docs/BENCHMARKING.md documents the suite, including how to publish a speculative-decoding on/off pair.

ZINC is active engineering work. When a model or GPU path is incomplete, the benchmark page leaves that result visible instead of quietly dropping it.

MIT licensed.

排名相邻
同类项目