Repository navigation
inferd 0.5.1
inferd 0.5.1
Serve GGUF files on the Mac; cached image embeddings across turns; more agents per Mac on the 27B.
Downloads
- Mac (Apple Silicon, macOS 27):
inferd-0.5.1-macos27-arm64.tar.gz(+.sha256). macOS 26: build from source on
that Mac. - NVIDIA DGX Spark: unchanged; use
inferd-0.5.0-spark-cuda13-arm64.tar.gzfrom the
v0.5.0 release.
What's new
run.sh start --model /path/model.ggufserves a llama.cpp GGUF of Qwen3.5 / 3.6 / 3.8 (dense, theqwen35
architecture), text only. In 0.5.0 the engine andrun.sh plancould read a GGUF, butrun.sh startcould not serve
one because the front end needed a folder with the tokenizer.- Tokenizer and chat template from the GGUF itself: built from its
tokenizer.ggml.*metadata and
tokenizer.chat_template. On the Qwen3.8-27B, Qwen3.5-9B and Qwen3.5-4B GGUFs tested, the token ids equal the
Hugging Face tokenizer's on every text checked. The template is the GGUF's own (what llama.cpp and LM Studio render),
which can differ from the Hugging Face release's;--tokenizer <folder>uses a Hugging Face folder's tokenizer,
template and stop tokens instead. - Ollama blobs: a GGUF is recognised by its contents, so
~/.ollama/models/blobs/sha256-...works as it is. - Clear refusals: another architecture, an unsupported tensor type, a split GGUF, or a GGUF without a tokenizer or
template (and no--tokenizer) is refused before anything starts, with the reason. Where the GGUF's bf16 does not
fit the Mac,run.shnames the--quant a8/a4choices that do; it never picks a lossy one for you. On Macs with an
explicit KV pool (128 GB and up), a GGUF start is fitted to the GPU budget like any other checkpoint. - GGUF starts run with
RESIDENCY=1(every buffer in a Metal residency set) unless you set it: weights dequantised
from a GGUF compress well, and on a nearly full Mac macOS compressed and decompressed them on every step (a 27B Q8_0
at bf16 on a 256 GB Mac Studio: warm-up 126 s -> 2.3 s, a 58-token reply 524 s -> 10 s). - An image request to a GGUF start gets HTTP 400 with the reason (an
mmprojfile is not read). - Vision: cached image embeddings across turns, by @Linwei-Chen (#8). Agent clients that resend the same
screenshots each turn no longer pay for decoding, resizing and the vision tower again: on a Mac mini M6 with the
Qwen3.8-27B tower, front-end preparation of 19 warm screenshots goes from 31.6 s to 0.04 s (one image: 0.29 s to
0.002 s). The cache holds 256 MiB of embeddings in RAM by default (about 25k image tokens on the 27B);
INFERD_VISION_FEATURE_CACHE_MIBsizes it, 0 turns it off. A cached image's embedding equals a freshly encoded one;
the generated text equals 0.5.0's on the checks run. Closes #7.
Fixes
-
--quant a8|a4with the DFlash2 drafter now loads (in 0.5.0 the drafter's own weights were converted too and
its load failed). The drafted output is byte-identical to the same start without the drafter on the checks run. -
--quanton an MLX checkpoint that is already quantised is refused with what to do (use it as it is, or point
--modelat a bf16 / Hugging Face / GGUF source); in 0.5.0 it failed at load. -
Pinned model revisions:
install.shdownloads each named model at a pinned Hugging Face revision
(INFERD_UNPINNED=1takes the current main), and a named start prefers the pinned snapshot. -
Scheduler (more agents per Mac without re-prefill): when state-snapshot slots run short, the scheduler now
keeps waiting agents' resume points until nothing else is left (SNAP_HOLD_WAIT) and gives up redundant decode
snapshots before redundant turn boundaries (SNAP_DSNAP_FIRST). Same output bytes. Mac mini M5 Pro, Qwen3.8-27B
(fast), agent turns per minute at 8 / 16 / 24 agents: 0.5.0 17.2 / 17.9 / 9.07 -> 0.5.1 17.1 / 18.0 / 17.53
(prefix-cache hit rate 0.748 -> 0.885).
Mac Studio M5 Ultra, 27B, turns per minute at 8 / 16 / 32 / 64 agents, mean of 2 runs per arm (480 of 480 turns
answered per arm, 0 errors); at 64 agents exact gains 32% and fast 34%:8 16 32 64 prefix-cache hit at 64 0.5.0 exact 57.4 65.0 70.5 52.8 0.83 0.5.1 exact 56.5 65.3 70.6 69.9 0.885 0.5.0 fast 57.9 67.0 71.7 53.8 0.83 0.5.1 fast 56.5 66.2 71.3 72.0 0.885 opt-in int8 ( W4A8=1 QA8=-1, in no preset)83.8 90.8 95.1 98.5 0.885 -
27B int8 activations: available as a named opt-in (
W4A8=1 QA8=-1, documented inengine/docs/KNOBS.md), not
in any preset: it is faster (table above) but does not meet theexactpreset's accuracy bar on the 27B.
The engine binary changes (the drafter fix, the scheduler change); MLX / Hugging Face folders serve the same text as 0.5.0
(checked from the release tarball).
See docs/LOADING.md.
Known limits
- Caches are shared by every client: a vision-cache or prefix-cache hit shows in response timing (trust model: one
trusted local user). - GGUF starts are text only; the chat template is the GGUF's own (
--tokenizerfor the Hugging Face one).