Language models/GitHub/Tool

TensorFold

by ashhart·Last observed 2026-10-27
★ 1,495 stars⑂ 308 forks

TensorFold is a Zig-based language-model serving engine for Apple Silicon and NVIDIA GPUs. It reads checkpoints, tokenizes requests, and runs Metal or CUDA kernels directly, without requiring Python or MLX for serving. It exposes chat-completion, Responses, and Anthropic Messages APIs, and can serve local checkpoint directories or existing Hugging Face caches.

Useful for

  • Serve a pulled Qwen3.5-2B checkpoint as a local model and send it a chat-completion request from another terminal.

Key features

  • A local model can be pulled and served under a chosen name, then queried through the OpenAI-compatible chat completions endpoint.
  • The experimental Living Weights feature writes facts that pass its checks into checkpoint files and provides a rollback command to undo lessons.

Requirements & limitations

  • The quick start uses Homebrew on Apple Silicon or a Linux release archive with an NVIDIA GPU; the documented Linux archive requires glibc 2.28 or newer and an NVIDIA driver providing libcuda.so.1.
  • Living Weights is experimental; the README says related facts can interfere with one another and recall drops beyond a few dozen facts and when thinking is enabled.

Project information

CategoryLanguage models
TypeTool
Author / organizationashhart
LicenseApache-2.0
Last observed2026-10-27

Discussion

No comments yet.

Sign in with Google to comment. Browsing is open to everyone.

Community vote