Tur
Chapters

Design

Serving technique gaps

Created: 2026-11-01. Status: research backlog; what remains here hasn't been built or measured in Tur.

This page compares Tur with vLLM, llama.cpp, SGLang, oMLX, BaseRT and recent papers, and lists techniques Tur lacks. Tur's existing work (chunked prefill, prefix snapshots and their hold across tool calls, device sampling, exact speculation, the expert cache and layered prefill) is left out, and so are table-based drafters, which were tried and rejected. Every number comes from its source, on that source's hardware and models, and doesn't predict Tur's results. The order is a judgment of value against effort.

Build first

Reordering requests keeps output exact, so only latency and throughput are at stake.

Priorities and per-client fairness

Tur has no priorities or per-client fairness. The tenant only namespaces the prefix cache, so one client's 8K-token prompts can hold back another's short question. The opt-in engine.shortest_prompt_first helps only at light load and doesn't separate clients.

If several clients share one Mac, three designs apply. Niyama blends earliest-deadline-first with shortest-job-first across service classes, which would separate interactive from batch work. VTC gives per-client fairness counted in tokens, with a 2× bound on the service gap between backlogged clients. Autellix favors agent programs that have received the least total service, and reports 4 to 15× higher program throughput at the same latency.

Measure before committing

Smaller passes under memory pressure

Evicting snapshots and lowering max_running under pressure were rejected because neither returns memory to macOS (see Rejected experiments). Scratch is the part that can shrink: Candle frees idle buffers at each sync, and gpt-oss-20b plans up to 1.28 GB of it, the same at one request or four. Shorter prefill chunks while spare memory is low might lower that peak, at the cost of the slower prefill measured in Expert cache. The worker only reads allocations after a pass, so measuring this first needs a reading of the peak within one.

M5 Neural Accelerators

BaseRT routes prefill matrix work through Metal 4 tensor kernels and reports up to 6.4× prompt speed over llama.cpp and 3.9× over MLX on an M5 Pro, while decode stays on existing kernels. Apple's MLX write-up reports up to 4× faster first tokens against an M4. BaseRT is a self-reported preprint, and only its abstract was read for this page. Both support retrying TensorOps and chunked DeltaNet prefill (see Rejected experiments), which needs an M5 to test.

Idle sleep

vLLM's sleep mode releases weights and K/V without stopping the server. Tur holds its whole memory plan while idle, which matters on a Mac someone is also using. Dropping everything and reloading on the next request is the simple version, and its value depends on reload time, which needs measuring per checkpoint and format.

Wired memory

MLX exposes a wired limit that keeps weights resident on macOS 15 and later. Reports of its benefit are anecdotal, and users describe unrecoverable systems when too much is pinned. Try it only if first-token time after idle proves to be a problem.

  • Running predicted experts without checking them, as Speculating Experts does, breaks Tur's exactness rule. Its better predictor adds under a point on gpt-oss (0.857 against 0.849) over the next-layer router signal Tur already reads ahead with.
  • A general SSD tier for K/V, as in oMLX and vLLM, adds steady SSD writes and conflicts with the expert cache's rule of making none. Saving pinned prefixes on request is the most this could justify.
  • MTLIOCommandQueue loads files directly into GPU resources, but it can't beat the SSD's own speed, and reading directly into a shared arena gained only 6% on the same copies. It would also need unsafe bindings.
  • Purgeable buffers suit resources unused for some time, according to Apple, and the expert arena is one large buffer in constant use.
  • Prefill/decode disaggregation and Mooncake-style connectors move state between machines, and one Mac is Tur's unit of deployment.

Limits of this survey

Most papers were read as abstracts or excerpts, and the sources' claims weren't reproduced. CommitMoE, which uses router certainty to guide offloading, blocked the fetch, so only a search summary was seen, and it may be worth a full read. ExpertFlow and FIRM-MoE were also seen only as search summaries. The llama.cpp details come from mirrors and wrapper documentation, so check them against upstream. Thermal-aware scheduling and K/V compression weren't covered, and the search on swap-versus-recompute preemption found nothing useful.

Edit this page on GitHub