跪拜 Guibai
← All articles
Artificial Intelligence · Open Source · LLM

Rec Builds a Model-Specific Inference Engine to Run Flint Coding Agents 1.4–2.6x Faster Than llama.cpp on Mac

By 冬奇Lab ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

The claimed speedup excludes prefill, so end-to-end coding-agent latency may not show anywhere near 1.4–2.6x; the figure is a benchmark to reproduce on your own hardware. The model-specific engine also raises the practical question of whether vertical optimization for one model is worth the lock-in and the 48 GB hardware floor.

Summary

rec is Recursive's dedicated inference engine for Flint, its own coding model. Instead of another general-purpose runtime, it optimizes for one model, one hardware family, and one workload: single-session local coding on high-end Apple Silicon. `rec launch pi` or `rec launch opencode` downloads the model, starts the inference service, and opens a harness; `rec serve` exposes the model alone, and both OpenAI- and Anthropic-compatible local endpoints are available with a token.

The headline claim is 1.4–2.6x throughput over llama.cpp on an M4 Pro 48 GB, at 4-bit weights, 1,024 output tokens, five runs per context length, and decode-only measurements that exclude prefill. No technical explanation of the underlying optimization or the llama.cpp build used has been published. rec is also very early, with 6 commits and 151 stars at the time of writing, and it only supports M4 Pro, M5 Pro, and M5 Max Macs with at least 48 GB unified memory.

The practical takeaway is a reproducible benchmark to run yourself, not a settled speed record.

Takeaways
— rec runs only on Apple Silicon M4 Pro, M5 Pro, or M5 Max with at least 48 GB unified memory and roughly 30 GB of free disk space; pi also requires Node.js 22 and npm.
— Install with `curl -fsSL https://raw.githubusercontent.com/recursive-oss/rec/main/install.sh | bash`; files go to ~/.local/bin and ~/.local/share/rec.
— `rec launch pi` and `rec launch opencode` start the model plus an isolated harness; `rec serve` starts only the model server, and `rec stop` shuts it down.
— The local API listens on 127.0.0.1:11500 and exposes both /v1/chat/completions and /v1/messages; clients authenticate with `rec auth token` and use `flint` as the model name.
— The claimed 1.4–2.6x speedup over llama.cpp was measured on M4 Pro 48 GB at 4-bit weights, 1,024 output tokens, five repetitions per context length, and only token decoding after prefill, across contexts from 1K to 252K.
— The repository sat at 151 stars, 16 forks, 6 commits, 7 issues, and 4 pull requests at the time of writing, under Apache-2.0.
— rec is optimized for single-session use; the official docs point to other run modes for multiple parallel agents.
— Use `rec doctor` to check hardware and installation state before launching, and `rec COMMAND --help` for per-command options.
Conclusions

A speedup measured only on decode after prefill can overstate gains for coding agents, where long-context prefill is often the dominant cost.

Specializing an inference stack to one model and one Mac lineup bets vertical optimization against ecosystem generality; with no engine details published, there is nothing yet to verify beyond rerunning the benchmark.

The 48 GB memory floor makes rec a niche tool today, and it sets a high baseline for local agentic models that vendors expect developers to buy into.

Concepts & terms
Flint
Recursive's language model positioned for fast, local agentic coding. It can run locally or in the cloud and is meant to be plugged into coding harnesses such as pi and OpenCode.
Agentic coding harness
A wrapper program that connects an LLM to files, terminals, and other tools so the model can act on code. pi and OpenCode are examples; rec can launch and isolate them.
Prefill
The phase where the model processes the full input or prompt before generating tokens. It often dominates latency in long-context workloads and is excluded from rec's claimed speedup.
Single-session inference
Optimization for one model conversation at a time rather than concurrent multi-agent requests; rec's docs say parallel agents require different run modes.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