Vibeleaderboard
← All Intel
Intel / article

Serving DeepSeek-V4: why million-token context is an inference systems problem

Source
together.ai
Author
Together AI
Date
Photo by Mobin Jahantark on Unsplash

Context

DeepSeek-V4 compresses stored , but the serving engine must manage several kinds of memory to realize that saving. It combines compressed representations with exact recent context, each having different storage and reuse requirements. Together AI's early deployment account shows how retaining local state can still dominate memory consumption.

By selectively retaining local states likely to be reused, Together reports increasing total context-cache capacity on one NVIDIA HGX B200 node from roughly 1.2 million to 3.7 million tokens. This was a storage-policy result during initial implementation. Broader measurements were still forthcoming, so the concrete finding is increased cache capacity rather than a universal or cost advantage.

Terms in this piece · Glossary
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
  • attention — The mechanism that lets a model weigh which earlier words matter for the word it's currently processing — the core operation of a transformer.
  • throughput — How much model output a provider can generate over time, commonly measured in output tokens per second.
  • Latency — The time between asking for a result and having it, including the model's generation time, tool calls, retries and any queueing.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Key quotes

“Benchmark tables miss the main point of DeepSeek-V4: the important change is architectural. V4 turns million-token context into a serving-systems problem.”

Together AI

“A full-SWA implementation actually had a higher per-token KV footprint than our V3 path — roughly 3.8 KB per token versus 3.4 KB — because the engine was storing the full sliding-window state.”

Together AI

“By keeping only the SWA states most likely to be reused, we increased total KV-cache capacity on a single NVIDIA HGX B200 node from roughly 1.2M tokens to 3.7M tokens with minimal changes.”

Together AI

“Heavily Compressed Attention (HCA) uses the same compression idea but with stride 128. At a 1M-token context length, that reduces the cache from 1M token positions to roughly 8K compressed entries.”

Together AI

“For these workloads, the cost model often shifts from price per token toward cost per completed trajectory.”

Together AI
Read the source www.together.ai
More from Together AI
Recommended reads