Together Compiler: Continual Compilation for AI inference
Together Compiler (TKCC) is an agent-driven continual optimization loop that recompiles inference engines as model, hardware and traffic shape drift. It avoids repeated engine restarts by using persistent engines that hot-reload candidate forward passes, cutting time-to-serving from 467s to 9s and raising experiment throughput 252x. A two-tier setup pairs fast few-layer engines for low-variance timing with slower many-layer engines that check results on real data distributions, which matters for MoE and sparse attention. A cost model combining hardware specs, microbenchmarks and measured forward passes picks the parallelism strategy, and the system reports up to 2.6x higher TPS on InferenceX AgentX, 1.7x over open-source megakernels on Llama 1B at batch size 1, and gains on non-LLM workloads.
Related posts
- Together AI at ICML 2026: frontier research across the full stack
Together AI hardMasterTogether AI's nine ICML 2026 papers span the AI stack from agents to GPU kernels, each with a headline result. ThunderAgent makes multi-turn agent workflows visible to the inference scheduler for 1.5–3.6x throughput. Aurora trains speculative-decoding drafters online via asynchronous RL on accepted/rejected tokens, gaining 1.25x over a static speculator. Untied Ulysses chunks attention by head to fit 5M-token training on one 8xH100 node, and OEA recovers MoE sparsity under batching for up to 39% faster decode without retraining. The rest cover verifier-free reasoning (RARO), pairwise self-verification (V1), test-time RL for discovery (TTT-Discover), a data-science agent benchmark (DSGym), and a multi-GPU kernel generation benchmark where the best frontier model solves fewer than a third of 87 tasks.
- Benchmarking inference at scale: coding agents
Together AI hardMasterOn a long-context, high-concurrency coding agent workload (prompts ~45k–200k tokens, ~450-token outputs, EAGLE speculative decoding) running Kimi K2.5 on B200 GPUs, Together Inference Engine delivers 31% more per-user TPS than TensorRT-LLM at 2.5M TPM. It holds p50 TTFT at 0.71s, versus 1.1s for TensorRT-LLM and 5.1s for SGLang, which needed 8 GPUs instead of 4 due to EAGLE memory overhead. The gains are attributed to ThunderMLA, a fused megakernel for Multi-head Latent Attention reported as 20–35% faster than FlashMLA, plus custom kernels found through end-to-end profiling. The post argues that prefill-heavy, concurrent long-context load and TTFT under saturation matter more than single-user benchmarks, and closes with vendor cost comparisons against Claude Opus.
- Key research and product announcements at the AI Native Conf
Together AI hardMasterTogether AI announced seven research and product releases spanning GPU kernels, reinforcement learning infrastructure and inference optimization. FlashAttention-4 targets NVIDIA Blackwell and is reported 2.7x faster than Triton and 1.3x faster than cuDNN 9.13. A single-kernel Megakernel cut a voice agent's time-to-first-64-tokens from 281ms to 77ms, and together.compile beats torch.compile by 41% on a Flux Kontext benchmark. ThunderAgent schedules whole agentic workflows to avoid KV cache thrashing and leaked tool sandboxes, ATLAS-2 retrains speculative decoders online from live traffic, and cache-aware prefill-decode disaggregation sends warm and cold requests to separate tiers over an RDMA KV cache for 35-40% higher QPS.
- The science behind TorchNeuron, Amazon’s new PyTorch backend for AWS Trainium chips
Amazon Science mediumAdeptTorchNeuron is an open-source PyTorch backend that runs existing PyTorch code on AWS Trainium with little or no change. It adds an opt-in adaptive eager mode that batches dispatched ops into small subgraphs and compiles them in parallel. The subgraphs are sized so compile time overlaps with execution and stays hidden, while source-line correlation is preserved for debugging. Compiled NEFF executables are cached in memory, on disk, and through a per-machine shared compilation service, which cut time-to-first-step by about a third for a 64-process LLM run. Validation used AI agents to mine Hugging Face down to 841 representative models plus a registry of tens of thousands of tensor shapes, feeding a staged pipeline of fast unit tests, then representative models, then the full model set.
- Last year we built megakernels. This year we deleted them: The road to Together Compiler
Together AI hardMasterMegakernels for Llama 1B hit 990 TPS on H100 but were too inflexible to productionize, supporting only one model, batch size and precision. Applying CUDA Graphs plus Programmatic Dependent Launch (PDL) to default Torch Inductor kernels recovers 98% of that performance with no hand-written kernels, and agent-driven "multi-kernels" beat the old megakernels by up to 1.7x, exceeding 1100 TPS. The analysis also shows where Inductor falls short: workload-dependent flag effects across 607 config options, misleading isolated benchmarks (L2 flushes, zeroed inputs, CPU launch overhead in timings), and greedy pairwise fusion that ignores SM utilization. These findings shaped Together Compiler, a system that searches the optimization space and measures kernels inside real forward passes on real data.