Together Compiler: Continual Compilation for AI Inference
Computer Science > Artificial Intelligence arXiv:2611.14681 (cs) [Submitted on 10 Nov 2026] Title:Together Compiler: Continual Compilation for AI Inference Authors: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 View a PDF of the paper titled Together Compiler: Continual Compilation for AI Inference, by Reyna Abhyankar and 11 other authors View PDF HTML (experimental)
计算机科学 > 人工智能 arXiv:2611.14681 (cs) [提交于 2026 年 11 月 10 日] 标题:Together Compiler:用于 AI 推理的持续编译 作者: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 查看标题为《Together Compiler:用于 AI 推理的持续编译》的论文 PDF,作者为 Reyna Abhyankar 及其他 11 位作者 查看 PDF HTML(实验性)
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.
摘要:当今的 AI 工作负载正在迅速变化:新模型发布频率更高,模型架构日益多样化,流量分布也频繁变动。我们在 Together AI 面临的挑战是针对这些不断变化的工作负载进行持续优化。将部署编译为优化的前向传递是一个非常适合代理爬山算法(agent hill-climbing)的挑战。由于测量吞吐量与保真度之间的权衡,现有系统在持续编译方面面临困难。
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.
许多系统使用代理通过离线基准测试来优化推理前向传递中的单个内核,但由于混合专家模型(MoE)等原语中存在数据依赖行为,其计时保真度较低。另一方面,一些系统使用代理直接优化端到端引擎,但却受到引擎启动时间缓慢的困扰。为了解决这些挑战,我们构建了 Together Compiler (TKCC),这是第一个专为 AI 推理优化设计的真正持续的代理循环。
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.
为了解决吞吐量与保真度之间的权衡,我们提出:(1) 一种分层持久引擎,将引擎启动开销与前向传递计算解耦;(2) 一种用于选择优化过程初始并行配置的成本模型。我们还对代理上下文管理进行了广泛的消融研究,并介绍了我们在生产环境中部署 TKCC 的见解。
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.
在 Llama 1B 主力工作负载上,TKCC 的性能比高度优化的手写 Megakernels 高出 1.7 倍;在 InferenceX 基准测试中,其在跨硬件平台的最新前沿模型(Kimi K3、GLM 5.3、MiniMax M3.1 Flash、DeepSeek v4.1 Flash)上的 TPS 比最佳开源引擎高出 2.6 倍。TKCC 还设定了批处理大小为 1 时的最先进性能,在 M3.1 Flash 上达到 1111 TPS,在 DeepSeek v4.1 Flash 上达到 1205 TPS。最后,TKCC 的泛化能力超越了前沿语言模型推理。TKCC 为我们的生产集群提供了数万亿 token 的服务。