Introducing ASpec
All posts

Marathon Local: Parallel Agent Inference on macOS

· Announcements, Developers

Written by
Hongyin Luo

Co-Founder & CTO

Marathon Local

TL;DR: Open models will dominate AI usage in 2027 with cloud-hosted and local inference. At Subconscious, we’ve focused on building a uniquely capable cloud inference API for ambitious coding and cybersecurity tasks, but we recognize local inference is here. Inspired by our cloud inference stack, we’re excited today to release our local inference engine, Marathon Local.

In our benchmarks, Marathon Local runs AI models faster than mlx-lm, vllm-metal and llama.cpp on the same Mac.

Download Marathon Local to run local models fast, private, and free forever.


In 1994, Bungie released Marathon, a Mac-exclusive game, later regarded as the first step towards the legendary Halo series. Halo broke through many technical limits the industry took for granted at the time: that first-person shooters can't be played with a controller, that their levels had to be cramped interiors, and that only PCs could host multiplayer games. By overturning these assumptions, Halo built a console FPS ecosystem standing alongside the PC, and gave rise to a gaming culture loved by countless players.

In 2025, to help open models handle long-horizon agent work more efficiently and accurately, and inspired by local Boston culture, Subconscious began building the Marathon inference engine and the RedLine training engine. Marathon and RedLine share dynamic KV cache compression and position-encoding reuse across inference and training. With these enhancements, large models can carry out long-horizon tasks with higher memory efficiency. A more concise representation of the context also improves the model's reasoning, instruction following, and alignment. In 2026 this research shipped as the GLM-5.2-Marathon system, with a draft model trained by RedLine to speed up speculative decoding. With comparatively little compute it served a large number of concurrent agent requests, and it came close to Opus 4.8 in real-world engineering evaluations.

Starting today, we are bringing Marathon from the cloud to your desktop, beginning with a preview release of our on-device inference system. In tribute to the galactic expeditions of Marathon and Halo and Bungie’s courage to overturn technical common sense, and in thanks for a delightful coincidence of names, macOS becomes the first platform we support. It is our Thanksgiving gift, free for everyone to download, with our GUI version supporting Claude Code, OpenCode, Pi, and DeepSeek Harness with local LLMs.

For Mac Studio, Mac mini, and MacBook: Download Marathon Local, or install from the terminal:

Terminal
curl -fsSL https://subc.sh/install | sh

Setup, supported models and full benchmarks: subconscious.dev/local.

Multi-user inference

Other LLM inference systems on macOS were built from a personal-use premise. We believe edge compute, especially a Mac Studio with Apple's latest M5 chips, has the headroom to serve multi-user, highly concurrent workloads of complex AI agents. With that in mind, we optimized Marathon towards complex workloads: the caches of each attention architecture, the Metal kernels, the scheduling queues for prefill and decode, and a hierarchical KV cache. All numbers below were measured on an Apple M5 Max with 36 GB.

Eight distinct requests, total decode throughput (tok/s, higher is better)

ModelMarathonmlx-lmvllm-metalllama.cpp
Inkling 2 Mini151——103
Qwen3.8-27B1569592109
Qwen3.6-35B-A3B406339300271
Gemma 4 26B-A4B336301319251

Eight concurrent requests sharing a prompt prefix, second round (tok/s, higher is better)

ModelMarathonmlx-lmvllm-metalllama.cpp
Inkling 2 Mini151——78.2
Qwen3.8-27B15243.557.490.1
Qwen3.6-35B-A3B420193244269
Gemma 4 26B-A4B304152262170

The inkling-2-mini model was tested on Nov 20, it's launch day. At 16 concurrent requests, Marathon reaches 227 / 552 / 434 / 191 tok/s on these four models, against llama.cpp's 124 / 386 / 355 / 119.

Long-context inference

On-device hardware has lower memory bandwidth, so users often face high latency and slow decoding in long-context, long-horizon agent tasks. Marathon optimizes memory and scheduling specifically for these tasks, with marked gains in long-context inference for a single user and for many users.

One request behind a 32k-token prompt: decode (tok/s, higher is better)

ModelMarathonmlx-lmvllm-metalllama.cpp
Inkling 2 Mini44.1——29.9
Qwen3.8-27B24.0OOM20.518.5
Qwen3.6-35B-A3B11085.577.869.1
Gemma 4 26B-A4B94.768.534.860.0

One request behind a 32k-token prompt: time to first token (s, lower is better)

ModelMarathonmlx-lmvllm-metalllama.cpp
Inkling 2 Mini22.9——62.5
Qwen3.8-27B46.5OOM49.263.2
Qwen3.6-35B-A3B10.211.012.314.2
Gemma 4 26B-A4B9.410.912.815.0

With each model's MTP head for speculative decoding, Marathon's decode at long context rises to 41.7 tok/s (Qwen3.8-27B), 127 (Qwen3.6-35B-A3B) and 47.7 (Inkling 2 Mini). llama.cpp with its own drafts reaches 31.5, 77.2 and 31.9.

We also improved the scheduler to better handle mixed prefill and decode requests. The following table compares the system latency when a long code prefill is submitted in the middle of a decoding request.

A long prompt arrives while another request is decoding (Qwen3.8-27B)

New promptMetricvllm-metalMarathon
—Ongoing request's decode speed, alone24.0 tok/s26.9 tok/s
16kOngoing request's longest stall2335 ms540 ms
16kOngoing request's decode speed during the prefill0.5 tok/s2.1 tok/s
16kNew request's time to first token22.2 s21.7 s
32kOngoing request's longest stall2764 ms549 ms
32kOngoing request's decode speed during the prefill0.5 tok/s2.0 tok/s
32kNew request's time to first token48.6 s47.5 s

Model support

This release supports models that handle complex agent tasks and tool calls well: Qwen3.8-27B, Qwen3.6-35B-A3B, Gemma 4 26B-A4B and the newest of them, Inkling 2 Mini, along with earlier and smaller models from the same families. We optimized the kernels deeply for each model's attention architecture, mainly through paged memory, kernel fusion and fewer pointer operations inside the kernels.

Attention architectureResidual connectionModel families
Looped sliding-window attention + GQA with attention sinksBlock attention residualsInkling 2 Mini
GQAPre-norm residualQwen3
Gated DeltaNet + gated GQAPre-norm residualQwen ≥ 3.5
Sliding-window attention + GQA, shared KVSandwich-norm residualGemma 4

Memory compression (Enterprise)

Marathon Local runs on a Mac Studio, Mac mini or MacBook. 36 GB is a common memory size on all three today, and it is tight for models above 20B parameters. As a result, users usually cannot use a model’s full 1M-token context. In the free version released today, a 36 GB machine gets a context window of up to 262,144 tokens.

Our unreleased Enterprise version adds Marathon’s own inference-time context compression kernels. They extend a model’s context to 1M tokens on a 36 GB machine and keep inference efficient as agent turns accumulate and the context grows. If you are interested in this, or have other feedback, we invite you to fill out this form.

Full results against mlx-lm, vllm-metal and llama.cpp: subconscious.dev/local.

Happy Thanksgiving to you and your families.

Marathon by Bungie, the creators of Halo (1994)
Marathon by Bungie, the creators of Halo (1994)

Keep reading

All posts

Start building with Subconscious.

Point your OpenAI or Anthropic SDK at our endpoint and try Marathon models in minutes.

Start building