Repository navigation
inferd 0.5.5
inferd 0.5.5
30 November 2026. Fixes for macOS 27 on Apple Silicon. Every kernel and the metallib are byte-identical to 0.5.4, and
served text is identical to 0.5.4's (27B + DFlash2 and Inkling 2 Mini, greedy). The DGX Spark front end is unchanged and
stays at 0.5.0.
Fixed
- An engine abort on a busy, small KV pool (0.5.3 and 0.5.4).
- The trigger: with the default
MID_SNAP=2, short follow-up turns planned ahead of a long prompt's chunked prefill
could overfill a step (2,138 rows on a 27B + DFlash2 sized for 2,112 with--agents 4). - The engine then aborted with
mid-step snapshot: unsupported, and every open request got 503 "engine
disconnected". - Steps now stay within their budget. A planned mid-step snapshot the model refuses is dropped with a log line.
- Reproduced on a Mac Studio and a Mac mini M5 Pro (two cached follow-ups released together with a long new prompt):
a build with the 0.5.4 scheduler aborted in the first round on both, and 0.5.5 ran 10 of 10 rounds clean on both.
- The trigger: with the default
- Image-heavy requests no longer stall the front end (#13).
- A request with images sends its image embeddings to the engine in its request line. A long screenshot history
makes that hundreds of MB. - When the engine socket still held an earlier write, the front end copied the rest of the line after every
~8 KiB send. The cost grew with the square of the size (18 s at 128 MiB, minutes beyond), on the event loop and
under the lock every other request needs, with the engine idle. - Writing is now linear (0.08 s at 128 MiB). Large requests are serialised in a worker thread.
- Served on a Mac mini M6 (27B, three agents with 12 shared screenshots): first tokens 2.0 / 24.5 / 44.0 s before,
2.1–2.4 s now.
- A request with images sends its image embeddings to the engine in its request line. A long screenshot history
Added
INFERD_CLIENT_STALL(default 300 s, 0 off): a streamed request whose client has read none of its waiting events
for that long is cancelled and frees its engine seat, instead of generating untilmax_tokens. A slow client that
keeps reading is not affected.
Changed
- Front-end dependencies:
- fastapi 0.165.0 (was 0.143.0). Starlette stays at 1.10.0, and FastAPI's new request-body limit is off by default,
soINFERD_MAX_BODY_MBstill decides. - mlx 0.32.5 (0.32.3) and mlx-vlm 0.8.1 (0.7.8).
- transformers 5.24.1 (5.19.0).
- numpy 2.5.5 and httpx 0.29.0 (tests only).
- fastapi 0.165.0 (was 0.143.0). Starlette stays at 1.10.0, and FastAPI's new request-body limit is off by default,
- None of these touch served text: the engine uses none of them for text.
- Image embeddings from the vision tower change in about 0.04% of values, by one bf16 step. Tokens and M-RoPE
positions are identical.
Verified
- Release gate from this tarball's build on a Mac Studio M5 Ultra, a Mac mini M5 Pro, a Mac mini M6 and a Mac mini
M4 Pro: all pass.- The logits references were re-taken with the new mlx pins.
- Drafted-vs-plain results match 0.5.4 on every machine.
- Served text vs 0.5.4: 27B + DFlash2 9/9 identical; Inkling 9/9 identical.
Upgrade: download inferd-0.5.5-macos27-arm64.tar.gz and its .sha256, then shasum -a 256 -c and unpack. Running
it needs no Xcode.