Zig AI

Open-source Zig projects categorized as AI

Top 8 Zig AI Projects

  1. zml

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

    Project mention: Zig – Type Resolution Redesign and Language Changes | news.ycombinator.com | 2026-03-10

    hi, i'm the founder of https://github.com/zml/zml, very happy with Zig

  2. SaaSHub

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

    SaaSHub logo
  3. Z-Ant

    Zant simplifies the deployment and optimization of neural networks on microprocessors

    Project mention: Zig Z-ant: run ML models on microcontrollers | news.ycombinator.com | 2025-09-21
  4. 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
  5. Avalanche

    UCI Chess Engine written in Zig. (by SnowballSH)

  6. 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

  7. 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/

  8. 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

  9. 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

  • 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 3,581
2 Z-Ant 379
3 Aule-Attention 157
4 Avalanche 104
5 zigformer 51
6 playpanda 10
7 hf-hub-zig 2
8 gomoku-zig 0

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

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