Skip to content

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

Modal 3 min read Announcement mediumAdept

Endpoint Candidates: evaluate and promote inference endpoints

Endpoint Candidates let Modal users stage alternative deployments of a Dedicated Endpoint, such as new checkpoints or different models, mirror a sample of production traffic to them, measure latency, throughput, cost and quality, then promote a winner from the dashboard to the existing URL. Under the hood, Modal's Pingora-based proxy forks each request stream into a bounded per-Candidate buffer and also caps shared mirrored body memory per proxy process. A chunk is counted until its last network write releases it. When either limit is hit, the mirrored request is cancelled so production is never slowed. Mirroring is best-effort by design, and Candidates bill at standard compute pricing.

Related posts

  • 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.

  • Why we’re switching to Hugging Face Inference Endpoints, and maybe you should too

    Hugging Face mediumAdept

    A team moved CPU-based transformer inference off a self-built FastAPI + Docker + AWS ECS/Fargate stack onto Hugging Face Inference Endpoints, collapsing deployment to train, push to Hub, deploy. In ab benchmarks with a RoBERTa text classifier, a 4-vCPU endpoint answered in 80±30 ms versus ~200 ms on their ECS container, and an 8-vCPU endpoint in 43 ms. Cost runs 24–50% higher than Fargate (about $60/month more for a large instance), which they judge worth it without a dedicated MLOps team, though not at hundreds of services. The main gap they note is the lack of a Terraform provider; they deploy with their own hugie CLI.

  • Modal's serverless Servers

    Modal mediumAdept

    Modal Servers are a low-latency HTTP/WebSocket/gRPC serving primitive that cut p50 request latency from 39ms to 6ms versus Modal Web Functions by dropping platform-managed queueing and keeping network calls off the hot path. Requests flow through an AWS NLB, an Envoy edge proxy that terminates TLS and normalizes traffic to multiplexed HTTP/2, and fprs, a stateless Rust proxy built on Cloudflare's pingora. fprs maps domains to replicas using an in-memory cache reconciled from Spanner change streams, and it also handles autoscaling signals, proxy-level auth and traffic mirroring. The tradeoff is UDP-like: with no replica available, clients get a 503, and queueing and load shedding are pushed to the application in exchange for minimal routing overhead.

  • Autoscaling endpoints for LLM inference

    Together AI mediumAdept

    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.

  • Canary rollouts: upgrade models in production without downtime

    Together AI mediumAdept

    Together AI's rollouts shift live inference traffic from one model deployment to another using canary, blue-green or rolling strategies. Each step scales up the target, runs health gates before shifting traffic, waits for routing caches to propagate, drains the source, and on canaries evaluates metric gates (p95 router latency, error rate, inflight requests) as relative regression or absolute threshold checks. A failed gate system-pauses the rollout; operators cancel to freeze the split and run a reverse rollout instead of using a rollback verb. In a real Qwen2.5-7B → Qwen3.5-9B canary, the gate caught a 137% p95 latency regression at 10% traffic and the reversal completed with no failed requests. Timing guidance covers metric windows, step intervals and ~90s ingestion lag.

The quest for software engineering knowledge.

Look:
Layout: