Zig AI

Open-source Zig projects categorized as AI

Top 10 Zig AI Projects

  1. zml

    Any model. Any hardware. Zero compromise. Built with @ziglang / @openxla / MLIR / @bazelbuild

    Project mention: Zig's New BitCast Semantics and LLVM Back End Improvements | news.ycombinator.com | 2026-06-25
  2. AppSignal

    AppSignal knows why the f*#k it crashed. Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise.

    AppSignal logo
  3. TensorFold

    LLM Inference Engine for Metal, CUDA and Vulkan.

    Project mention: A weekend with TensorFold on a MacBook: the engine mattered, the quant did not | dev.to | 2026-09-28

    Almost none of the fast parts are mine. TensorFold is Ash's work (MIT), and it had shipped five tagged releases in the day before I started. The DFlash2 draft model is z-lab's. The MLX 4-bit weights I tested came from Vontra. What I added is the part LLMKube exists for: getting a Mac-only engine behind a Kubernetes Service, so a Mac is one more inference node in a cluster that also has NVIDIA and AMD boxes in it.

  4. boo

    A GNU screen style terminal multiplexer built on libghostty. (by coder)

    Project mention: Show HN: Boo – screen-style terminal multiplexer built on libghostty | news.ycombinator.com | 2026-06-11
  5. Z-Ant

    Zant simplifies the deployment and optimization of neural networks on microprocessors

  6. Aule-Attention

    High-performance FlashAttention-2 for AMD, Intel, and Apple GPUs. Drop-in replacement for PyTorch SDPA. Triton backend for ROCm (MI300X, RDNA3), Vulkan backend for consumer GPUs. No CUDA required.

    Project mention: Aule-Attention, FlashAttention That Works on AMD GPUs | news.ycombinator.com | 2025-12-11
  7. Avalanche

    UCI Chess Engine written in Zig. (by SnowballSH)

  8. zigformer

    An educational transformer-based LLM in pure Zig

    Project mention: Show HN: ZigFormer – An LLM implemented in pure Zig | news.ycombinator.com | 2025-11-27

    Hi everyone,

    I've made an early version of ZigFormer, a small LLM implemented in Zig with no dependencies on external ML frameworks like PyTorch or JAX. ZigFormer is modelled after a textbook LLM (like GPT-2 from OpenAI) and can be used as a Zig library as well as a standalone application to train a model and chat with it.

    This was mainly an educational project. I'm sharing it here in case others find it interesting or useful.

    Link to the project: https://github.com/CogitatorTech/zigformer

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. playpanda

    Fetch any URL to clean, LLM-ready markdown. 3-tier engine: HTTP → Lightpanda → CloakBrowser.

    Project mention: Your AI agent can't fetch behind logins. I built a <400kb fix in Zig. | dev.to | 2026-03-28

    git clone https://github.com/ancs21/playpanda.git cd playpanda zig build -Doptimize=.ReleaseFast cp zig-out/bin/playpanda ~/.local/bin/

  11. hf-hub-zig

    Zig library and CLI for interacting with the HuggingFace Hub API, with a focus on GGUF model discovery, searching, viewing, and downloading.

    Project mention: Building AI Infrastructure for a Post-Framework World | dev.to | 2026-01-13

    Repository: hf-hub-zig

  12. gomoku-zig

    Gomoku AI agent in Zig/WASM

    Project mention: Gomoku (5 in a Row) in Zig (Minimax with Alpha-Beta Pruning) Zig/WASM | news.ycombinator.com | 2026-04-09
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Zig AI discussion

Log in or Post with

Zig AI related posts

  • Making Ghostty and herdr share one keyboard

    2 projects | dev.to | 30 Aug 2026
  • Zig's New BitCast Semantics and LLVM Back End Improvements

    7 projects | news.ycombinator.com | 25 Jun 2026
  • Show HN: Boo – screen-style terminal multiplexer built on libghostty

    3 projects | news.ycombinator.com | 11 Jun 2026
  • Zig – Type Resolution Redesign and Language Changes

    9 projects | news.ycombinator.com | 10 Mar 2026

Index

What are some of the best open-source AI projects in Zig? This list will help you:

# Project Stars
1 zml 4,158
2 TensorFold 1,275
3 boo 792
4 Z-Ant 388
5 Aule-Attention 160
6 Avalanche 114
7 zigformer 52
8 playpanda 11
9 hf-hub-zig 2
10 gomoku-zig 0

Sponsored
AppSignal knows why the f*#k it crashed.
Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise.
www.appsignal.com

Did you know that Zig is
the 18th most popular programming language
based on number of references?