R153 · Infrastructure for agents at scale › Inference providers and serving reliability

FreeToken: serving frontier MoE models on consumer GPUs

Read the original

Authors Pallavi Ahuja (shared)

inferenceopen-modelsprompt-cachingbenchmarksinference-cost

Sources: FreeToken: Efficient Edge-Native MoE Serving with Bandwidth-Adaptive Execution (Yang, Fan, Pan, Xi, Wang, Sun, Keutzer, Han, Zaharia, Xu, Stoica; arXiv 2608.16157, August 2026) and the FlashML-org/FreeToken repository (Apache 2.0), as shared by Pallavi Ahuja on LinkedIn, 2026-11-19. Numbers are the authors'.

The claim

A Mixture-of-Experts model routes each token through only k of E experts per layer, so one decode step touches a small fraction of the weights. FreeToken treats a personal machine (GPU, CPU, host RAM, PCIe) as one elastic inference platform and schedules expert weights and agent state across it at runtime, instead of committing to a fixed offloading split. The result is that serving a large open-weight model locally becomes a memory-management and scheduling problem rather than a question of whether every weight fits in VRAM.

Reported results, against llama.cpp, Ollama, KTransformers and MoE-Infinity on six machines (8 GB RTX 4060 laptop to a single RTX PRO 6000) with four real agentic workloads:

Architecture

                 agent client (Anthropic/OpenAI-compatible API)
                                  |
        +-------------------------+--------------------------+
        |  semantic-aware cache: recurrent-state / KV        |
        |  checkpoints anchored at thinking / tool-call /    |
        |  turn boundaries -> harness edits reuse, not redo  |
        +-------------------------+--------------------------+
                                  |
  PREFILL: double-buffered          |        DECODE: per-step cache misses
  layer streaming (next layer's     |        split by q* policy between
  experts cross PCIe while the GPU  |        (a) fill GPU expert cache over PCIe
  computes the current layer)       |        (b) run expert directly on CPU
                                  |
        shared LRU expert cache in VRAM (inter-token routing locality)
                                  |
        elastic memory manager: at scheduler safe points, move VRAM
        between expert cache and KV memory without restart or reload

The key observation in decode is that PCIe transfer and direct CPU expert execution both draw on the same host-memory bandwidth, so the policy that splits misses between them has to be tuned to the bandwidth the specific machine sustains. The custom FTW weight format and graph-compatible execution keep the fast path compilable.

The semantic-anchor idea is the most agent-specific part. Harnesses routinely rewrite context at predictable boundaries: stripping old thinking blocks, replacing tool outputs, truncating turns. Checkpointing state at exactly those token boundaries means an edited context resumes from the nearest anchor instead of recomputing from the start, which matters most for hybrid models with recurrent state where prefix caching alone does not help.

Tradeoffs

Failure modes to watch

Review checklist before adopting for local agents

Cited in field guides

Connections

See R153 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.