proomt

Search

Search posts, papers, and topics

All posts

Hugging Face Daily PapersDeepSeek-AI, Anyi Xu, B. Li3 min readpaperadvanced

DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression

Summary

DeepSeek‑V4.1‑Flash is a 552B‑parameter multimodal Mixture‑of‑Experts LLM that supports up to 1 M‑token contexts while slashing KV‑cache memory to 890 bytes/token (≈¼ of its predecessor) via cross‑layer reuse (CSA2) and FP4 quantisation, plus a SWA‑Bounded Replay scheme that cuts persistent cache to 1/8. The Causal Encoder‑Decoder design halves prefill compute (8B vs 16B active parameters) and th…

  • KV‑cache compression is tackled on three fronts: (1) cross‑layer reuse in Compressed Sparse Attention 2, (2) 4‑bit floating‑point (FP4) KV storage, and (3) SWA‑Bounded Replay to keep most cache off‑chip.
  • Memory footprint drops from ~3.5 KB/token (DeepSeek‑V4‑Flash) to 0.89 KB/token in HBM, and persistent SSD/host memory usage falls to ~1/8 of the baseline.
  • CED architecture activates 16 B parameters per token during decode but only 8 B during prefill, improving cost for long‑horizon agents.
  • Model trained on 45 T multimodal tokens; evaluation shows better latency‑throughput and task performance despite the smaller cache.

KV‑cache size is the dominant cost driver for serving LLMs with long contexts. By reducing per‑token cache to sub‑kilobyte levels without sacrificing accuracy, DeepSeek‑V4.1‑Flash makes million‑token agents viable on current HBM/SSD budgets, opening the door to cheaper, higher‑throughput deployment…

8/10

Related reading

  1. Fathom: Per-Query Read Depth for Sparse Decoding over Offloaded KV Caches

    Fathom introduces a per-query read depth mechanism for sparse decoding over offloaded KV caches, allowing each query to adaptively decide how many bits of each key channel to read. This method significantly speeds up decoding for large language models with long contexts by reducing host memory traffic, achieving 1.67x faster GPU decoding on Qwen3-8B at one million tokens.

    Hugging Face Daily Papersarxiv.org1 minpaper
  2. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash

    Cactus Needle 3 is a laddered attention LLM (29‑121 M params, CQ2‑bit quantised) that fits in 9‑29 MB binaries and runs on devices like a Raspberry Pi 5 (400‑4k t/s decode, 1‑10k t/s pre‑fill). It can perform tool‑calling, structured extraction, and text embedding locally, matching DeepSeek V4 Flash on downstream tasks after a single fine‑tune epoch. The post includes architecture details, benchm…

    Hacker News front pagecactuscompute.com7 minreleaseHN537185
  3. tokenizers v1: encode, decode and scaling, measured

    Hugging Face has released `tokenizers` v1, a major performance update that achieves 3-30x faster encoding than v0.23 while maintaining identical output and API compatibility. Key optimizations include a SIMD-accelerated splitter, a thread-local word cache, and an allocation-free BPE merge loop, ensuring tokenization doesn't bottleneck ML workflows.

    Hugging Facehuggingface.co10 min
  4. M5 Ultra Mac Studio Review

    The M5 Ultra Mac Studio (256 GB RAM) uses a quad‑die M5 Max architecture with an 80‑core GPU and 1.2 TB/s memory bandwidth, delivering ~70 % faster prompt‑to‑first‑token and token‑generation rates than the M3 Ultra. In the author’s tests Qwen3.8‑Flash‑Next hits 100 tokens/s on short prompts and 60‑85 tokens/s with 64‑256 KB context, making local AI agents (Open Minis, Hermes, Codex) feel snappy a…

    Hacker News front pagemacstories.net39 minHN191174