Together AIAnnouncement
Together Compiler: Continuous Compilation for AI inference
Summary
Together Compiler (TKCC) targets AI inference workloads whose traffic, models, and hardware change too quickly for hand-tuned optimization, with architectures and customer traffic shapes varying widely. TKCC takes traffic shape, model, and hardware as inputs and uses agents to generate optimizations for an inference engine. Its design relies on persistent engines that start once and hot-reload candidate forward passes, avoiding a 467-second status-quo startup path. A two-tier engine setup trades measurement throughput against fidelity, while a custom cost model selects parallelism strategies such as TP, EP, and DCP. In under 24 hours, TKCC reports up to 2.6x higher TPS across frontier open-source models, 1.7x over open-source megakernels on Llama 1B at batch size 1, and 252x higher experiment throughput than baseline agentic optimization systems.
Context
AI inference workloads span thousands of regimes across new models, hardware platforms, customers, use cases, and traffic shapes, making hand optimization unscalable. Together cites highly variable architectures—none of the top-10 open-source LLMs on OpenRouter use the same architecture—and variable hardware including H100s, B200s, B300s, NVL72, and Groq. It also describes regional prompt-length differences, an 80% increase in prompt length two weeks after a model release as users shift to agentic workloads, and burstiness that can double prompt lengths and lower cache hit rates. Agents could adapt to these changes, but existing agentic systems are bottlenecked by experiment speed.
Approach / What changed
TKCC takes traffic shape, model, and hardware as inputs and uses agents to generate optimizations for an inference engine. Persistent engines start once and hot-reload candidate forward passes instead of relaunching engines for each experiment; multiple agents generate ideas and coordinate through a message board. A two-tier engine setup uses fast engines with few layers for rapid, low-variance iteration and slower engines with many layers to test optimizations on real data distributions. A custom cost model combines hardware specs, microbenchmarks, and measured forward passes to select parallelism strategies such as TP, EP, and DCP while pruning the search space.
Takeaways
Persistent engines reduce total time to serving from 467 seconds in the status quo to 9.0 seconds by starting once and hot-reloading candidate forward passes instead of relaunching engines for each experiment.
The two-tier engine design separates rapid, low-variance iteration on few-layer fast engines from validation on many-layer slower engines, because data-dependent primitives such as MoE and sparse-k attention make input distributions affect which optimizations win.
TKCC reports 1111 TPS on MiniMax M3.1-Flash and 1205 TPS on DeepSeek v4.1-Flash on SemiAnalysis’ InferenceX low-latency benchmark, and 1.7x higher TPS than megakernel and CUDA graph baselines on Llama 1B batch size 1 on H100 and B200.
FAQ
How does TKCC avoid the engine restart cost that slows agentic optimization?
It uses persistent engines that start once and hot-reload any candidate forward pass without restarts. TKCC reports total time to serving of 9.0 seconds versus 467 seconds for the status quo.
Why does TKCC use both fast and slower engines?
Fast engines load a few layers and support rapid iteration with low-variance timings, while slower engines load many layers to test whether optimizations hold up on real data distributions. This balances measurement throughput against fidelity, which matters for data-dependent primitives such as MoE and sparse-k attention.
How does TKCC choose parallelism strategies such as TP, EP, and DCP?
A custom cost model uses a tiered measurement strategy combining hardware specs, microbenchmarks, and measured forward passes. It builds a high-fidelity representation while rapidly pruning the configuration search space to support continual traffic drift.
Source and freshness
- Source
- together.ai
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.