cover image

DSpark can make decoding faster, but acceptance quality still determines how much speed the system actually realizes.

cover image

DeepSeek V4 runs a million-token context at a quarter of V3.2's compute and a tenth of its KV cache. The trick is two new attention kernels it shipped, CSA and HCA. Here's how they work: At a million tokens, two things explode: the KV cache grows linearly with the sequence, and attention compute grows quadratically. DeepSeek's MLA (from V2) attacked this by compressing the head dimension, shrinking each token's KV footprint. DSA (V3.2) added a sparse indexer that reads only the top-k tokens per query. But both left a wall. MLA still stores every token. DSA's indexer still scans every token just to score it. At a million tokens the sequence length itself is the enemy. V4's move is to compress along the sequence dimension instead of the head dimension. CSA, Compressed Sparse Attention, does it in two steps. First it pools every 4 tokens into one KV entry with a learned, data-dependent weighting and overlapping windows, so block boundaries blur. That alone cuts the cache 4x. Then it runs DSA's lightning indexer over the compressed entries, keeps the top 1024, and adds a 128-token sliding window for local detail. The clever part is the compounding. CSA reuses DSA's indexer unchanged, but now runs it over a sequence that's already 4x shorter. The indexer's quadratic scan, the exact thing that bottlenecked V3.2 at long context, shrinks with the compression. Compress, then sparsify, and the two wins multiply. HCA, Heavily Compressed Attention, is the same operator with the knobs cranked: pool 128 tokens into one entry, no overlap, then attend densely over all of them. At a million tokens that's only about 8000 entries, so dense attention is cheap and you can drop the indexer entirely. The detail I love: HCA is literally CSA with the top-k budget set to keep everything. vLLM ships it as a sparse kernel with k=8192, which just means every entry. CSA finds the specific clause in the contract. HCA senses the topic shifted three pages ago. So V4 interleaves them through its 61 layers and lets the model learn which view each layer needs. Top-k selection isn't differentiable, so DeepSeek never backpropagates through it. The indexer is trained by a separate loss, detached from the main graph, that distills the full dense attention distribution into the indexer's scores. The model learns from the language loss, the indexer learns from the distillation loss, and they never share a gradient. And the indexer scores with a ReLU, not a softmax, because you only need a ranking, not a distribution. You never exponentiate, which is exactly what lets the whole indexer run in 4-bit. At a million tokens V4-Pro activates more parameters than V3.2 (49B vs 37B) and still runs attention at 27% of the cost. CSA's working set stays near 1100 entries no matter how long the context gets. MLA compressed the width of a token. DSA sparsified the reads. And V4 is the first to attack both axes at once!

cover image
Inside China’s Machine: DeepSeek V4
30 Apr 2026
open.substack.com

Two Open-Weight Models. Eight Chip Families. One Frontier Co-Engineered for Non-Nvidia Silicon. The Stack Was the Moat. Now It Has a Fork.

cover image
DeepSeek V4 Preview Release | DeepSeek API Docs
27 Apr 2026
api-docs.deepseek.com

🚀 DeepSeek-V4 Preview is officially live & open-sourced! Welcome to the era of cost-effective 1M context length.

cover image

The promotional discount runs until 5 May 2026. Even at full price, V4-Pro already undercuts GPT-5.5, Claude Opus 4.7, and Gemini 3.1 Pro on per-token costs. The move is a direct challenge to the pricing strategy of US AI providers at a moment when the Trump administration has accused Chinese firms of distilling American AI […]

cover image

The company says its cost-efficient new V4 model is competitive with top closed-source models from OpenAI and Google DeepMind.

cover image

Chinese AI lab DeepSeek’s last model release was V3.2 (and V3.2 Speciale) last December. They just dropped the first of their hotly anticipated V4 series in the shape of two …

cover image

In January 2025, DeepSeek, a Chinese AI startup, launched R1, an AI model that rivaled top-tier LLMs from OpenAI and Anthropic. Built at a fraction of the

cover image
DeepSeek Debrief: 128 Days Later
6 Jul 2025
semianalysis.com

SemiAnalysis is hiring an analyst in New York City for Core Research, our world class research product for the finance industry. Please apply here It’s been a bit over 150 days since the launc…

cover image

DeepSeek is set to drop another model pretty soon, as details about their next DeepSeek R2 model have surfaced on the internet

cover image

Thanks to KiwiCo for sponsoring today’s video! Go to https://www.kiwico.com/welchlabs and use code WELCHLABS for 50% off your first monthly club crate or for...