惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V2EX - 技术
V2EX - 技术
P
Privacy International News Feed
Security Latest
Security Latest
H
Hacker News: Front Page
T
Tenable Blog
The Hacker News
The Hacker News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
Security @ Cisco Blogs
Project Zero
Project Zero
O
OpenAI News
AI
AI
Spread Privacy
Spread Privacy
C
CERT Recently Published Vulnerability Notes
The Last Watchdog
The Last Watchdog
G
GRAHAM CLULEY
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Scott Helme
Scott Helme
Application and Cybersecurity Blog
Application and Cybersecurity Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
C
CXSECURITY Database RSS Feed - CXSecurity.com
NISL@THU
NISL@THU
A
Arctic Wolf
T
Threat Research - Cisco Blogs
PCI Perspectives
PCI Perspectives
N
News and Events Feed by Topic
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
Simon Willison's Weblog
Simon Willison's Weblog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Know Your Adversary
Know Your Adversary
Google Online Security Blog
Google Online Security Blog
罗磊的独立博客
L
LINUX DO - 最新话题
U
Unit 42
S
Security Affairs
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
博客园 - 【当耐特】
T
The Exploit Database - CXSecurity.com
S
Schneier on Security
月光博客
月光博客
Engineering at Meta
Engineering at Meta
腾讯CDC
F
Full Disclosure
Cyberwarzone
Cyberwarzone
S
SegmentFault 最新的问题
Recorded Future
Recorded Future
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 司徒正美
The Cloudflare Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
DeepSeek-V3: The 671B MoE Model You Can Run Locally in 2026
Ramsis Hamma · 2026-05-20 · via DEV Community

DeepSeek-V3: The 671B MoE Model You Can Run Locally in 2026

TL;DR Summary

  • DeepSeek-V3 is a 671B parameter Mixture-of-Experts model with only 37B activated per token — rivaling GPT-4o and Claude 3.5 Sonnet on benchmarks
  • Trained on 14.8 trillion tokens using innovative FP8 mixed precision — only 2.664M H800 GPU hours for full pre-training, with zero irrecoverable loss spikes
  • 104k GitHub stars, MIT license, commercial use allowed — open weights available on Hugging Face
  • 8 inference backends supported: SGLang, LMDeploy, TensorRT-LLM, vLLM, LightLLM, AMD GPU, Huawei Ascend NPU, and the reference demo
  • Knowledge distilled from DeepSeek-R1 reasoning model into V3, improving reasoning while maintaining output style control

Direct Answer Block

DeepSeek-V3 is a 671B-parameter Mixture-of-Experts language model that activates only 37B parameters per token using 256 experts with 8 active per forward pass. It's open-source (MIT code license, model agreement for weights), commercially usable, and deployable locally via 8 inference backends including SGLang, vLLM, and TensorRT-LLM on both NVIDIA and AMD GPUs.

Introduction

The AI model market has a dirty secret: most frontier models lock you into API subscriptions, vendor infrastructure, and per-token pricing that scales with your usage. DeepSeek-V3 breaks that model — literally and commercially. It's a 671B-parameter Mixture-of-Experts architecture that activates only 37B parameters per token, making it efficient enough to deploy on your own hardware. With 104k GitHub stars, benchmark scores competitive with GPT-4o and Claude 3.5 Sonnet, and MIT-licensed code, it represents the leading edge of what open-source AI can achieve in 2026.

How does DeepSeek-V3's Mixture-of-Experts architecture activate only 37B of 671B parameters per token?

DeepSeek-V3 uses 256 experts with 8 active per token in a Mixture-of-Experts (MoE) architecture. This means only 37B of the 671B total parameters are activated for any given token prediction — a 5.5% activation ratio.

The architecture builds on two innovations validated in DeepSeek-V2:

Diagram showing the MoE architecture: 671B total → 256 experts → 8 active per token → 37B activated. MLA (Multi-head Latent Attention) and DeepSeekMoE labeled

Multi-head Latent Attention (MLA)

MLA compresses the key-value cache into a low-dimensional latent space, dramatically reducing memory usage during inference. This is what makes the 128K context window practical — standard attention would require prohibitive KV-cache memory at this scale.

Auxiliary-loss-free load balancing

Traditional MoE models use an auxiliary loss term to encourage balanced expert utilization — but this creates a tradeoff between load balance and model quality. DeepSeek-V3 pioneers a strategy that achieves load balancing without degrading performance. The model learns to distribute tokens across experts naturally, without the quality penalty that auxiliary losses impose.

According to the DeepSeek-V3 technical report (arXiv:2412.19437): "We pioneer an auxiliary-loss-free strategy for load balancing, which minimizes the performance degradation that arises from encouraging load balancing."

Multi-Token Prediction (MTP)

DeepSeek-V3 trains with a multi-token prediction objective — predicting multiple future tokens at each position rather than just the next one. This improves model quality and can be used for speculative decoding during inference to accelerate generation. The MTP module weights add 14B parameters to the 671B main model (685B total on Hugging Face), but MTP support is still under active community development.

The training was remarkably stable: "Throughout the entire training process, we did not experience any irrecoverable loss spikes or perform any rollbacks." This is unusual for models of this scale and speaks to the quality of the FP8 training framework.

How does FP8 mixed precision training work — and why did it take 2.664M GPU hours with zero loss spikes?

FP8 (8-bit floating point) training represents a significant departure from the industry-standard BF16/FP16 approach. DeepSeek-V3 is, according to the paper, the first extremely large-scale model to validate the feasibility and effectiveness of FP8 training.

The key innovations:

FP8 mixed precision framework: Not all operations use FP8. The framework selectively applies FP8 to matrix multiplications and attention computations where precision loss is minimal, while keeping sensitive operations (normalization, softmax) in higher precision. This achieves the speed of FP8 with the stability of FP16.

Full computation-communication overlap: In cross-node MoE training, the communication bottleneck between nodes often leaves GPUs idle. DeepSeek-V3 co-designed algorithms, frameworks, and hardware to nearly achieve full overlap — computation continues while communication happens, dramatically improving efficiency.

"Through co-design of algorithms, frameworks, and hardware, we overcome the communication bottleneck in cross-node MoE training, nearly achieving full computation-communication overlap." — DeepSeek-V3 Technical Report

The full pre-training cost of 2.664M H800 GPU hours on 14.8T tokens is remarkably economical for a model of this capability. For context, this is roughly 1/10th to 1/20th of the estimated training cost of comparable closed-source frontier models. The subsequent fine-tuning stages (SFT + RL) required only an additional 0.1M GPU hours.

How does DeepSeek-V3 compare to GPT-4o, Claude 3.5 Sonnet, and LLaMA 3.1 405B on code, math, and reasoning benchmarks?

DeepSeek-V3 dominates open-source models and is competitive with closed-source frontier models. Here are the key comparisons from the published benchmark tables:

Code benchmarks

Benchmark DeepSeek-V3 GPT-4o Claude 3.5 Sonnet LLaMA 3.1 405B
HumanEval-Mul (Pass@1) 82.6 80.5 81.7 77.2
LiveCodeBench (Pass@1) 37.6 34.2 32.8 30.1
Codeforces (Percentile) 51.6 23.6 20.3 25.3
SWE Verified (Resolved) 42.0 38.8 50.8 24.5
Aider-Polyglot (Acc.) 49.6 16.0 45.3 5.8

