DeepSeek V3, SGLang, and the state of Open Model Inference in 2025 (Quantization, MoEs, Pricing)
Latent Space
Summary
Baseten co-founder Amir Haghighat and lead model performance engineer Yineng Zhang join hosts Alessio and swyx to examine the engineering required to serve DeepSeek V3 and mission-critical open-weights models in 2025. Zhang explains that DeepSeek V3's 671 billion parameters require 671 GB of memory in FP8 plus KV cache, exceeding the 640 GB capacity of an 8xH100 node and requiring H200 GPUs or multi-node clusters alongside custom Triton or CUTLASS kernels. Haghighat reveals that production demand for DeepSeek V3 is driven primarily by teams migrating off Claude to avoid rate limits, cut costs, and control model weights on dedicated endpoints.
Looking deeper into the stack, Zhang details how SGLang achieves up to three times the throughput of vLLM using RadixAttention with a block size of 1, Multi-Head Latent Attention, and XGrammar-powered constrained decoding. Haghighat argues that model-level engines like SGLang or TensorRT-LLM represent only the first of three pillars for mission-critical inference, which must be paired with multi-region, multi-cloud autoscaling beyond single-cluster Kubernetes limits and low-latency multi-model orchestration like Truss Chains.
How time-sensitive the topic is: Developing story
By the numbers
671 billion parameters: Total parameter count of the DeepSeek V3 Mixture-of-Experts model. (Mentioned at 1:37)
640 GB: Total GPU memory on an 8-card NVIDIA H100 node, which is insufficient to hold DeepSeek V3's 671 GB of FP8 weights plus KV cache. (Mentioned at 2:35)
94.6 score: DeepSeek V3's approximate benchmark score on GSM8K despite using FP8 quantization. (Mentioned at 12:49)
400 milliseconds: End-to-end latency ceiling achieved for Bland AI phone calls by streaming data across transcription, LLM, and TTS models via Truss Chains. (Mentioned at 24:10)
200 replicas: Example horizontal scaling target for a single model that can exhaust GPU capacity inside a single cloud region. (Mentioned at 30:47)
3 times: Throughput advantage SGLang reported over vLLM in its mid-2024 benchmark blog post prior to vLLM's refactor. (Mentioned at 34:07)
1 block size: Prefix cache block size used by SGLang's RadixAttention, compared to block size 32 in vLLM and other frameworks. (Mentioned at 36:16)
7,000 GitHub stars: Approximate GitHub star count SGLang surpassed by January 2025, up from 2,000 stars in July 2024. (Mentioned at 44:24)
Questions this video answers
Why can't DeepSeek V3 run on a single 8xH100 GPU node?
DeepSeek V3 has 671 billion parameters, which require roughly 671 GB of VRAM even when quantized to FP8, plus additional memory for the KV cache. Because an 8-card H100 node only provides 640 GB of total memory, serving the model requires either an H200 node with larger memory capacity or a multi-node H100 cluster.
Yineng Zhang, 1:13 to 4:13
From this keypoint: Why DeepSeek V3 Requires H200s or Multi-Node
Why are companies switching from Claude to DeepSeek V3?
According to Amir Haghighat, production interest in DeepSeek V3 comes primarily from teams migrating off Claude rather than upgrading from smaller open-weights models like Llama 70B. They switch to avoid API rate limits, lower their inference costs, achieve stricter time-to-first-token latency, and lock in full control over model weights that will not change behind an API.
Amir Haghighat, 4:16 to 7:59
From this keypoint: Claude Users Drive DeepSeek V3 Demand
Why does the DeepSeek team recommend SGLang over vLLM for DeepSeek V3?
SGLang implemented dedicated optimizations for the DeepSeek architecture, including Multi-Head Latent Attention (MLA) introduced in DeepSeek V2, data-parallel attention in SGLang 0.4, and custom blockwise FP8 kernels. These features give SGLang superior throughput over vLLM while remaining much easier to customize than TensorRT-LLM.
Yineng Zhang, 24:31 to 28:12
From this keypoint: Why DeepSeek Recommends SGLang Over vLLM
How does SGLang's RadixAttention improve KV cache hit rates compared to vLLM?
SGLang's RadixAttention uses a prefix cache block size of 1, whereas frameworks like vLLM typically use a block size of 32. Using a block size of 1 allows much finer-grained prefix matching and increases cache hit rates, which Baseten further amplifies with KV-cache-aware load balancing across GPU replicas.
Yineng Zhang, 32:25 to 38:16
From this keypoint: SGLang's Evolution, RadixAttention, and Routing
Why did Baseten need custom FP8 kernels for DeepSeek V3?
Unlike most open models released in BF16, DeepSeek V3 released its weights natively in blockwise FP8 precision. Standard libraries like cuBLAS and TensorRT-LLM did not support DeepSeek's specific blockwise FP8 format out of the box, requiring engineers to write custom kernels in Triton or CUTLASS.
Amir Haghighat, 8:00 to 12:59
From this keypoint: Dedicated Endpoints and Native FP8 Training
How does Baseten achieve sub-400ms latency for multi-step AI voice calls like Bland AI?
Calling separate transcription, LLM, and text-to-speech endpoints sequentially from a client incurs heavy network round-trip latency. Baseten built Truss Chains so the deployed models stream data directly to one another inside the infrastructure while scaling independently, bringing end-to-end AI phone call latency under 400 milliseconds.
Amir Haghighat, 18:09 to 24:31
From this keypoint: Truss Chains Cut Multi-Model Latency Below 400ms
What are the downsides of jump-forward constrained decoding in SGLang?
Jump-forward decoding uses a finite state machine to skip deterministic multi-token sequences during structured JSON generation, replacing multiple decode steps with a single prefill. However, maintaining jump-forward compatibility alongside optimizations like CPU-overlap scheduling is complex, so SGLang disables jump-forward by default.
Yineng Zhang, 38:17 to 42:51
From this keypoint: Jump-Forward Decoding and XGrammar vs Outlines
Why is Kubernetes autoscaling insufficient for mission-critical LLM inference?
Standard Kubernetes runs within a single cluster tied to a single cloud region and cannot scale heavy GPU replicas fast enough to protect P99 latency during traffic spikes. Furthermore, scaling a model to 200 multi-GPU replicas often exhausts a single region's GPU supply, requiring multi-region and multi-cloud orchestration.
Amir Haghighat, 28:12 to 32:24
From this keypoint: Three Pillars of Mission-Critical Inference
What is required to get real throughput gains from speculative decoding?
Even when an inference framework supports speculative decoding methods like EAGLE-2 or Medusa, you cannot simply flip a flag and expect optimal speedups. Throughput gains depend on how well you train or distill the draft model or extra heads on domain-relevant data to achieve a high token acceptance rate.
Yineng Zhang, 42:52 to 46:44
From this keypoint: SGLang Adoption at xAI and Speculative Decoding
Will reasoning models replace domain-specific fine-tuning?
Amir Haghighat notes that while future reasoning models may eventually handle specialized tasks via few-shot prompting, they are not yet cost-effective enough to replace fine-tuning. Today, healthcare companies still see strong returns fine-tuning models like Whisper for medical jargon and custom LLMs for document extraction.
Amir Haghighat, 46:45 to 52:28
From this keypoint: Domain Fine-Tuning vs Future Reasoning Models
Credible AI™ signals
Confidence: Practitioner Engineering. Amir Haghighat and Yineng Zhang provide concrete engineering figures on VRAM capacity, FP8 quantization kernels, and SGLang architecture grounded in hands-on deployment of DeepSeek V3. Their commercial stake in Baseten colors product claims, though technical specifics remain precise and verifiable.
Bias: Baseten & SGLang Advocacy. As Baseten leaders and SGLang contributors, the guests naturally frame dedicated GPU infrastructure and SGLang as superior to shared token APIs and rival engines like vLLM. They still acknowledge TensorRT-LLM's raw latency edge and vLLM's strong community support.
Originality (82%): Firsthand Deployment Insights. Rather than repeating public benchmarks, the discussion delivers rare operational insights into serving a 671-billion-parameter model on H200 clusters, custom blockwise FP8 Triton kernels, KV-cache-aware routing, and multi-cloud autoscaling.
Depth (85%): Deep Systems Breakdown. The hosts and guests dissect the full inference stack from low-level CUDA and CUTLASS kernels, Multi-Head Latent Attention, and RadixAttention block sizes up to finite-state-machine decoding and multi-region GPU orchestration.
Key points (12)
Short (15 min): key points 1, 2, 7 and 10
Medium (31 min): key points 1, 2, 7, 8, 9, 10 and 12
Relaxed (51 min): all 12 key points
1. Why DeepSeek V3 Requires H200s or Multi-Node
Timestamp: 00:01:13 to 00:04:13 (3 min)
Speaker: Yineng Zhang
Yineng Zhang explains that DeepSeek V3's 671 billion parameters require 671 GB of memory even in FP8 precision, plus extra memory for KV cache. Because an 8-card H100 node only provides 640 GB of VRAM, Baseten must run the model on H200 GPUs or multi-node clusters while implementing custom FP8 quantization kernels.
Impact: High. Why it matters: Exposes the hard hardware memory ceiling that prevents standard single-node H100 clusters from serving frontier 600B-plus open models.
“even we we use the h008 cards it should be 640 GB memory so D6 V3 model it has uh 671 billion weights so even use the fp8 appreciation you need I think uh 671 gab for the weights”
In the video: Yineng Zhang, at 2:29
Neutral: Alessio, swyx
2. Claude Users Drive DeepSeek V3 Demand
Timestamp: 00:04:16 to 00:07:59 (4 min)
Speaker: Amir Haghighat
Amir Haghighat observes that production interest in DeepSeek V3 comes primarily from teams migrating off proprietary APIs like Claude rather than upgrading from Llama 70B. Customers switch to avoid rate limits, reduce costs, meet strict time-to-first-token targets, and prevent underlying API models from changing unexpectedly.
Impact: High. Why it matters: Reframes DeepSeek V3 as a direct competitor to frontier closed APIs rather than merely an upgrade for existing open-weights users.
“is generally not coming from folks who are trying to upgrade from a certain open source model to deeps V3 is uh we're seeing it generally speaking from folks who are coming from Claude”
In the video: Amir Haghighat, at 5:54
For: Yineng Zhang
Neutral: Alessio
3. Dedicated Endpoints and Native FP8 Training
Timestamp: 00:08:00 to 00:12:59 (5 min)
Speaker: Amir Haghighat
Amir Haghighat contrasts Baseten's dedicated inference model against shared per-token endpoints, noting that enterprise customers forbid silent weight quantization that could degrade output quality. Yineng Zhang adds that DeepSeek V3's native blockwise FP8 training achieves nearly 94.6 on GSM8K but requires custom Triton or CUTLASS kernels because cuBLAS lacks support.
Impact: High. Why it matters: Highlights the tension between speed-focused quantization on shared clouds and strict quality guarantees required by enterprise AI teams.
“it use the blockwise fp8 and currently even you use something like uh kud K blast you cannot support that so you you should use something like treaton to implement the the kernel”
In the video: Yineng Zhang, at 11:44
For: Yineng Zhang, swyx
Neutral: Alessio
4. Why Fine-Grained MoE Succeeded Where Meta Failed
Timestamp: 00:13:00 to 00:15:41 (3 min)
Speaker: Yineng Zhang
swyx and Yineng Zhang examine why Mixture-of-Experts models stalled in 2024 before returning with DeepSeek V3's fine-grained MoE architecture. Yineng Zhang suggests that labs like ByteDance and Baidu use similar MoE designs internally, whereas Meta likely withheld a Llama MoE because its training benchmark scores lagged behind dense models.
Impact: Medium. Why it matters: Explains why major Western labs stuck to dense models in 2024 while Chinese labs proved fine-grained MoE can top leaderboards.
“the reason why llama open source the M model because I I think they they try to change M model but they failed so that that's why they didn't open source Mo model for llama serious”
In the video: Yineng Zhang, at 14:53
For: swyx
5. Resource Consumption Pricing and Multi-Cloud
Timestamp: 00:15:42 to 00:18:08 (2 min)
Speaker: Amir Haghighat
Amir Haghighat explains that Baseten prices by compute consumption rather than per token, deploying either inside Baseten's cloud or across a customer's committed AWS and GCP virtual private clouds. Baseten's multi-cloud layer lets enterprises pool fragmented GPU capacity across clouds and overflow into Baseten hardware when needed.
Impact: Medium. Why it matters: Shows how enterprise AI infrastructure shifts from simple token APIs to unified multi-cloud GPU capacity management.
“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 around certain things”
Amir Haghighat describes how Baseten evolved its open-source Truss SDK beyond single-model wrappers to support six or seven foundation model labs and complex multi-step workflows. For AI phone call startup Bland AI, Baseten built Truss Chains to stream data directly between transcription, LLM, and text-to-speech models, achieving sub-400ms end-to-end latency.
Impact: High. Why it matters: Demonstrates that network round-trips between chained models often bottleneck real-time AI applications more than raw token generation speed.
“the data from one to the next step is being actually streamed and that way going back to the AI phone call use case you can get sub 400 millisecond latency AI phone calls”
In the video: Amir Haghighat, at 24:03
Neutral: Alessio
7. Why DeepSeek Recommends SGLang Over vLLM
Timestamp: 00:24:31 to 00:28:12 (4 min)
Speaker: Yineng Zhang
Amir Haghighat notes that enterprise customers care about sustained P99 latency, HIPAA compliance, and geo-routing rather than specific runtimes, though Baseten remains transparent about its stack. Yineng Zhang explains that DeepSeek recommends SGLang because it outperforms vLLM, is easier to use than TensorRT-LLM, and supports Multi-Head Latent Attention, data-parallel attention, and blockwise FP8 kernels.
Impact: High. Why it matters: Pinpoints the exact kernel and attention optimizations that made SGLang the preferred engine for DeepSeek V3.
“in the latest sgan release we also support a blockwise fp8 kernel and that kernel was adopt copied by PM later so I I think we have done a lot of optimization for deeps”
In the video: Yineng Zhang, at 27:50
For: Amir Haghighat
Neutral: Alessio
8. Three Pillars of Mission-Critical Inference
Timestamp: 00:28:12 to 00:32:24 (4 min)
Speaker: Amir Haghighat
Amir Haghighat argues that running vLLM or SGLang on a single GPU is only the first of three pillars required for mission-critical production inference. The second pillar requires custom infrastructure beyond standard single-cluster Kubernetes to autoscale up to 200 replicas across multiple clouds and regions, while the third pillar wraps multi-model workflows in a clean developer experience.
Impact: High. Why it matters: Corrects the common engineering misconception that spinning up an open-source serving library equates to production-ready inference infrastructure.
“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 for for these kinds of mission critical inference workflows”
In the video: Amir Haghighat, at 30:01
For: Yineng Zhang
9. SGLang's Evolution, RadixAttention, and Routing
Timestamp: 00:32:25 to 00:38:16 (6 min)
Speaker: Yineng Zhang
Yineng Zhang traces SGLang's evolution from a frontend language in August 2023 to a full inference backend achieving up to 3x vLLM's throughput by mid-2024, powered by RadixAttention using a block size of 1 for higher prefix cache hit rates. Amir Haghighat adds that Baseten layers KV-cache-aware load balancing on top to route incoming requests to replicas holding matching prompt prefixes.
Impact: High. Why it matters: Explains how granular block-size-1 prefix caching and cache-aware routing slash latency across distributed GPU replicas.
“for FM or for other Frameworks they use something block size 32 and SG use the block size one I think if you use the block size one you can make the cat heat rate higher than other Frameworks”
In the video: Yineng Zhang, at 36:11
For: Amir Haghighat
Neutral: Alessio
10. Jump-Forward Decoding and XGrammar vs Outlines
Timestamp: 00:38:17 to 00:42:51 (5 min)
Speaker: Yineng Zhang
Yineng Zhang explains how SGLang converts JSON schemas into finite state machines using Outlines or XGrammar, allowing jump-forward decoding to predict deterministic multi-token sequences in a single prefill step. Because maintaining jump-forward alongside CPU-overlap scheduling is complex, SGLang disables jump-forward by default and favors XGrammar for superior constrained decoding speed.
Impact: Medium. Why it matters: Reveals the practical maintenance trade-offs of jump-forward decoding and highlights XGrammar's emergence as the fastest structured output backend.
“just if you want to maintain the jump forward with other features it will be more complicated so I think we we only use it default setting we disable it by default”
In the video: Yineng Zhang, at 40:11
Neutral: Alessio, swyx
11. SGLang Adoption at xAI and Speculative Decoding
Timestamp: 00:42:52 to 00:46:44 (4 min)
Speaker: Yineng Zhang
Yineng Zhang confirms that xAI uses SGLang because SGLang creators Lianmin Zheng and Ying Sheng are members of technical staff there, and notes SGLang's GitHub stars grew from 2,000 in July 2024 to over 7,000 with state-of-the-art EAGLE-2 support. Amir Haghighat cautions that speculative decoding cannot simply be toggled on with a flag, as throughput gains depend heavily on training custom draft models or Medusa heads.
Impact: Medium. Why it matters: Clarifies when engineers should pick TensorRT-LLM, vLLM, or SGLang, and demystifies what it takes to make speculative decoding work in production.
“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 in the case of the draft Target Model mechanism”
In the video: Amir Haghighat, at 46:20
For: Amir Haghighat
Neutral: swyx
12. Domain Fine-Tuning vs Future Reasoning Models
Timestamp: 00:46:45 to 00:52:28 (6 min)
Speaker: Amir Haghighat
Responding to swyx's question on reinforcement learning and reasoning models, Amir Haghighat shares that healthcare customers still rely heavily on fine-tuned Whisper and document extraction models trained with human-in-the-loop data. While complex reasoning models may eventually replace domain fine-tuning in the long term, Haghighat argues fine-tuning remains more cost-effective today and worth building around.
Impact: Medium. Why it matters: Grounds the hype around o1-style reasoning models in unit economics, showing why domain-specific fine-tuning persists in enterprise production.
“will it be cost effective that's the question that that I have um and in the short term no in the long term maybe but I haven't seen the need for the more traditional fine tuning actually go down”
In the video: Amir Haghighat, at 48:30
For: swyx
Neutral: Alessio
Conflicts of interest (2)
Baseten Executive Product Promotion
Commercial conflict, Medium severity
Guests Amir Haghighat and Yineng Zhang are co-founder and lead model performance engineer at Baseten, the inference platform discussed throughout the episode.
Sources: Amir Haghighat, Yineng Zhang, Baseten
Significance: Their architectural critique of shared per-token APIs and standard Kubernetes autoscaling directly favors Baseten's dedicated resource consumption model and proprietary Truss Chains product.
Baseten Sponsorship of Latent Space Events
Commercial conflict, Low severity
Baseten sponsored the first Latent Space Demo Day and hackathon in 2023, establishing an ongoing commercial relationship with hosts Alessio and swyx.
Sources: Alessio, swyx, Amir Haghighat, Baseten
Significance: The hosts maintain a friendly, collaborative rapport with Baseten leadership and offer uncritical marketing advice rather than pressing on competitive weaknesses.
Key sources
Alessio: Partner and CTO at Decibel Partners, Co-host of Latent Space Podcast
swyx: Founder of Smol AI, Co-host of Latent Space Podcast
Amir Haghighat: Co-founder of Baseten
Yineng Zhang: Lead Model Performance Engineer at Baseten and SGLang Contributor
Who's in this
Baseten
DeepSeek V3
SGLang
NVIDIA H200
NVIDIA H100
TensorRT-LLM
vLLM
Claude
Llama 3
Truss
Bland AI
XGrammar
Outlines
xAI
Cursor
Also mentioned
Latent Space Podcast (First mentioned at 0:04)
Kubernetes (First mentioned at 30:02)
Together AI (First mentioned at 8:30)
Fireworks AI (First mentioned at 8:59)
Replicate (First mentioned at 8:59)
cuBLAS (First mentioned at 11:49)
Triton (First mentioned at 11:55)
CUTLASS (First mentioned at 12:00)
GSM8K (First mentioned at 12:43)
Mixtral (First mentioned at 13:23)
Grok (First mentioned at 14:17)
AWS (First mentioned at 16:57)
Google Cloud Platform (First mentioned at 17:00)
Triton Inference Server (First mentioned at 19:08)
NVIDIA (First mentioned at 19:36)
DeepSeek V2 (First mentioned at 27:22)
LMDeploy (First mentioned at 27:32)
Lianmin Zheng (First mentioned at 33:02)
Ying Sheng (First mentioned at 33:02)
Tianqi Chen (First mentioned at 40:40)
Shanghai Jiao Tong University (First mentioned at 41:07)
Decibel Partners (First mentioned at 0:11)
Smol AI (First mentioned at 0:13)
Noam Shazeer (First mentioned at 8:06)
01.AI (First mentioned at 11:23)
Baidu (First mentioned at 13:45)
ByteDance (First mentioned at 13:45)
Jeff Dean (First mentioned at 14:40)
Gemini 1.5 Pro (First mentioned at 14:47)
Cog (First mentioned at 20:59)
Oracle (First mentioned at 31:16)
This analysis was generated by skim (skim.plus), an AI-powered content analysis platform by Credible AI. Scores and classifications represent the platform's AI-generated assessment and should be considered alongside other sources.