Back to directory

Fucina

A CPU-first, eager-execution tensor and autograd library written in pure Zig, with compile-time-checked named tensor axes and no C/C++ or Python dependency.

Visit website (opens in a new tab)matteo-grella.github.io
Fucina

Fucina is a tensor and autograd library written in pure Zig, where every operation executes immediately on real buffers rather than building a graph to compile first. Tensor axes carry names checked at compile time, so a contraction between mismatched axes is a compile error rather than a runtime shape crash, and the same code path runs for both inference and training.

It has no C or C++ build system and no Python runtime dependency, using Zig vector kernels with optional CBLAS providers and Metal or CUDA GPU offload for matrix multiplication. To prove the library on real workloads, the repository ships complete applications built on it, including LLM chat and serving for models such as Qwen3, DeepSeek, GLM, and Gemma, plus speech, vision, and audio models, each benchmarked against llama.cpp.

It requires the pinned Zig 0.16.0 toolchain and is fetched as an ordinary Zig package dependency.

More in Inference

See all 770
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • Lifeboat

    iterate.ai

    A local inference server that puts an OpenAI- and Anthropic-compatible API in front of open-weight language models running on hardware you control, from a laptop to a GPU cluster.

  • Claude S40

    github.com

    An unofficial Claude chat client for 2007-era Nokia Series 40 phones, built as a Java ME app plus a small Go relay server, with web search, reading mode and saved chats.