Mission-Critical LLM Inference Platform Architecture

baseten · Tech · 2025 · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Mission-critical LLM inference platform

Baseten needed to serve custom and open-weight LLMs for customers whose products depend on strict latency, throughput, compliance, and reliability, including very large models like DeepSeek V3 and multi-model voice-call workflows.

Constraints:

Architecture

Baseten runs dedicated inference resources for customer models rather than shared per-token endpoints. Truss packages models and supports TensorRT-LLM, vLLM, SGLang, and custom serving components. For DeepSeek V3, Baseten used SGLang and had to support FP8 blockwise kernels, H200 or multi-node H100 deployments, and model-performance debugging despite slow load times. At platform level, Baseten frames mission-critical inference as three pillars: model-level performance, horizontal scaling infrastructure across replicas/regions/clouds, and developer experience for multi-step workflows. KV-cache-aware load balancing routes requests based on replica cache state, queue depth, and location. Truss Chains lets independently autoscaled models stream data between steps, reducing network round trips for workflows such as AI phone calls.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  Workflow["Customer workflow"] --> Deployment["Customer model deployment"]
  Deployment --> Truss["Truss packaging"]
  Truss --> Framework["Serving framework layer"]
  Framework --> Replicas["Dedicated inference replicas"]
  Replicas --> KV["KV cache-aware load balancer"]
  Replicas --> Cloud["Multi-cloud scaling plane"]
  Truss --> Chains["Truss Chains"]
  Chains --> Replicas
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Customer model deployment Custom or open-weight model deployed for a customer with dedicated inference resources. Truss packaging, Dedicated inference replicas
Truss packaging Open-source model packaging and deployment library that integrates with multiple inference frameworks and custom serving code. Customer model deployment, Serving framework layer, Truss Chains
Serving framework layer TensorRT-LLM, SGLang, vLLM, or custom runtime chosen for model-specific performance and customization needs. Truss packaging, Dedicated inference replicas
Dedicated inference replicas Customer-isolated model replicas running on GPUs with autoscaling and no shared-endpoint noisy-neighbor behavior. Serving framework layer, KV cache-aware load balancer, Multi-cloud scaling plane
KV cache-aware load balancer Routes requests by cache state, queue size, and replica location rather than random assignment. Dedicated inference replicas
Multi-cloud scaling plane Scales a single model across regions and cloud providers, including customer clouds and optional Baseten overflow. Dedicated inference replicas
Truss Chains Developer experience for low-latency multi-step, multi-model workflows that stream outputs between hosted models. Truss packaging, Dedicated inference replicas
Customer workflow Application-level workflow such as AI phone calls, medical transcription, or document extraction that consumes the inference platform. Customer model deployment, Truss Chains

Data flow

A customer deploys a custom or open model through Truss onto dedicated Baseten inference resources. The platform selects and customizes a serving framework such as SGLang, TensorRT-LLM, or vLLM for the workload. Requests are routed across dedicated replicas with KV-cache-aware load balancing and may scale across clouds or regions. For multi-step workloads, Truss Chains makes one external call and streams data directly between hosted models such as transcription, LLM response generation, and text-to-speech.

4 supporting quotes
“at base 10 when you deploy model whether it's your own custom weights or or or an open source model you get dedicated inference dedicated resources dedicated inference”transcript, stated
“we have trust which is our open source model packaging and and deployment Library trust works with uh different Frameworks Underneath It”transcript, stated
“what we used to do back in the day was that uh that request would be randomly assigned to one of these replicas but the better way to do it is that knowing the state of KV cach”transcript, stated
“these models are actually talking to each other they run independently on their own Hardware on their with their own autoscaling behavior but the data from one to the next step is being actually streamed”transcript, stated

Why this architecture

Baseten argues that production inference is more than picking an engine. Model-level optimizations solve only one part of the problem; the platform also needs fast horizontal scaling, multi-region or multi-cloud capacity, and workflow-level developer experience so customers can run latency-sensitive products without noisy-neighbor or network-hop failures.

3 supporting quotes
“it takes three pillars that all need to be there one is uh performance at the model level”transcript, stated
“at that point you need to horizontally scale it and that's not an ml problem that's not a pych problem that is an infrastructure problem”transcript, stated
“all of that Network back and forth is killing you the latency is is is becoming too high”transcript, stated

Models used: DeepSeek V3 · SGLang · TensorRT-LLM · vLLM · Llama 70B · Whisper fine-tunes · speculative decoding draft models · Medusa heads

