# Together Compiler: Continual Compilation for AI Inference

DevFeed: [Together Compiler: Continual Compilation for AI Inference](<https://devfeed.tech/articles/together-compiler-continual-compilation-for-ai-inference-132037.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.14681>)

Author: Reyna Abhyankar, Dylan Lim, Drew Wadsworth, Venkata Hasith Vattikuti, YuTong Julia Zhang, Jung Hwan Heo, Taeksang Kim, Kesavan Ramakrishnan, Evangelene Stanley, Xinyu Fang, Daniel Y. Fu, Simran Arora

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Advanced AI workflows](<https://devfeed.tech/topics/advanced-ai-workflows.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-context](<https://devfeed.tech/tags/agent-context.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-inference](<https://devfeed.tech/tags/ai-inference.md>), [ai-inference-optimization](<https://devfeed.tech/tags/ai-inference-optimization.md>), [ai-workloads](<https://devfeed.tech/tags/ai-workloads.md>), [architectures](<https://devfeed.tech/tags/architectures.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [batch](<https://devfeed.tech/tags/batch.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [data](<https://devfeed.tech/tags/data.md>), [deepseek](<https://devfeed.tech/tags/deepseek.md>), [deepseek-v4-1-flash](<https://devfeed.tech/tags/deepseek-v4-1-flash.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [distributions](<https://devfeed.tech/tags/distributions.md>), [inference](<https://devfeed.tech/tags/inference.md>)

## AI overview

Together Compiler (TKCC) is a continual agent loop for optimizing AI inference as models and traffic change. It addresses a throughput-fidelity tradeoff: individual-kernel benchmarks can miss data-dependent behavior such as MoE, while optimizing end-to-end engines incurs slow launch times. A Tiered Persistent Engine separates launch overhead from forward-pass computation, and a cost model selects initial parallelism configurations. The abstract reports up to 1.7x performance over hand-written Megakernels on Llama 1B and up to 2.6x higher TPS than the best open-source engines on named frontier models in InferenceX across hardware platforms. It also reports 1,111 TPS on MiniMax M3.1 Flash and 1,205 TPS on DeepSeek v4.1 Flash at batch size 1, and says TKCC serves trillions of tokens across Together AI's production fleet. These are claims in the supplied abstract; it does not provide benchmark methodology or detailed ablation findings.

## Source excerpt

arXiv:2611.14681v1 Announce Type: new Abstract: Today's AI workloads are rapidly changing: new models are released more often, model architectures are increasingly diverse, and traffic distributions change frequently. The challenge we face at Together AI is continual optimization for these changing workloads. Compiling a deployment into an optimized forward pass is a challenge that is well-suited for agent hill-climbing. Existing systems struggle with continual compilation due to a tradeoff between measurement throughput and fidelity. Many systems use agents to optimize individual kernels from the inference forward pass using offline benchmarks, but timings are low-fidelity because of data-dependent behavior in primitives like mixture-of-experts (MoE). On the other hand, systems use agents to directly optimize end-to-end engines but suffer from slow engine launch times. To address these challenges, we build Together Compiler (TKCC), the first truly continual agent loop designed for AI inference optimization. To address the throughput-fidelity tradeoff, we propose: (1) a Tiered Persistent Engine that decouples engine launch overheads from forward pass computation; (2) a cost model to select the parallelism configurations that seed the optimization process. We also conduct extensive ablations on agent context management and present our insights on deploying TKCC in production. TKCC outperforms highly-optimized hand-written Megakernels on the Llama 1B workhorse workload by up to 1.7x and the best open source engines on the latest frontier models (Kimi K3, GLM 5.3, MiniMax M3.1 Flash, DeepSeek v4.1 Flash) across hardware platforms by up to 2.6x higher TPS on the InferenceX benchmark. TKCC also sets the state-of-the-art performance at batch size 1, with 1111 TPS on M3.1 Flash and 1205 TPS on DeepSeek v4.1 Flash. Finally, TKCC generalizes beyond frontier language model inference. TKCC serves trillions of tokens across our production fleet.