AI Tools Infrastructure

Together Compiler AI inference: Agents That Retune Open Models as Traffic Shifts

Together AI describes Together Compiler AI inference tuning, where agents retune open models in under 24 hours as traffic changes, with gains of up to 2.6x.

Illustration of agents tuning a server for Together Compiler AI inference
AI-generated editorial illustration.

When an AI service answers a prompt, it runs the model on specialized chips, and the speed depends on how well the software is tuned to that model, chip and workload. Together Compiler AI inference is Together AI’s attempt to automate that tuning with software agents that keep retuning as usage changes. Together AI says the system is already serving trillions of tokens.

What does Together Compiler do?

Together AI describes Together Compiler (abbreviated TKCC) as a continual optimization loop. It takes three inputs: the traffic shape, the model and the hardware. AI agents then generate a series of optimizations for an inference engine, which is the software that runs a model and returns answers.

Together AI says the system recompiles as traffic drifts. Its loop combines agents, a persistent engine and an ensemble. The company reports that it can optimize in less than 24 hours.

Why does inference need constant retuning?

Together AI argues that hand-tuning no longer scales. It points to three sources of variation.

  • Architectures differ: Together AI says none of the top-10 open-source language models on OpenRouter share the same architecture.
  • Workloads differ: the company says it serves many trillions of tokens per day across thousands of customers, each with a different traffic shape.
  • Hardware differs: chips such as H100s, B200s and B300s each need distinct strategies.

Traffic also moves over time. Together AI reports that one country’s working-hours traffic had prompts 1.4x longer than another’s (97k versus 70k). It also says prompt length rose 80% two weeks after a model release, as users moved from chat toward agentic workloads. Bursts can double prompt lengths and lower cache hit rates.

How does it test ideas so quickly?

Together AI says agent-based tuning is usually limited by the speed of experimentation. Most systems restart an inference engine such as vLLM, SGLang or TRT-LLM for every test, and engine startup takes tens of minutes.

Together Compiler uses persistent engines instead. An engine starts once and can hot-reload any candidate change without restarting. In the company’s table, time to serving falls from 467 seconds to 9.0 seconds. Multiple agents run in parallel and share ideas through a message board, so the engines always have something new to test.

Together AI attributes a 252x higher experiment throughput, compared with baseline agentic optimization systems, to this design.

How does it keep measurements realistic?

Testing a component in isolation is fast but can mislead. Together AI explains that modern models use data-dependent techniques, such as mixture-of-experts routing and sparse attention, so the input data affects which optimization wins. Random test data can point agents toward the wrong choice.

Together Compiler uses two tiers of engines. Fast engines load a few layers for rapid, low-noise timing. Slower engines load many layers to check whether a gain holds on real data distributions.

It also uses a custom cost model to pick parallelism strategies, which are ways of splitting work across chips. The model combines hardware specs, microbenchmarks and measured forward passes to prune the search. Together AI reports that measured layouts beat the choice suggested by hardware specs alone, and that a practical layout shifts with concurrency.

What results does Together AI report?

  • Up to 2.6x higher tokens per second (TPS) on frontier open models, including Kimi K3, GLM 5.3, MiniMax M3.1-Flash and DeepSeek v4.1-Flash.
  • State-of-the-art low-latency results on SemiAnalysis’ InferenceX benchmark: 1111 TPS on MiniMax M3.1-Flash and 1205 TPS on DeepSeek v4.1-Flash.
  • A 1.7x gain over open-source megakernels on the Llama 1B batch-size-1 workload, a setting Together AI says human experts and traditional compilers have already optimized heavily.

Together AI also says the approach generalizes to weather modeling, PDE solving, time-series and biology code. These figures come from Together AI’s own post, which is the only source here, so independent replication is not yet part of the picture.

Who is affected?

Together AI’s customers are the direct users, since the company says the compiler is already serving production traffic. Anyone running open models on its platform may see speed changes without doing tuning work. The summary headline cites up to 3.7x throughput, while the post text provided reports up to 2.6x, so the larger figure should be treated cautiously until the full results are examined.

The open question is how well gains hold as traffic keeps drifting, since the loop’s value depends on repeated retuning rather than one-time results.

Sources