Together Compiler
Together Compiler (TKCC) is a system from Together AI that uses coding agents to speed up model inference. It optimizes the forward pass, the computation the serving engine runs on a model's inputs. The agents start with a particular engine, hardware configuration and traffic profile, change the implementation, and time it on that workload. Together announced the system on November 4, 2026. The company said it was using TKCC on some of its serverless endpoints and offering customers access in a limited beta.[1][2][3]
How the compiler searches
The cost model narrows the set of configurations to try. For example, a deployment can divide individual tensor operations among accelerators using tensor parallelism, or distribute the experts of a mixture-of-experts model using expert parallelism. The choice depends partly on how many requests the server handles at once. Coding agents can then rewrite the forward pass, combine operations into a single kernel, or remove work the engine was doing unnecessarily.[2]
A running engine can load a changed forward pass without reloading all the model weights. A fast test using a subset of layers screens candidate changes. A slower test with more layers measures promising candidates under conditions closer to the target deployment. In the authors' MiniMax M3.1 Flash experiment with TensorRT-LLM, the two tiers had these characteristics.[2]
| Measurement | Fast tier | Slow tier |
|---|---|---|
| Model layers served | 12 | 60 |
| Time to reload a changed forward pass | 17 seconds | 45 seconds |
| Median time to complete a test job | 28 seconds | 64 seconds |
Input values can change which implementation wins. Together described a kernel that selected the highest attention scores by first sorting candidates into bins. It took 20 microseconds with random inputs. Real model inputs contained many exact zeros, crowding one bin and increasing the runtime to 62 milliseconds. An isolated test on random data would have favored the wrong implementation.[4]
Benchmarks and limits
The authors evaluated NVIDIA and AMD deployments using the AgentX workload from InferenceX, which replays multi-turn coding-agent traces. They compared each deployment with the leading configuration for the same hardware, model and request concurrency as of October 27, 2026. The vLLM and SGLang experiments were among these comparisons. A separate Trainium2 evaluation used synthetic multi-turn traffic with shorter contexts.[2][5]
On the NVIDIA B200 at batch size one, the authors reported 1,111 tokens per second for MiniMax M3.1 Flash, against 633 for the best published configuration they compared. TKCC chose eight-way tensor parallelism for its optimized implementation. Switching the original engine from four-way to eight-way parallelism by itself gave about the original speed. The gains could also reverse with load. On Kimi K3, one change to the experts' output projection improved performance by 2.8% to 5% at tested concurrency levels from 22 to 78, but slowed it by 6.6% at concurrency eight.[2]
Continue reading
- Together AITogether AI is an AI cloud platform for running, fine-tuning, and training open-source foundation models at high performance and low cost.Linked in the introduction
- InferenceIn machine learning, inference is the execution of a trained model to produce an output from an input.Linked in the introduction
- InferenceXInferenceX, launched in October 2025 under the name InferenceMAX, is an open-source benchmark that continuously measures large language model inference performance across AI accelerators and serving software.Also in AI Inference
- Mixture of Experts (MoE)A mixture of experts (MoE) is a machine-learning architecture that contains multiple component functions called experts and a gating or routing mechanism that determines how their outputs contribute to a…Also in AI Inference
- NVIDIA TensorRT-LLMNVIDIA TensorRT-LLM is an open-source library developed by nvidia for high-performance inference of large language models on NVIDIA GPUs.Also in AI Inference
- KV CacheKV cache, short for key-value cache, is transient model state used during Transformer generation.Also in AI Inference
More to read
Topics:AI Inference
References
- ^Reyna Abhyankar, Dylan Lim and Simran Arora. Together Compiler: Continual Compilation for AI inference. Together AI, November 4, 2026.
- ^1 ^2 ^3 ^4 ^5Reyna Abhyankar et al. Together Compiler: Continual Compilation for AI Inference. November 10, 2026. Sections 4 and 5, table 1 and appendix A.
- ^Together AI. Polymorphic Inference: self-tuning inference for open models. November 4, 2026.
- ^Together AI. Last year we built megakernels. This year we deleted them: The road to Together Compiler. November 16, 2026.
- ^SemiAnalysis. InferenceX AgentX benchmark documentation.
Improve this article
Add missing citations, update stale details, or write a clearer explanation. Anyone can edit: changes go live when you publish, and every edit is checked by an editor.
1 revision · v1 · 564 words · full history
Fact-checks are independent of edits: a reviewer re-verifies the article against its sources and stamps the date. How we verify
Research and drafting on this wiki are AI-assisted, under named human editorial standards. How AI is used here
Cite this page: AI Wiki. "Together Compiler." aiwiki.ai, updated 30 Nov 2026. CC BY 4.0. https://aiwiki.ai/wiki/together_compiler



