Skip to content
Lex Fridman PodcastLex Fridman Podcast

DeepSeek, China, OpenAI, NVIDIA, xAI, TSMC, Stargate, and AI Megaclusters | Lex Fridman Podcast #459

Dylan Patel is the founder of SemiAnalysis, a research & analysis company specializing in semiconductors, GPUs, CPUs, and AI hardware. Nathan Lambert is a research scientist at the Allen Institute for AI (Ai2) and the author of a blog on AI called Interconnects. Thank you for listening ❤ Check out our sponsors: https://lexfridman.com/sponsors/ep459-sb See below for timestamps, transcript, and to give feedback, submit questions, contact Lex, etc. *Transcript:* https://lexfridman.com/deepseek-dylan-patel-nathan-lambert-transcript *CONTACT LEX:* *Feedback* - give feedback to Lex: https://lexfridman.com/survey *AMA* - submit questions, videos or call-in: https://lexfridman.com/ama *Hiring* - join our team: https://lexfridman.com/hiring *Other* - other ways to get in touch: https://lexfridman.com/contact *EPISODE LINKS:* Dylan's X: https://x.com/dylan522p SemiAnalysis: https://semianalysis.com/ Nathan's X: https://x.com/natolambert Nathan's Blog: https://www.interconnects.ai/ Nathan's Podcast: https://www.interconnects.ai/podcast Nathan's Website: https://www.natolambert.com/ Nathan's YouTube: https://youtube.com/@natolambert Nathan's Book: https://rlhfbook.com/ *SPONSORS:* To support this podcast, check out our sponsors & get discounts: *Invideo AI:* AI video generator. Go to https://lexfridman.com/s/invideoai-ep459-sb *GitHub:* Developer platform and AI code editor. Go to https://lexfridman.com/s/github-ep459-sb *Shopify:* Sell stuff online. Go to https://lexfridman.com/s/shopify-ep459-sb *NetSuite:* Business management software. Go to https://lexfridman.com/s/netsuite-ep459-sb *AG1:* All-in-one daily nutrition drinks. Go to https://lexfridman.com/s/ag1-ep459-sb *OUTLINE:* 0:00 - Introduction 3:33 - DeepSeek-R1 and DeepSeek-V3 25:07 - Low cost of training 51:25 - DeepSeek compute cluster 58:57 - Export controls on GPUs to China 1:09:16 - AGI timeline 1:18:41 - China's manufacturing capacity 1:26:36 - Cold war with China 1:31:05 - TSMC and Taiwan 1:54:44 - Best GPUs for AI 2:09:36 - Why DeepSeek is so cheap 2:22:55 - Espionage 2:31:57 - Censorship 2:44:52 - Andrej Karpathy and magic of RL 2:55:23 - OpenAI o3-mini vs DeepSeek r1 3:14:31 - NVIDIA 3:18:58 - GPU smuggling 3:25:36 - DeepSeek training on OpenAI data 3:36:04 - AI megaclusters 4:11:26 - Who wins the race to AGI? 4:21:39 - AI agents 4:30:21 - Programming and AI 4:37:49 - Open source 4:47:01 - Stargate 4:54:30 - Future of AI *PODCAST LINKS:* - Podcast Website: https://lexfridman.com/podcast - Apple Podcasts: https://apple.co/2lwqZIr - Spotify: https://spoti.fi/2nEwCF8 - RSS: https://lexfridman.com/feed/podcast/ - Podcast Playlist: https://www.youtube.com/playlist?list=PLrAXtmErZgOdP_8GztsuKi9nrraNbKKp4 - Clips Channel: https://www.youtube.com/lexclips *SOCIAL LINKS:* - X: https://x.com/lexfridman - Instagram: https://instagram.com/lexfridman - TikTok: https://tiktok.com/@lexfridman - LinkedIn: https://linkedin.com/in/lexfridman - Facebook: https://facebook.com/lexfridman - Patreon: https://patreon.com/lexfridman - Telegram: https://t.me/lexfridman - Reddit: https://reddit.com/r/lexfridman

Lex FridmanhostNathan LambertguestDylan PatelguestGuestguest
Feb 3, 20255h 6mWatch on YouTube ↗

CHAPTERS

  1. 0:00 – 3:30

    Why the “DeepSeek moment” matters: models, hardware, and geopolitics collide

    Lex frames the conversation as a technical and geopolitical deep dive sparked by DeepSeek’s sudden impact on the AI industry. He sets expectations: detailed explanations, less hype, and frequent zooming between high-level implications and low-level mechanics.

    • DeepSeek as a pivotal industry moment with global implications
    • Scope: from model training and inference to NVIDIA/TSMC and US–China relations
    • Goal: define terms, unpack technical details, and reduce media “low-resolution” takes
    • Positioning o3-mini vs R1 (performance, cost, chain-of-thought visibility, openness)
  2. 3:30 – 5:14

    What DeepSeek V3 and R1 are (and why the naming confuses everyone)

    Nathan introduces DeepSeek V3 as an open-weights Mixture-of-Experts (MoE) transformer and R1 as the reasoning-focused sibling released shortly after. The chapter clarifies the “base model → post-training variants” mental model to reduce confusion.

    • V3 as a frontier-grade MoE transformer released with base + instruction versions
    • R1 as a reasoning model built from overlapping training steps with V3
    • Industry-wide naming chaos (GPT-4o, o1, o3, etc.)
    • High-level roadmap: pre-training once, then different post-training paths
  3. 5:14 – 12:11

    Open weights vs open source: what you can (and can’t) do with the model

    The discussion distinguishes open weights from truly open-source AI and explains licensing differences. They also address a common fear: open weights don’t “steal data”—hosts and APIs do—while local use can keep data private.

    • Open weights = downloadable parameters; licenses define downstream rights
    • True open source (AI2’s view) includes data + code + weights
    • DeepSeek’s permissive MIT license vs more restrictive open-weight licenses
    • Privacy/security: local offline inference vs API-hosted prompts and logging
  4. 12:11 – 19:00

    Pre-training vs post-training: instruction tuning, RLHF, and reinforcement fine-tuning

    Nathan breaks down the major phases of training: next-token pre-training followed by multiple post-training stages that shape behavior. He outlines instruction tuning, preference-based alignment (RLHF and variants), and newer reinforcement approaches for verifiable domains like math/code.

    • Pre-training: next-token prediction over trillions of tokens (web-scale corpora)
    • Instruction tuning/SFT: formatting and helpfulness improvements
    • Preference fine-tuning/RLHF: aligning outputs to human preferences
    • Reinforcement fine-tuning for verifiable tasks (math answers, code unit tests)
  5. 19:00 – 24:59

    User experience difference: chat models vs reasoning models and visible chain-of-thought

    They compare how V3-like chat models respond versus R1-style reasoning models that generate extended intermediate reasoning. Lex and Nathan walk through a concrete example showing how visible chain-of-thought changes perceived intelligence and output style.

    • V3: fast, well-formatted “Reddit/StackOverflow-like” answers
    • R1: long intermediate reasoning tokens, then a final summarized answer
    • DeepSeek’s UI exposes chain-of-thought; OpenAI tends to summarize it
    • Why this captured public imagination: watching the model ‘think’
  6. 24:59 – 31:49

    Why DeepSeek trains and serves cheaply: MoE sparsity + latent attention (MLA)

    Dylan explains the two big efficiency levers: Mixture-of-Experts reduces active parameters per token, and DeepSeek’s Multi-Head Latent Attention (MLA) cuts memory pressure. They also connect these architectural choices to transformer internals (attention + dense blocks).

    • MoE vs dense: only a subset of parameters activate per token
    • DeepSeek scale: ~600B total params, ~37B active per token (illustrative)
    • MLA as an attention innovation reducing KV-cache/memory requirements
    • MoE applied in transformer feed-forward blocks; attention remains core
  7. 31:49 – 43:04

    Below CUDA: custom GPU communication scheduling, NCCL, and H800 constraints

    The conversation moves into low-level systems engineering: DeepSeek optimized communications beyond NVIDIA’s standard NCCL collectives. Constraints from China-legal GPUs (notably H800 interconnect limits) drove custom scheduling across GPU SMs to maximize utilization.

    • NCCL = NVIDIA Collective Communications Library (all-reduce/all-gather)
    • DeepSeek scheduling communications manually to reduce overhead
    • Programming near PTX/ISA levels for specialized performance gains
    • Constraints (reduced interconnect bandwidth) can force innovation
  8. 43:04 – 51:19

    Training is stressful: loss spikes, failed runs, and the ‘YOLO run’ culture

    They describe the operational reality of frontier training: constant monitoring, mysterious loss spikes, and expensive failures. Iterative experimentation culminates in high-stakes “YOLO runs” where teams commit massive compute to a final configuration.

    • Monitoring loss curves, tokens/sec, and failure modes in real time
    • Loss spikes from data pathologies and scaling/precision issues (e.g., FP8)
    • Failed runs are normal and necessary for pushing the frontier
    • ‘YOLO run’ = commit all resources after small/medium-scale experiments
  9. 51:19 – 58:58

    DeepSeek’s compute footprint: HighFlyer origins, GPU counts, and what ‘2,000 GPUs’ really means

    Dylan recounts DeepSeek’s roots inside HighFlyer (a quant hedge fund) and discusses publicly claimed versus estimated GPU capacity. They explain why quoted training numbers often omit ablations, research runs, post-training, and shared infrastructure usage.

    • HighFlyer’s early large A100 cluster (claimed 10k in 2021)
    • V3 pre-training claim: ~2,000 H800s (but total fleet likely much larger)
    • Real costs include ablations and research (often 2–4× base training compute)
    • SemiAnalysis estimate: DeepSeek may have ~50k GPUs across tasks
  10. 58:58 – 1:20:05

    Export controls: flops vs interconnect, H100/H800/H20, and why inference is becoming the bottleneck

    They unpack the logic and mechanics of US export controls, then connect them to the rise of reasoning models that demand more inference-time compute and memory. The key shift: as chain-of-thought grows, inference capacity and KV-cache memory become central strategic constraints.

    • Early export rules targeted both FLOPs and interconnect; later focused on FLOPs
    • H800: H100-like compute with reduced interconnect; H20: reduced FLOPs but strong memory/interconnect
    • Reasoning models increase ‘test-time compute’ and can cost dollars per query
    • Strategic implication: limiting large-scale inference deployment may matter more than blocking training alone
  11. 1:20:05 – 1:59:07

    China’s industrial scaling capacity, the risk of a US–China AI cold war, and Taiwan/TSMC as a chokepoint

    The discussion broadens into macro-competition: China’s ability to build power and infrastructure quickly, and how export controls may accelerate decoupling. They then emphasize TSMC’s centrality—especially R&D concentration in Taiwan—and why Taiwan is both economically vital and geopolitically fragile.

    • China’s manufacturing/power buildout as a potential advantage in megacluster scaling
    • Export controls as a ‘played card’ pushing toward separated tech economies
    • TSMC’s foundry model, economies of scale, and global dependency
    • R&D hubs (Hsinchu, Hillsboro, South Korea) as critical vulnerabilities
  12. 1:59:07 – 2:22:55

    Inference economics of reasoning: KV-cache, long outputs, and why DeepSeek’s API is unusually cheap

    They explain why output tokens cost more than input tokens (parallelizable prefill vs sequential decoding) and how KV-cache memory explodes with long reasoning traces. DeepSeek’s pricing advantage is decomposed into margins, architecture (MLA/MoE), and likely proprietary inference optimizations—plus the reality that DeepSeek sometimes lacks capacity to serve demand.

    • KV-cache and quadratic memory growth with longer sequences
    • Input tokens: parallelizable ‘prefill’; output tokens: sequential autoregressive decoding
    • Reasoning models: long outputs (tens of thousands of tokens) crush throughput and raise costs
    • DeepSeek cost gap: OpenAI margin + DeepSeek efficiency + potential hidden infra optimizations
  13. 2:22:55 – 5:06:18

    Safety, censorship, and influence: open models, hidden behaviors, and ‘cultural backdoors’

    The conversation turns to the societal risks of powerful conversational systems: censorship policies, subtle alignment, and the possibility of embedded behaviors that shape beliefs or actions. They contrast visible, obvious refusals (e.g., political topics) with harder-to-detect persuasion and data-poisoning effects, especially as open-weight models become global standards.

    • Censorship vs alignment: refusals on sensitive topics and policy-driven model behavior
    • Risk shift: from obvious restrictions to subtle persuasion and hidden triggers
    • Research angle: pre-training data poisoning can elicit targeted behaviors later
    • Concern: open models can propagate values, norms, and influence at global scale

Get more out of YouTube videos.

High quality summaries for YouTube videos. Accurate transcripts to search & find moments. Powered by ChatGPT & Claude AI.