← deepseek-ai/DeepSeek-V3
CodeVetter · Repo Unpack · System map

deepseek-ai/DeepSeek-V3

Scanned commit 9b4e9788e4 dated 2025-08-28 — last upstream commit. Generated by codevetter codevetter 1.12.0 on 2026-09-22. Deep analysis by swe-2 via the devin CLI on 2026-09-22 (runtime not recorded).

The repo is a small, flat reference codebase: all executable code lives under inference/ (five Python files plus a configs/ directory of JSON model presets). The primary entrypoint is generate.py, launched via torchrun for multi-node, tensor-parallel inference; convert.py and fp8_cast_bf16.py are standalone CLI utilities for checkpoint preparation. model.py contains the entire model definition (Transformer, Block, MLA, MoE, Gate, parallel linears) and kernel.py contains the Triton kernels for FP8 quantization and GEMM. There is no build system, package manifest, or test suite — the only CI is a GitHub Actions stale-issue bot. Weights are safetensors files on disk, sharded per rank by convert.py, and runtime state is GPU-resident KV-cache buffers.