Skip to content

Add AI inference stack: safetensors-zig, tokenizers-zig, vllm-zig, faiss-zig#224

Merged
jiacai2050 merged 2 commits into
zigcc:mainfrom
SMC17:add-ai-inference-stack
May 28, 2026
Merged

Add AI inference stack: safetensors-zig, tokenizers-zig, vllm-zig, faiss-zig#224
jiacai2050 merged 2 commits into
zigcc:mainfrom
SMC17:add-ai-inference-stack

Conversation

@SMC17
Copy link
Copy Markdown
Contributor

@SMC17 SMC17 commented May 28, 2026

Adding four single-purpose Zig 0.16 libraries that compose into an end-to-end CPU LLM inference path. All AGPL-3.0, single-binary, libc-only, with reproducible benchmarks in each repo.

  • safetensors-zig — HuggingFace safetensors reader (~5x faster than the Rust upstream on Llama-shape fixtures)
  • tokenizers-zig — BPE / WordPiece / Unigram with full HF Encoding parity (189 tests + 600-iter property fuzz)
  • vllm-zig — TinyLlama forward pass (RoPE + GQA + KV cache + multi-thread SIMD matmul)
  • faiss-zig — vector similarity (Flat + HNSW + IVFFlat + IVFPQ)

Composition write-up: https://smc17.github.io/stax-blog/lab/ai-inference-zig-stack.html

Each repo carries pre-1.0 / "honest non-claims" framing in the README — happy to adjust phrasing if the awesome-zig style guide prefers different wording.

@SMC17 SMC17 requested a review from jiacai2050 as a code owner May 28, 2026 01:16
Copilot AI review requested due to automatic review settings May 28, 2026 01:16
@SMC17 SMC17 requested a review from xihale as a code owner May 28, 2026 01:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds additional Zig-related AI/ML infrastructure libraries to the README’s curated list.

Changes:

  • Added four new Zig libraries (safetensors, tokenizers, vLLM substrate, FAISS-like vector search) under the Zig section.
  • Included brief performance/feature notes and AGPL-3.0 licensing details for each new entry.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md Outdated
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds four new Zig libraries (safetensors-zig, tokenizers-zig, vllm-zig, and faiss-zig) to the README.md. The reviewer suggested sorting these newly added list items alphabetically to maintain organization and readability, providing a concrete code suggestion.

Comment thread README.md Outdated
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@jiacai2050 jiacai2050 merged commit 9f60f5c into zigcc:main May 28, 2026
2 checks passed
@jiacai2050
Copy link
Copy Markdown
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants