Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Together AI 10 min read Deep dive mediumAdept

Autoscaling endpoints for LLM inference

LLM serving breaks classic autoscaling assumptions. GPU utilization misrepresents load, and multi-minute cold starts mean scaling has to act on leading signals. Together AI's dedicated endpoints scale proportionally (ceil(N × observed/target)) on inference-native metrics such as in-flight requests, TTFT, GPU or token utilization, and throughput, with an eager scale-up window and a patient scale-down window to avoid sawtooth cold starts. In a replayed sine-plus-spike load on Qwen3.5-9B/H100, only inflight_requests (target 8) triggered scaling. TTFT p95 and GPU utilization policies never fired despite 3–5s client p95, because continuous batching hides queue pressure from first-token latency. Measured cold starts of roughly 1.5–2.5 minutes argue for keeping min_replicas headroom on SLO-bound endpoints.

Related posts

  • Boost your throughput with dynamic batching

    Modal mediumAdept

    Modal added a `@modal.batched()` decorator that groups incoming requests into batches flushed when either `max_batch_size` is reached or `wait_ms` elapses, avoiding the unbounded waits of fixed-size batching. Batching helps GPU inference because model weights (over 6 GB for Whisper large v3) must be moved from memory to compute units per pass, and inference is usually memory-bandwidth bound. On an A10G, batching Whisper with a max batch size of 64 raised throughput from about 1.2 to 3.3 requests per second per container, cutting inference cost by roughly 65%. The function only needs to accept and return lists.

  • The future of AI needs more flexible GPU capacity

    Modal easyNovice

    Inference and many other GPU workloads are highly volatile: Poisson noise, daily and weekly cycles, viral spikes and bursty batch jobs, which pushes fixed-reservation GPU clusters below 50% utilization. A service at 1 req/s with 10s requests needs 12-15 GPUs rather than 10 just to absorb noise. Utilization improves through demand pooling across tenants (provision for the peak of the sum, not the sum of peaks), supply pooling across regions, GPU types and clouds, fast container and model startup, and shifting latency-insensitive work to off-peak hours. GPU spend is expected to skew toward inference served from on-demand, serverless capacity, with long-term reservations no longer the default.

  • Configuring Dedicated Model Inference

    Together AI mediumAdept

    Together AI's Dedicated Model Inference separates a stable endpoint name, disposable deployments (model revision + config + autoscaling replicas), and immutable config revisions that specify engine, GPU type/count, parallelism and a latency/throughput/balanced profile. Traffic splits use per-replica weights, so routing follows effective capacity (weight × ready replicas): autoscaling shifts traffic automatically, and unready deployments receive none. A live test with two H100 deployments matched expected shares (69.4/30.6 measured vs 66.7/33.3 expected after scaling one deployment to two replicas). A concurrency sweep showed one profile scaling to 1,464 tok/s at c=16 while another, faster at c=4, saturated and halved its throughput, which makes the case for load-testing configs at realistic concurrency.

  • How a global fintech scaled coding agent traffic with Dedicated Model Inference

    Together AI mediumAdept

    A global fintech serves its internal coding-agent traffic on GLM 5.2 via Together's Dedicated Model Inference, where spiky, engineering-hours load with long prompts (ISL p50/p95 of roughly 81K/178K tokens) at low RPS made concurrency, not throughput, the design priority. The production endpoint runs 14 replicas of 4 B200s at 256K context. The team turned down a 1M-context configuration because it would have cut concurrency headroom. When a reshape toward fewer, larger replicas saturated prefill and caused 1–3 minute queuing, metrics tracing showed a request stuck behind a 2.3M-token prefill backlog. It was fixed same day, with no downtime, by restoring cache-session-aware routing and raising max-inflight-per-worker. Self-serve scaling, custom-weight rollouts and blue/green testing removed the ticket-based capacity process.

  • Efficient Request Queueing – Optimizing LLM Performance

    Hugging Face mediumAdept

    Putting a gateway ("LLM-Server") in front of vLLM or TGI with per-user, per-model queues and round-robin scheduling keeps power users from starving others, which the engine's FIFO queue cannot do once requests reach it. Because vLLM doesn't cap its queue length, the gateway polls vLLM's Prometheus /metrics and only dispatches while the backend queue is below a small target (e.g. 3) and time-per-output-token stays under ~150ms. That target trades latency for new users against batch utilization. vLLM's newer priority scheduling can replace some of this logic, but a gateway is still needed to assign priorities and control the dispatch rate.

The quest for software engineering knowledge.

Look:
Layout: