Skip to content
ChaiBytes

Together AI Introduces Together Compiler to Increase AI Agent Performance

Together AI has introduced Together Compiler (TKCC), an agent-driven system that optimizes AI inference speed by up to 2.6x as traffic patterns change [1, 2].

By , Founder

2 min read

Share

What Happened

Together AI has introduced Together Compiler (TKCC), a system designed to continually optimize AI inference using coding agents [1, 2]. The system uses a continuous compilation loop where agents rewrite a model’s forward pass based on specific inputs: a server launch command, a traffic profile, and hardware configuration [1].

Key technical details and performance results include:

  • Speed Improvements: On the SemiAnalysis InferenceX ‘AgentX’ workload, TKCC achieved up to 2.6x higher tokens per second (TPS) than the best open configurations [1]. It reached 1111 TPS on MiniMax M3.1-Flash and 1205 TPS on DeepSeek v4.1-Flash [2].
  • Model Performance: On Llama 1B at batch size 1, it outperformed megakernels, Mirage, and CUDA-graph baselines by up to 1.7x [1]. It also sped up eight scientific models by 1.5x to 6.4x [1].
  • Experimentation Efficiency: TKCC reports 252x higher agent experiment throughput compared to baseline systems that require restarting the inference engine for every test [1, 2]. While many systems must restart engines like vLLM, SGLang, or TensorRT-LLM—which can take hundreds of seconds—TKCC uses a “persistent engine” that starts once and hot-reloads candidate forward passes via RPC [1, 2].
  • Testing Tiers: The system uses two measurement tiers to balance speed and accuracy. A “fast tier” serves 12 layers for quick screening, while a “slow tier” serves 60 layers to confirm gains on real data distributions [1]. This approach allowed the team to test 1,354 candidates, compared to only 168 with a single slow tier [1].
  • Cost Model: A custom cost model ranks layouts for tensors, experts, data, and context parallelism by mixing hardware specs, microbenchmarks, and measured forward passes [1, 2]. On Kimi K3, this model found a production layout with up to 24% higher TPS [1].
  • Current Status: Together Compiler is already running on several of Together AI’s serverless endpoints and is serving trillions of tokens [1, 2].

Who Is Affected

This technology is primarily for developers and companies managing large-scale AI workloads. It addresses the issue of “traffic drift,” where user behavior changes over time. For example, one customer’s input length grew from 18K to 33K tokens in just three days, and prompt lengths varied significantly between different countries [1]. The system also generalizes to domains beyond language models, including biology, weather modeling, time-series, and PDE [2].

About the author

, Founder

Sources

  1. Together AI Releases Together Compiler: Agents Make Inference Up to 2.6x Faster — MarkTechPost
  2. Together Compiler: Continual Compilation for AI inference — together.ai

Drafted with AI assistance from the reports above and checked automatically for sourcing. Always confirm dates, fees and requirements on the official website before acting. Report an error · How we correct mistakes

Was this helpful?

Questions or something to add?

Ask below. We read every comment and reply when we can.

Leave a comment

Be respectful. Comments with links are reviewed before they appear. Your email is used only to contact you about your comment, such as a reply from the editor.