DeepSeek Mechanism Atlas — V1→V4 mechanisms (MLA/MoE/DSA/DSpark) as a bidirectional wiki + mdBook. Unofficial.
See the codeAn atlas of DeepSeek mechanisms — architecture, sparse attention, speculative decoding, MoE routing, and adjacent inference infra — organized as a bidirectional wiki + mdBook.
Unofficial. Not affiliated with DeepSeek.
Read online (mdBook) · 中文导读 / Chinese README
If this atlas helps you, please Star to bookmark for later.
New · Agent runtime thread: DeepSeek Harness (
dsh) — Cordis plugins · Code Mode · session log. Fourth narrative beside algorithm / infrastructure / MoE.New · V4.1-Flash: KV cache compression notes — CED · CSA2 · FP4 main KV · SWA Bounded Replay.
| Series | Article | Keywords |
|---|---|---|
| V1 | DeepSeek-LLM | scaling laws, dense base |
| V2 | DeepSeek-V2 | MLA, DeepSeekMoE, 128K |
| V3 | DeepSeek-V3 | 671B MoE, MTP, aux-loss-free |
| R1 | DeepSeek-R1 | reasoning model, RLVR, GRPO |
| V3.2 | DeepSeek-V3.2 | sparse attention, DSA |
| V4 | DeepSeek-V4 | CSA/HCA, mHC, 1M context |
| V4.1-Flash | DeepSeek-V4.1-Flash | CED, CSA2, FP4 KV, SWA Bounded Replay |
| DSA | Sparse attention | indexer, top-k, lightning indexer |
| DSpark | Speculative decoding | speculative decoding, MTP fusion |
| Harness | DeepSeek Harness | agent runtime, Cordis plugins, Code Mode |
| MLA | Latent attention | latent KV, KV cache compression |
| MoE | DeepSeekMoE | routed experts, shared experts |
| Index Share | IndexCache | cross-layer index reuse, infra patch |
| ESS | Latent offload | CPU KV offload |
| CSA / HCA | Mixed compression attention | 4:1 sparse + 128:1 dense |
| Hash MoE | Hash MoE + FP4 | hash routing, FP4 quantization |
Full index: Chinese docs home · article list · Version index · Online book
Search keywords: DeepSeek paper · DeepSeek-V2 · DeepSeek-V3 · DeepSeek-V4 · DeepSeek-V4.1-Flash · DeepSeek R1 · reasoning model · sparse attention · CSA2 · DSpark · MLA · MoE · DeepSeek Harness · agent runtime · Code Mode · llm-papers · paper explanation
Figures live under diagrams/ and are linked from articles. Prefer the online book or IDE Preview for rendering. Selected entry points:
These notes form a bidirectional wiki — every article links back at the top and forward in the body. To get the most out of that navigation, use one of these (not GitHub’s in-repo blob preview):
| Mode | When | Navigation |
|---|---|---|
| IDE Preview (VS Code / Cursor) | Cloned repo, deep reading or editing | Click ← back-links and in-text links; split preview or preview history — best for forward / back references |
| GitHub Pages (mdBook) | Online, no clone | Same math/diagram rendering as the IDE; use the browser Back / Forward buttons to retrace your reading path |
Either IDE Preview or Pages works. Edit and PR in docs/ as usual.
Local IDE Preview (VS Code / Cursor) and GitHub’s in-repo .md Preview use different Markdown + math renderers — blockquotes, $...$ / $$...$$, and inline math inside links often look wrong on GitHub even when they look fine in the IDE. Source Markdown is not rewritten to chase GitHub Preview; instead, docs/ is built into an mdBook site on GitHub Pages (KaTeX, same $...$ source as the IDE). Use that for online reading; use the repo for editing and PRs.
This project follows DeepSeek's open-model line V1 → V2 → V3 → R1 / V3.2 → V4, and unpacks most (not every) major technical reports into readable walkthroughs: architecture changes, training/inference tricks, formulas, and how versions relate.
Differentiation — vs scattered blog posts: unified layout, bidirectional wiki navigation, SVG formula diagrams, per-paper takeaway sections, and a living mdBook mirror.
Coverage includes:
dsh): Cordis plugin coding agent; a fourth narrative thread beside algorithm / infrastructure / MoE.Organized as wiki-style articles, SVG diagrams, and a book-style layout under 《ds-技术报告》/. For full Chinese navigation and article list, use the Chinese README or the online mdBook.
This repo is built for bidirectional navigation: every article, deep-dive, and Q&A page links back to where you came from — the Chinese home, this English homepage, the evolution hub, or the parent section. Follow a link into DSA logic, MTP fusion, or Engram notes; when you are done, one click returns you to the article or index you started from. No dead ends, no guessing how to resume the thread.
In IDE Preview, click links to jump; on Pages, use browser Back / Forward for the same effect.
Work in progress. Summaries, mirroring, links, and diagrams are still being updated. Prefer arXiv / official PDFs cited at the top of each article. Broken links or errors — issues welcome.
| Online book (Pages) | fooSynaptic.github.io/deepseek-mechanism-atlas — or clone and use IDE Preview |
| Chinese README | docs/README.md |
| Evolution hub | Version lineage overview — algorithm / infrastructure / MoE / agent-runtime threads |
| Book mirror (repo) | 《ds-技术报告》/01-总览/01-版本演进总览.md |
| Path | Role |
|---|---|
docs/ | Source of truth — edit articles here |
docs/README.md | Chinese README / docs home |
《ds-技术报告》/ | Book mirror — generated by build_book.py (do not hand-edit) |
book.toml + theme/ | mdBook config & CSS for GitHub Pages |
scripts/build_pages.sh | build_book → SUMMARY.md → mdbook build |
.github/workflows/pages.yml | Deploy mdBook to GitHub Pages on push to main |
Reading: Recommended reading — IDE Preview or GitHub Pages mdBook; not GitHub blob preview. See Why an online book for rendering details.
Source of truth is docs/. The folder 《ds-技术报告》/ is a generated book mirror — do not edit those Markdown files by hand; they are overwritten by build_book.py.
When you add or move content:
docs/ (e.g. docs/versions/, docs/dsa/, docs/reports/, docs/versions/qa/).《ds-技术报告》/build_book.py:
CHAPTER_MAP — map docs/... → book chapter path;READING_ORDER — prev/next chapter navigation;QA_DESTINATIONS — if it is a Q&A page (may mirror to multiple book folders);ASSET_MAP — only if new figures need copying into the book tree.← links back to the parent section / index (see existing articles); link the new page from the relevant overview or index.## 核心结论摘要).python3 《ds-技术报告》/build_book.py
python3 scripts/validate_refs.py
python3 scripts/validate_backlinks.py
Or run the full gate: bash scripts/doc_series_gate.sh.
To preview the mdBook site locally (requires mdBook):
bash scripts/build_pages.sh
# open mdbook-out/index.html
Wiki-style reading in docs/ works without the book step; run build_book.py when the chapter should appear in 《ds-技术报告》 with rewritten links and chapter nav. Push to main rebuilds GitHub Pages automatically.
| Scope | License |
|---|---|
| Notes, diagrams, book layout | CC BY 4.0 |
scripts/ | MIT |
docs/engram/ | Apache 2.0 |
docs/material/ mirrors | upstream / original paper terms |
DeepSeek papers, weights, and official code remain under their own licenses.
24 commits
Python
98.3%
DeepSeek Mechanism Atlas — V1→V4 mechanisms (MLA/MoE/DSA/DSpark) as a bidirectional wiki + mdBook. Unofficial.
See the codeAn atlas of DeepSeek mechanisms — architecture, sparse attention, speculative decoding, MoE routing, and adjacent inference infra — organized as a bidirectional wiki + mdBook.
Unofficial. Not affiliated with DeepSeek.
Read online (mdBook) · 中文导读 / Chinese README
If this atlas helps you, please Star to bookmark for later.
New · Agent runtime thread: DeepSeek Harness (
dsh) — Cordis plugins · Code Mode · session log. Fourth narrative beside algorithm / infrastructure / MoE.New · V4.1-Flash: KV cache compression notes — CED · CSA2 · FP4 main KV · SWA Bounded Replay.
| Series | Article | Keywords |
|---|---|---|
| V1 | DeepSeek-LLM | scaling laws, dense base |
| V2 | DeepSeek-V2 | MLA, DeepSeekMoE, 128K |
| V3 | DeepSeek-V3 | 671B MoE, MTP, aux-loss-free |
| R1 | DeepSeek-R1 | reasoning model, RLVR, GRPO |
| V3.2 | DeepSeek-V3.2 | sparse attention, DSA |
| V4 | DeepSeek-V4 | CSA/HCA, mHC, 1M context |
| V4.1-Flash | DeepSeek-V4.1-Flash | CED, CSA2, FP4 KV, SWA Bounded Replay |
| DSA | Sparse attention | indexer, top-k, lightning indexer |
| DSpark | Speculative decoding | speculative decoding, MTP fusion |
| Harness | DeepSeek Harness | agent runtime, Cordis plugins, Code Mode |
| MLA | Latent attention | latent KV, KV cache compression |
| MoE | DeepSeekMoE | routed experts, shared experts |
| Index Share | IndexCache | cross-layer index reuse, infra patch |
| ESS | Latent offload | CPU KV offload |
| CSA / HCA | Mixed compression attention | 4:1 sparse + 128:1 dense |
| Hash MoE | Hash MoE + FP4 | hash routing, FP4 quantization |
Full index: Chinese docs home · article list · Version index · Online book
Search keywords: DeepSeek paper · DeepSeek-V2 · DeepSeek-V3 · DeepSeek-V4 · DeepSeek-V4.1-Flash · DeepSeek R1 · reasoning model · sparse attention · CSA2 · DSpark · MLA · MoE · DeepSeek Harness · agent runtime · Code Mode · llm-papers · paper explanation
Figures live under diagrams/ and are linked from articles. Prefer the online book or IDE Preview for rendering. Selected entry points:
These notes form a bidirectional wiki — every article links back at the top and forward in the body. To get the most out of that navigation, use one of these (not GitHub’s in-repo blob preview):
| Mode | When | Navigation |
|---|---|---|
| IDE Preview (VS Code / Cursor) | Cloned repo, deep reading or editing | Click ← back-links and in-text links; split preview or preview history — best for forward / back references |
| GitHub Pages (mdBook) | Online, no clone | Same math/diagram rendering as the IDE; use the browser Back / Forward buttons to retrace your reading path |
Either IDE Preview or Pages works. Edit and PR in docs/ as usual.
Local IDE Preview (VS Code / Cursor) and GitHub’s in-repo .md Preview use different Markdown + math renderers — blockquotes, $...$ / $$...$$, and inline math inside links often look wrong on GitHub even when they look fine in the IDE. Source Markdown is not rewritten to chase GitHub Preview; instead, docs/ is built into an mdBook site on GitHub Pages (KaTeX, same $...$ source as the IDE). Use that for online reading; use the repo for editing and PRs.
This project follows DeepSeek's open-model line V1 → V2 → V3 → R1 / V3.2 → V4, and unpacks most (not every) major technical reports into readable walkthroughs: architecture changes, training/inference tricks, formulas, and how versions relate.
Differentiation — vs scattered blog posts: unified layout, bidirectional wiki navigation, SVG formula diagrams, per-paper takeaway sections, and a living mdBook mirror.
Coverage includes:
dsh): Cordis plugin coding agent; a fourth narrative thread beside algorithm / infrastructure / MoE.Organized as wiki-style articles, SVG diagrams, and a book-style layout under 《ds-技术报告》/. For full Chinese navigation and article list, use the Chinese README or the online mdBook.
This repo is built for bidirectional navigation: every article, deep-dive, and Q&A page links back to where you came from — the Chinese home, this English homepage, the evolution hub, or the parent section. Follow a link into DSA logic, MTP fusion, or Engram notes; when you are done, one click returns you to the article or index you started from. No dead ends, no guessing how to resume the thread.
In IDE Preview, click links to jump; on Pages, use browser Back / Forward for the same effect.
Work in progress. Summaries, mirroring, links, and diagrams are still being updated. Prefer arXiv / official PDFs cited at the top of each article. Broken links or errors — issues welcome.
| Online book (Pages) | fooSynaptic.github.io/deepseek-mechanism-atlas — or clone and use IDE Preview |
| Chinese README | docs/README.md |
| Evolution hub | Version lineage overview — algorithm / infrastructure / MoE / agent-runtime threads |
| Book mirror (repo) | 《ds-技术报告》/01-总览/01-版本演进总览.md |
| Path | Role |
|---|---|
docs/ | Source of truth — edit articles here |
docs/README.md | Chinese README / docs home |
《ds-技术报告》/ | Book mirror — generated by build_book.py (do not hand-edit) |
book.toml + theme/ | mdBook config & CSS for GitHub Pages |
scripts/build_pages.sh | build_book → SUMMARY.md → mdbook build |
.github/workflows/pages.yml | Deploy mdBook to GitHub Pages on push to main |
Reading: Recommended reading — IDE Preview or GitHub Pages mdBook; not GitHub blob preview. See Why an online book for rendering details.
Source of truth is docs/. The folder 《ds-技术报告》/ is a generated book mirror — do not edit those Markdown files by hand; they are overwritten by build_book.py.
When you add or move content:
docs/ (e.g. docs/versions/, docs/dsa/, docs/reports/, docs/versions/qa/).《ds-技术报告》/build_book.py:
CHAPTER_MAP — map docs/... → book chapter path;READING_ORDER — prev/next chapter navigation;QA_DESTINATIONS — if it is a Q&A page (may mirror to multiple book folders);ASSET_MAP — only if new figures need copying into the book tree.← links back to the parent section / index (see existing articles); link the new page from the relevant overview or index.## 核心结论摘要).python3 《ds-技术报告》/build_book.py
python3 scripts/validate_refs.py
python3 scripts/validate_backlinks.py
Or run the full gate: bash scripts/doc_series_gate.sh.
To preview the mdBook site locally (requires mdBook):
bash scripts/build_pages.sh
# open mdbook-out/index.html
Wiki-style reading in docs/ works without the book step; run build_book.py when the chapter should appear in 《ds-技术报告》 with rewritten links and chapter nav. Push to main rebuilds GitHub Pages automatically.
| Scope | License |
|---|---|
| Notes, diagrams, book layout | CC BY 4.0 |
scripts/ | MIT |
docs/engram/ | Apache 2.0 |
docs/material/ mirrors | upstream / original paper terms |
DeepSeek papers, weights, and official code remain under their own licenses.
24 commits
Python
98.3%