DeepSeek-V3 is the strongest open-source coding model and leads on competitive programming benchmarks (Codeforces percentile: 51.6 vs GPT-4o's 23.6).

Math benchmarks

Benchmark DeepSeek-V3 GPT-4o Claude 3.5 Sonnet LLaMA 3.1 405B
AIME 2024 (Pass@1) 39.2 9.3 16.0 23.3
MATH-500 (EM) 90.2 74.6 78.3 73.8
CNMO 2024 (Pass@1) 43.2 10.8 13.1 6.8

DeepSeek-V3 is in a different tier on math — the AIME gap (39.2 vs 9.3 for GPT-4o) is a 4x improvement. This is largely attributed to the knowledge distillation from DeepSeek-R1's long Chain-of-Thought reasoning.

General benchmarks

Benchmark DeepSeek-V3 GPT-4o Claude 3.5 Sonnet
MMLU (EM) 88.5 87.2 88.3
MMLU-Redux (EM) 89.1 88.0 88.9
DROP (3-shot F1) 91.6 83.7 88.3
GPQA-Diamond (Pass@1) 59.1 49.9 65.0

On standard academic benchmarks, DeepSeek-V3 leads or ties in most categories. Claude 3.5 Sonnet holds the edge on GPQA-Diamond (graduate-level reasoning). On open-ended generation (Arena-Hard: 85.5, AlpacaEval 2.0: 70.0), DeepSeek-V3 convincingly leads all compared models.

How do you run DeepSeek-V3 locally — and which of the 8 inference backends should you choose?

DeepSeek-V3 can be deployed locally through eight inference backends. Here's how to choose:

Backend Best for GPU Support Key Features
SGLang (recommended) Production serving NVIDIA, AMD MLA optimizations, DP Attention, FP8, Torch Compile, multi-node TP
LMDeploy (recommended) Offline + online deployment NVIDIA Pipeline processing, PyTorch integration
TensorRT-LLM (recommended) Maximum performance NVIDIA BF16, INT4/8 quantization, FP8 coming soon
vLLM (recommended) Standard serving NVIDIA, AMD Tensor + pipeline parallelism, FP8 + BF16
LightLLM Multi-node deployment NVIDIA FP8/BF16, PD-disaggregation
AMD GPU AMD hardware AMD Via SGLang, BF16 + FP8
Huawei Ascend NPU Ascend hardware Ascend Via MindIE, BF16
DeepSeek-Infer Demo Learning/experimentation NVIDIA Reference implementation, Linux + Python 3.10 only

Quick start with SGLang (recommended):

# See full instructions at:
# https://github.com/sgl-project/sglang/tree/main/benchmark/deepseek_v3

Enter fullscreen mode Exit fullscreen mode

Model weights conversion (FP8 to BF16):

cd inference
python fp8_cast_bf16.py --input-fp8-hf-path /path/to/fp8_weights --output-bf16-hf-path /path/to/bf16_weights

Enter fullscreen mode Exit fullscreen mode

System requirements: Linux with Python 3.10 only. Mac and Windows are not supported natively (use cloud deployment or WSL on Windows). Multi-node GPU setup required for the full model — this is a 671B parameter model, not a laptop deployment. The mini model runs on smaller setups; the full model requires multiple H800/H100 GPUs.

Note: Hugging Face's Transformers library does not yet directly support DeepSeek-V3. Use one of the inference backends listed above.

How does Multi-Token Prediction (MTP) accelerate inference through speculative decoding?

Multi-Token Prediction is a training objective where the model predicts multiple future tokens at each position, rather than just the next one. During inference, this enables speculative decoding:

  1. The model makes a "fast" prediction of the next few tokens using the MTP heads
  2. A verification pass confirms these tokens against the main model
  3. Accepted tokens are committed; rejected tokens trigger re-generation

The MTP module adds 14B parameters (separate from the 671B main model weights). The technical report states that MTP "can also be used for speculative decoding for inference acceleration." Community support for MTP in inference backends is still under active development — SGLang tracks progress at github.com/sgl-project/sglang/issues/2591.

The practical benefit: for latency-sensitive applications (chat, code completion), MTP speculative decoding can significantly reduce the wall-clock time per response by generating multiple tokens per forward pass rather than one at a time.

How did DeepSeek distill reasoning capabilities from R1 into V3 — and what does it mean for open-source model quality?

The distillation from DeepSeek-R1 is one of the most technically interesting aspects of DeepSeek-V3. The approach:

  1. DeepSeek-R1 is a long Chain-of-Thought reasoning model — it thinks step-by-step, verifies its work, and reflects on errors before producing final answers
  2. The verification and reflection patterns from R1's reasoning traces are extracted
  3. These patterns are distilled into DeepSeek-V3 through the post-training pipeline, which "elegantly incorporates the verification and reflection patterns of R1 into DeepSeek-V3"

"Our pipeline elegantly incorporates the verification and reflection patterns of R1 into DeepSeek-V3 and notably improves its reasoning performance. Meanwhile, we also maintain a control over the output style and length of DeepSeek-V3." — DeepSeek-V3 Technical Report

The key distinction: this is not making V3 generate long Chain-of-Thought traces. It's distilling the cognitive patterns (verify assumptions, reflect on contradictions, break down multi-step problems) while maintaining V3's standard output style and length. The result is improved reasoning (visible in the AIME 2024 and MATH-500 scores) without the verbosity and latency cost of full CoT.

This distillation approach is a model for the open-source community: you can take a specialized reasoning model's capabilities and inject them into a general-purpose model through post-training, without changing the model architecture or inference characteristics.

Frequently Asked Questions

Q: Can DeepSeek-V3 run on a single consumer GPU?

No. The full 671B model requires multiple H800/H100 GPUs across nodes. Even with only 37B active per token, the total model must be loaded into memory. For single-GPU setups, consider quantized variants or smaller models from the DeepSeek family.

Q: Is DeepSeek-V3 free for commercial use?

The code is MIT licensed (free for any use). The model weights have a separate Model License that permits commercial use. Check the LICENSE-MODEL file in the repository for specific terms.

Q: How does DeepSeek-V3 compare to DeepSeek-R1?

R1 is a reasoning-specialized model that generates long Chain-of-Thought traces. V3 is a general-purpose model with R1's reasoning patterns distilled in. V3 is faster, more efficient, and better for general tasks. R1 is stronger on tasks requiring explicit step-by-step reasoning.

Q: Why is FP8 training significant?

FP8 uses 8-bit floating point (vs the standard 16-bit), halving memory requirements and doubling theoretical throughput for matrix operations. Previous attempts at FP8 training at scale resulted in instability. DeepSeek-V3's successful FP8 pre-training at 671B parameters validates the approach for future large-scale models.

Q: Does DeepSeek-V3 support function calling and tool use?

The base and chat models support standard prompting patterns. Tool use capabilities depend on the inference backend and prompting approach — SGLang and vLLM support OpenAI-compatible API serving with function calling.

Q: What's the difference between the Base and Chat models?

Base is the pre-trained model (14.8T tokens, no fine-tuning). Chat is the instruction-tuned model with SFT and RL post-training, including the R1 reasoning distillation. Use Chat for conversational and task-oriented applications; use Base for fine-tuning on domain-specific data.

Glossary

  • Mixture-of-Experts (MoE): An architecture where only a subset of model parameters (experts) are activated per token, enabling larger total models with lower per-token compute
  • FP8 Mixed Precision: Training using 8-bit floating point for most operations while keeping critical computations at higher precision — DeepSeek-V3 is the first extremely large model to validate this
  • Multi-head Latent Attention (MLA): An attention mechanism that compresses the KV-cache into a low-dimensional latent space, enabling long context windows (128K) with manageable memory
  • Multi-Token Prediction (MTP): Training objective predicting multiple future tokens per position, enabling speculative decoding for faster inference
  • Auxiliary-loss-free load balancing: A strategy for MoE models that balances expert utilization without the quality penalty of traditional load-balancing loss terms
  • Speculative decoding: An inference acceleration technique where a faster "draft" model predicts multiple tokens that are then verified by the main model

Author

Ramsis Hammadi — AI/ML engineer specializing in GenAI, LLM engineering, and automation. Full bio →