Install TensorFold 1.2.9 on a Mac and serve a local model

TensorFold 1.2.9 was published on the official GitHub release page on 15 Nov 2026 at 01:22 UTC. The engine is a Zig binary. It reads checkpoints, tokenizes requests and runs Metal kernels directly on Apple silicon, so serving a model needs no Python and no MLX install. The release adds an Ollama-compatible API, faster decode for concurrent streams, and fixes for a wrong reply and a hang. Below is the official README quick start, checked against the release notes and the Homebrew formula as of 16 Nov 2026.

Install TensorFold 1.2.9 with Homebrew

The requirement from the official tap: an Apple silicon Mac on macOS 13 or newer. Then two commands.

brew install ashhart/tensorfold/tensorfold
tensorfold-native --version

The formula test expects tensorfold-native 1.2.9 on the second line. The formula downloads v1.2.9's tensorfold-1.2.9-macos-arm64.tar.gz (sha256 006001604db1f8cf9fe94323fcd30b7c2168b63af26c1f9262a6f77ec6ebbbbc, same as the release checksum file) and links the binary under both tensorfold and tensorfold-native. Upgrading an older install is brew update && brew upgrade tensorfold. One detail people miss: uninstalling leaves downloaded weights in the Hugging Face cache, ~/.cache/huggingface unless HF_HOME is set.

The curl installer at tensorfold.dev is the alternative path, not the README's first choice. It installs under ~/.tensorfold after Ed25519 signature and SHA-256 checks, needs OpenSSL 3 with Ed25519 (Homebrew openssl@3 on a Mac), and an unpinned run follows GitHub latest. Check that latest is still v1.2.9 before you run it unpinned. For another Apple silicon serving route we covered earlier, see our oMLX menu-bar server install.

Pull Qwen3.5-2B and serve it on port 8080

The quick start model is one small checkpoint, Qwen3.5-2B MLX 4-bit, text only. Weights carry their own licenses.

tensorfold pull mlx-community/Qwen3.5-2B-MLX-4bit@93760be4f1f69842a46bc13dbdc0f19e291392a3
tensorfold serve mlx-community/Qwen3.5-2B-MLX-4bit --name local-model --context 8192 --no-thinking

The pull pins a revision. Serve takes the repository name without the @revision, a common first error. The server listens on 127.0.0.1:8080 by default; --host and --port change that. From another terminal, the README's own check is:

curl -fsS http://127.0.0.1:8080/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"local-model","messages":[{"role":"user","content":"Say hello in one sentence."}],"max_tokens":128,"temperature":0}'

/v1/models lists the served name. The same server also answers completions, Responses and Anthropic Messages requests. New in 1.2.9, tensorfold serve --config FILE.toml reads serve flags from a file so a launch can be checked in; command line flags win over the file. Default --parallel auto asks for up to eight streams as memory and the engine allow.

The 1.2.9 Ollama-compatible routes run on the same engine

GitHub release card for TensorFold 1.2.9

The release notes list /api/chat, /api/generate, /api/embed, /api/tags, /api/show, /api/ps and /api/version, merged in PR #3342. They run on the same engine paths as the OpenAI routes. Streaming is NDJSON, or one whole reply with stream false. Unsupported options come back as named refusals, not silent drops.

Two things before you point an Ollama client at it. The routes are new, and docs/api.md on the v1.2.9 tag does not document them yet, so work from the release notes and the PR rather than inventing a request body. And the address is TensorFold's listen port, 8080 by default, not the 11434 that Ollama tools assume. /api/embed answers in Ollama's response format on the same engine path as /v1/embeddings, but a supported embedding model must be loaded first, per the author's reply in the announcement thread. If embeddings are the goal, our EmbeddingGemma and /api/embed guide covers the Ollama side; readers who already run Ollama can keep their setup and follow our Ollama 0.40.16 update steps instead.

The M5 Ultra decode numbers, with their scope

GitHub repository card for TensorFold

1.2.9's speed note is narrow, and the release states that every speedup listed keeps replies unchanged. For Nemotron on Metal without an MTP head, concurrent streams share one round. On an M5 Ultra, two streams decode about 20% faster, four about 75%, eight 2.3 to 2.5 times, and 24 streams 3.2 to 3.5 times (PR #3005). The author's X post repeats the 24-stream figure for Nemotron 3.5 Lightning MLX 4-bit and notes the test kept reply tokens identical. One machine, one model, one head configuration.

The README is explicit that its hardware table records documented scope, not measured minimums, and tensorfold info REPO reports a checkpoint's memory floor. No RAM minimum is published for the 2B starter model. Larger checkpoints ask for more: Qwen3.8-27B MLX 4-bit on a 32 GB Mac needs iogpu.wired_limit_mb raised, and the startup refusal names the value to set. Check the floor before pulling anything big.

Photo: tensorfold.dev hero art; GitHub TensorFold repository and 1.2.9 release cards. Source: TensorFold README, 1.2.9 release notes, and the official Homebrew tap.

Previous Article iOS 27.2.1 battery drain? Apple's checks to try first