π Introducing NSA: A Hardware-Aligned and Natively Trainable Sparse Attention mechanism for ultra-fast long-context training & inference!
Core components of NSA:
β’ Dynamic hierarchical sparse strategy
β’ Coarse-grained token compression
β’ Fine-grained token selection
π‘ With optimized design for modern hardware, NSA speeds up inference while reducing pre-training costsβwithout compromising performance. It matches or outperforms Full Attention models on general benchmarks, long-context tasks, and instruction-based reasoning.
π For more details, check out our paper here: https://arxiv.org/abs/2502.11089
Core components of NSA:
β’ Dynamic hierarchical sparse strategy
β’ Coarse-grained token compression
β’ Fine-grained token selection
π‘ With optimized design for modern hardware, NSA speeds up inference while reducing pre-training costsβwithout compromising performance. It matches or outperforms Full Attention models on general benchmarks, long-context tasks, and instruction-based reasoning.
π For more details, check out our paper here: https://arxiv.org/abs/2502.11089
arXiv.org
Native Sparse Attention: Hardware-Aligned and Natively Trainable...
Long-context modeling is crucial for next-generation language models, yet the high computational cost of standard attention mechanisms poses significant computational challenges. Sparse attention...
π8π³7π₯2β€1π€¬1
π Day 0: Warming up for #OpenSourceWeek!
We're a tiny team @deepseek_ai
exploring AGI. Starting next week, we'll be open-sourcing 5 repos, sharing our small but sincere progress with full transparency.
These humble building blocks in our online service have been documented, deployed and battle-tested in production.
As part of the open-source community, we believe that every line shared becomes collective momentum that accelerates the journey.
Daily unlocks are coming soon. No ivory towers - just pure garage-energy and community-driven innovation.
We're a tiny team @deepseek_ai
exploring AGI. Starting next week, we'll be open-sourcing 5 repos, sharing our small but sincere progress with full transparency.
These humble building blocks in our online service have been documented, deployed and battle-tested in production.
As part of the open-source community, we believe that every line shared becomes collective momentum that accelerates the journey.
Daily unlocks are coming soon. No ivory towers - just pure garage-energy and community-driven innovation.
π³32β€3π₯2π1π₯°1π€1π«‘1
π Day 1 of #OpenSourceWeek: FlashMLA
Honored to share FlashMLA - our efficient MLA decoding kernel for Hopper GPUs, optimized for variable-length sequences and now in production.
β BF16 support
β Paged KV cache (block size 64)
β‘οΈ 3000 GB/s memory-bound & 580 TFLOPS compute-bound on H800
π Explore on GitHub: https://github.com/deepseek-ai/FlashMLA
Honored to share FlashMLA - our efficient MLA decoding kernel for Hopper GPUs, optimized for variable-length sequences and now in production.
β BF16 support
β Paged KV cache (block size 64)
β‘οΈ 3000 GB/s memory-bound & 580 TFLOPS compute-bound on H800
π Explore on GitHub: https://github.com/deepseek-ai/FlashMLA
π³13β€3π2π©2π₯°1π1
π Day 2 of #OpenSourceWeek: DeepEP
Excited to introduce DeepEP - the first open-source EP communication library for MoE model training and inference.
β Efficient and optimized all-to-all communication
β Both intranode and internode support with NVLink and RDMA
β High-throughput kernels for training and inference prefilling
β Low-latency kernels for inference decoding
β Native FP8 dispatch support
β Flexible GPU resource control for computation-communication overlapping
π GitHub: github.com/deepseek-ai/DeepEP
Excited to introduce DeepEP - the first open-source EP communication library for MoE model training and inference.
β Efficient and optimized all-to-all communication
β Both intranode and internode support with NVLink and RDMA
β High-throughput kernels for training and inference prefilling
β Low-latency kernels for inference decoding
β Native FP8 dispatch support
β Flexible GPU resource control for computation-communication overlapping
π GitHub: github.com/deepseek-ai/DeepEP
π³14π₯7β€2π©2π₯°1π1
π Day 3 of #OpenSourceWeek: DeepGEMM
Introducing DeepGEMM - an FP8 GEMM library that supports both dense and MoE GEMMs, powering V3/R1 training and inference.
β‘οΈ Up to 1350+ FP8 TFLOPS on Hopper GPUs
β No heavy dependency, as clean as a tutorial
β Fully Just-In-Time compiled
β Core logic at ~300 lines - yet outperforms expert-tuned kernels across most matrix sizes
β Supports dense layout and two MoE layouts
π GitHub: https://github.com/deepseek-ai/DeepGEMM
Introducing DeepGEMM - an FP8 GEMM library that supports both dense and MoE GEMMs, powering V3/R1 training and inference.
β‘οΈ Up to 1350+ FP8 TFLOPS on Hopper GPUs
β No heavy dependency, as clean as a tutorial
β Fully Just-In-Time compiled
β Core logic at ~300 lines - yet outperforms expert-tuned kernels across most matrix sizes
β Supports dense layout and two MoE layouts
π GitHub: https://github.com/deepseek-ai/DeepGEMM
π³8β€3π2π©2π₯1π1
π Day 4 of #OpenSourceWeek: Optimized Parallelism Strategies
β DualPipe - a bidirectional pipeline parallelism algorithm for computation-communication overlap in V3/R1 training.
π https://github.com/deepseek-ai/DualPipe
β EPLB - an expert-parallel load balancer for V3/R1.
π https://github.com/deepseek-ai/eplb
π Analyze computation-communication overlap in V3/R1.
π https://github.com/deepseek-ai/profile-data
β DualPipe - a bidirectional pipeline parallelism algorithm for computation-communication overlap in V3/R1 training.
π https://github.com/deepseek-ai/DualPipe
β EPLB - an expert-parallel load balancer for V3/R1.
π https://github.com/deepseek-ai/eplb
π Analyze computation-communication overlap in V3/R1.
π https://github.com/deepseek-ai/profile-data
π³16π₯3π©2
π Day 5 of #OpenSourceWeek: 3FS, Thruster for All DeepSeek Data Access
Fire-Flyer File System (3FS) - a parallel file system that utilizes the full bandwidth of modern SSDs and RDMA networks.
β‘ 6.6 TiB/s aggregate read throughput in a 180-node cluster
β‘ 3.66 TiB/min throughput on GraySort benchmark in a 25-node cluster
β‘ 40+ GiB/s peak throughput per client node for KVCache lookup
𧬠Disaggregated architecture with strong consistency semantics
β Training data preprocessing, dataset loading, checkpoint saving/reloading, embedding vector search & KVCache lookups for inference in V3/R1
π₯ 3FS β github.com/deepseek-ai/3FS
β² Smallpond - data processing framework on 3FS β github.com/deepseek-ai/smallpond
Fire-Flyer File System (3FS) - a parallel file system that utilizes the full bandwidth of modern SSDs and RDMA networks.
β‘ 6.6 TiB/s aggregate read throughput in a 180-node cluster
β‘ 3.66 TiB/min throughput on GraySort benchmark in a 25-node cluster
β‘ 40+ GiB/s peak throughput per client node for KVCache lookup
𧬠Disaggregated architecture with strong consistency semantics
β Training data preprocessing, dataset loading, checkpoint saving/reloading, embedding vector search & KVCache lookups for inference in V3/R1
π₯ 3FS β github.com/deepseek-ai/3FS
β² Smallpond - data processing framework on 3FS β github.com/deepseek-ai/smallpond
π³21π3π©2β€1π₯°1
π Day 6 of #OpenSourceWeek: One More Thing β DeepSeek-V3/R1 Inference System Overview
Optimized throughput and latency via:
π§ Cross-node EP-powered batch scaling
π Computation-communication overlap
βοΈ Load balancing
Statistics of DeepSeek's Online Service:
β‘ 73.7k/14.8k input/output tokens per second per H800 node
π Cost profit margin 545%
π‘ We hope this week's insights offer value to the community and contribute to our shared AGI goals.
π Deep Dive: bit.ly/4ihZUiO
Optimized throughput and latency via:
π§ Cross-node EP-powered batch scaling
π Computation-communication overlap
βοΈ Load balancing
Statistics of DeepSeek's Online Service:
β‘ 73.7k/14.8k input/output tokens per second per H800 node
π Cost profit margin 545%
π‘ We hope this week's insights offer value to the community and contribute to our shared AGI goals.
π Deep Dive: bit.ly/4ihZUiO
π³17β€3π2π2π©2π₯°1
π DeepSeek-V3-0324 is out now!
πΉ Major boost in reasoning performance
πΉ Stronger front-end development skills
πΉ Smarter tool-use capabilities
β For non-complex reasoning tasks, we recommend using V3 β just turn off βDeepThinkβ
π API usage remains unchanged
π Models are now released under the MIT License, just like DeepSeek-R1!
π Open-source weights: https://huggingface.co/deepseek-ai/DeepSeek-V3-0324
πΉ Major boost in reasoning performance
πΉ Stronger front-end development skills
πΉ Smarter tool-use capabilities
β For non-complex reasoning tasks, we recommend using V3 β just turn off βDeepThinkβ
π API usage remains unchanged
π Models are now released under the MIT License, just like DeepSeek-R1!
π Open-source weights: https://huggingface.co/deepseek-ai/DeepSeek-V3-0324
π8π³6β€5π₯4π©2π₯°1
π DeepSeek-R1-0528 is here!
πΉ Improved benchmark performance
πΉ Enhanced front-end capabilities
πΉ Reduced hallucinations
πΉ Supports JSON output & function calling
β Try it now: https://chat.deepseek.com
π No change to API usage β docs here: https://api-docs.deepseek.com/guides/reasoning_model
π Open-source weights: https://huggingface.co/deepseek-ai/DeepSeek-R1-0528
πΉ Improved benchmark performance
πΉ Enhanced front-end capabilities
πΉ Reduced hallucinations
πΉ Supports JSON output & function calling
β Try it now: https://chat.deepseek.com
π No change to API usage β docs here: https://api-docs.deepseek.com/guides/reasoning_model
π Open-source weights: https://huggingface.co/deepseek-ai/DeepSeek-R1-0528
π³30β€7π4π₯3β€βπ₯2π©2β1π1π1
Introducing DeepSeek-V3.1: our first step toward the agent era! π
π§ Hybrid inference: Think & Non-Think β one model, two modes
β‘οΈ Faster thinking: DeepSeek-V3.1-Think reaches answers in less time vs. DeepSeek-R1-0528
π οΈ Stronger agent skills: Post-training boosts tool use and multi-step agent tasks
Try it now β toggle Think/Non-Think via the "DeepThink" button: chat.deepseek.com
π§ Hybrid inference: Think & Non-Think β one model, two modes
β‘οΈ Faster thinking: DeepSeek-V3.1-Think reaches answers in less time vs. DeepSeek-R1-0528
π οΈ Stronger agent skills: Post-training boosts tool use and multi-step agent tasks
Try it now β toggle Think/Non-Think via the "DeepThink" button: chat.deepseek.com
π³4β‘2π2π©2β€1π1π1
API Update βοΈ
πΉ deepseek-chat β non-thinking mode
πΉ deepseek-reasoner β thinking mode
π§΅ 128K context for both
π Anthropic API format supported: api-docs.deepseek.com/guides/anthropβ¦
β Strict Function Calling supported in Beta API: api-docs.deepseek.com/guides/anthropic_api
π More API resources, smoother API experience
πΉ deepseek-chat β non-thinking mode
πΉ deepseek-reasoner β thinking mode
π§΅ 128K context for both
π Anthropic API format supported: api-docs.deepseek.com/guides/anthropβ¦
β Strict Function Calling supported in Beta API: api-docs.deepseek.com/guides/anthropic_api
π More API resources, smoother API experience
π€2π©2π³2β1β€1π1π¨βπ»1
Tools & Agents Upgrades π§°
π Better results on SWE / Terminal-Bench
π Stronger multi-step reasoning for complex search tasks
β‘οΈ Big gains in thinking efficiency
π Better results on SWE / Terminal-Bench
π Stronger multi-step reasoning for complex search tasks
β‘οΈ Big gains in thinking efficiency
π€―5β€3π©2π³2π1π₯1
Model Update π€
πΉ V3.1 Base: 840B tokens continued pretraining for long context extension on top of V3
πΉ Tokenizer & chat template updated β new tokenizer config: https://huggingface.co/deepseek-ai/DeepSeek-V3.1/blob/main/tokenizer_config.json
π V3.1 Base Open-source weights: huggingface.co/deepseek-ai/DeepSeek-V3.1-Base
π V3.1 Open-source weights: huggingface.co/deepseek-ai/DeepSeek-V3.1
πΉ V3.1 Base: 840B tokens continued pretraining for long context extension on top of V3
πΉ Tokenizer & chat template updated β new tokenizer config: https://huggingface.co/deepseek-ai/DeepSeek-V3.1/blob/main/tokenizer_config.json
π V3.1 Base Open-source weights: huggingface.co/deepseek-ai/DeepSeek-V3.1-Base
π V3.1 Open-source weights: huggingface.co/deepseek-ai/DeepSeek-V3.1
π³10π©2β€1π1
Pricing Changes π³
πΉ New pricing starts & off-peak discounts end at Sep 5th, 2025, 16:00 (UTC Time)
πΉ Until then, APIs follow current pricing
π Pricing page: https://api-docs.deepseek.com/quick_start/pricing/
πΉ New pricing starts & off-peak discounts end at Sep 5th, 2025, 16:00 (UTC Time)
πΉ Until then, APIs follow current pricing
π Pricing page: https://api-docs.deepseek.com/quick_start/pricing/
π±16β€2π©2π³2π1
π DeepSeek-V3.1 β DeepSeek-V3.1-Terminus
The latest update builds on V3.1βs strengths while addressing key user feedback.
β¨ Whatβs improved?
π Language consistency: fewer CN/EN mix-ups & no more random chars.
π€ Agent upgrades: stronger Code Agent & Search Agent performance.
The latest update builds on V3.1βs strengths while addressing key user feedback.
β¨ Whatβs improved?
π Language consistency: fewer CN/EN mix-ups & no more random chars.
π€ Agent upgrades: stronger Code Agent & Search Agent performance.
π³6π5π€©2π©2
π DeepSeek-V3.1-Terminus delivers more stable & reliable outputs across benchmarks compared to the previous version.
π Available now on: App / Web / API
π Open-source weights here: https://huggingface.co/deepseek-ai/DeepSeek-V3.1-Terminus
Thanks to everyone for your feedback. It drives us to keep improving and refining the experience! π
π Available now on: App / Web / API
π Open-source weights here: https://huggingface.co/deepseek-ai/DeepSeek-V3.1-Terminus
Thanks to everyone for your feedback. It drives us to keep improving and refining the experience! π
π³9π₯7π©2