Scale

Alternatives considered (roads not taken)

Offer shared inference endpoints for popular open-source models

Rejected because: Baseten intentionally serves customers with custom models, strict latency/compliance requirements, and dedicated-resource needs instead of shared per-token API endpoints.

“base end doesn't provide a shared inference endpoint for the popular open source models that is a product that that we don't have on purpose”transcript, stated
“our customers generally have have their own custom models very custom workflows strict requirements around latency and you know time to First token”transcript, stated

Quantize customer models behind the scenes

Rejected because: Baseten treats model quality as a customer requirement and only quantizes in conjunction with customer engineers and evaluations.

“we would never quantize the model behind you know the users back”transcript, stated
“we're working with them on on evals as well to ensure that the quanti models are meeting their uh their requirements”transcript, stated

Treat one serving framework as the whole production answer

Rejected because: Framework choice is only part of model-level performance, while mission-critical inference also requires scaling infrastructure and workflow developer experience.

“the framework that you choose is part of the equation for running Mission critical inference workloads but it's only a part of it”transcript, stated
“people who are somewhat new to it they're like well VM equals equals production that's what it takes to run inference workflows and that's in practice that is not true”transcript, stated

Orchestrate multi-model voice workflows as separate external API calls

Rejected because: Network round trips between models made latency too high for realistic phone-call applications.

“you have to call the first model wait for the response call the second model get wait for the response all of that Network back and forth is killing you”transcript, stated
“instead of you orchestrating all of these calls and and incurring all of that Network latency uh you're actually making one call”transcript, stated

Patterns

model-routing (operations)

Baseten selects TensorRT-LLM, SGLang, vLLM, or custom runtime pieces based on latency, throughput, customization, and model requirements.

“it's about using the uh the best of of the bunch depending on the requirements of the customer and for for their inference workloads”transcript, stated

latency-optimization (performance)

The platform optimizes model runtime, time-to-first-token, KV-cache routing, and multi-model workflow streaming for low-latency products.

“they care about how the final output in other words is the quality the same or somehow something has changed underneath the hood and the model isn't actually producing the same quality uh how is the latency”transcript, stated
“adding that additional consideration around KV cach aware load balancing was something that we saw improve latency quite a bit for our customers”transcript, stated

cost-aware-routing (operations)

Requests are routed across replicas by KV cache, queue depth, location, committed customer resources, and optional overflow to Baseten cloud.

“one of the um parameters that you need to consider there are other parameters to consider around the size of the Que at each of the replicas and uh the location of each replicas”transcript, stated
“even optionally overflow to our Cloud when they start running out of committed resources”transcript, stated

structured-output-contract (generation)

SGLang supports constrained decoding by converting JSON schemas to finite state machines that control output and can skip predictable token paths.

“convert the schema from from Json to the FSM the state machine and we can use the state machine to control the output”transcript, stated

model-distillation (model_optimization)

Speculative decoding can use draft models or Medusa heads, but the throughput gains depend on training those smaller predictors well.

“things like U speculative decoding with draft models or with Medusa heads”transcript, stated
“the kind of throughput improvement that you get are ultimately dependent on how good of a job you do at training the the draft model”transcript, stated

fine-tuning-adaptation (model_optimization)

Baseten supports fine-tuned custom models and works with customers on quantization and evaluations rather than altering weights silently.

“our customers have their own custom models custom models that uh sometimes they they fine tuned sometimes they've pre-trained”transcript, stated

Tradeoffs

Use dedicated inference instead of shared endpoints

Chose Customer-dedicated resources and consumption-based pricing over Shared open-source model endpoints priced per token.

Rationale: Baseten targets customers with custom models, compliance needs, latency guarantees, and noisy-neighbor intolerance.

“our pricing is never uh per token customers like I said generally come with with their own custom models or open source models but with strict requirements”transcript, stated
“other customers usage doesn't affect the slas that they are getting and dealing with Noisy Neighbor problems”transcript, stated

Invest in SGLang for DeepSeek and customization

Chose SGLang for performance plus developer-friendly extension over Only TensorRT-LLM or vLLM for every workload.

Rationale: TensorRT-LLM can be best for latency-sensitive cases, but SGLang was easier to customize and had DeepSeek-specific optimizations.

“we will be investing more and more in SG Lang especially as the developer experience is so much better than than tens tlm”transcript, stated
“if you also want to Implement some some feature by yourself or do some optimization by yourself you you want to the customize the framework I think SG is a good option”transcript, stated

Stream hosted models inside Truss Chains

Chose One external call with internal model-to-model streaming over Separate customer-orchestrated API calls for each model step.

Rationale: The streaming architecture removes network round trips that would otherwise make voice-call workflows feel too slow.

“all of that Network back and forth is killing you the latency is is is becoming too high”transcript, stated
“the data from one to the next step is being actually streamed”transcript, stated

Expose runtime details transparently to customers

Chose Transparent provider posture over Opaque 'just trust our magic' deployment.

Rationale: Foundation-model companies and advanced customers care about how quality, latency, and compliance are achieved under the hood.

“we want to be the transparent provider I don't want to say oh just give us your model and voila magic and Trust our magic”transcript, stated
“especially when you're onboarding you know Foundation model companies and you know they're not going to you know just turn a blond eye on how things are run”transcript, stated

Gotchas (what bit them)

Huge open-weight models may not fit on familiar GPU node shapes.

Root cause: DeepSeek V3's 671B FP8 weights alone exceed 8-card H100 memory before adding KV cache.

Resolution: Baseten used H200 GPUs or multi-node H100 configurations and implemented missing FP8 support.

“it's not possible to run that on h100 that's why we we we choose H h200 to run that model or use Martin node to run that model”transcript, stated
“currently even the T RTM doesn't support the fp8 so if we want to implement that feature we should do some feature development”transcript, stated

Debugging very large models can be slow even when the bug is not conceptually hard.

Root cause: Model load time dominates performance benchmarking and debugging loops.

Resolution: The team treats large-model debugging as slow operational work rather than assuming the implementation is inherently complex.

“if you want to do some debugging or or some performance benchmarking it's very hard why because uh the model is so large and the loading time is so long”transcript, stated
“yeah loading time is slow yeah you are right it's not complicated it's just you just go for more coffee”transcript, stated

Kubernetes autoscaling is not enough for mission-critical LLM inference.

Root cause: LLM replicas need fast scale-out, GPU capacity across regions/clouds, and stable P95/P99 behavior under bursts.

Resolution: Baseten rebuilt infrastructure pieces for horizontal scaling and multi-cloud model replication.

“some people are like oh you just need kubernetes and kubernetes has an Autos scaler and and that that just works that doesn't work”transcript, stated
“you end up having to scale that model across different regions uh and across different clouds even”transcript, stated

Framework support for speculative decoding does not automatically produce throughput wins.

Root cause: Acceptance rate depends on training or fine-tuning the draft model or additional heads with the right data.

Resolution: Baseten treats speculative decoding as model work plus framework support, not just a flag.

“the framework supporting it is one thing but you will have to do the job of the training of the draft models or the additional heads”transcript, stated
“does a framework support it or you can just turn on speculative decoding with uh with a flag that's not the case there's more that that goes to it”transcript, stated

Evaluation

Baseten evaluates inference through customer-specific quality preservation, latency and time-to-first-token targets, P95/P99 behavior under bursts, throughput, compliance/geography constraints, quantization evals with customer teams, and throughput improvements from techniques such as speculative decoding and cache-aware load balancing.

Metrics: time to first token · P95 and P99 latency · throughput under burst traffic · sub-400 ms AI phone call latency · KV cache hit behavior · quality preservation after quantization or runtime changes · region and compliance placement

3 supporting quotes
“what is the time to First token and is that sustained what is the P95 of that what is the P99 of that how well does it handle throughput”transcript, stated
“we're working with them on on evals as well to ensure that the quanti models are meeting their uh their requirements”transcript, stated
“the kind of throughput improvement that you get are ultimately dependent on how good of a job you do at training the the draft model”transcript, stated

Outcomes

The transcript cites DeepSeek V3 at 671B parameters, H100 nodes with 640 GB memory, examples of 200 replicas, cross-cloud deployments with 50 and 80 replicas in named regions, and sub-400 ms voice-call latency.

3 supporting quotes
“because we do a lot of optimization in s something like DS V2 they proposed ATT tension varant named AA multi latent attention”transcript, stated
“adding that additional consideration around KV cach aware load balancing was something that we saw improve latency quite a bit for our customers”transcript, stated
“it takes quite a bit of build to get it to the point where you're truly running folks uh customers Mission critical inference workloads”transcript, stated