diff --git a/recipes/deepseek-v4-1-flash-sm80-deepinfer-kernel-port-6x-a100-dspark-k5/recipe.yaml b/recipes/deepseek-v4-1-flash-sm80-deepinfer-kernel-port-6x-a100-dspark-k5/recipe.yaml index e00265eca..01046a935 100644 --- a/recipes/deepseek-v4-1-flash-sm80-deepinfer-kernel-port-6x-a100-dspark-k5/recipe.yaml +++ b/recipes/deepseek-v4-1-flash-sm80-deepinfer-kernel-port-6x-a100-dspark-k5/recipe.yaml @@ -2,11 +2,11 @@ slug: deepseek-v4-1-flash-sm80-deepinfer-kernel-port-6x-a100-dspark-k5 title: 'DeepSeek-V4.1-Flash SM80 DeepInfer kernel port 6x CMP 170HX DSpark K5' engine: name: vllm - version: 'V1 @ vllm PR #56201 base 79a7108d9a + haosdent/vllm dsv4-flash-a100 SM80 base + Deepinfer-SM80 patch @ 8895510cae8f' + version: 'V1 @ vLLM PR56201 base + Deepinfer-SM80 v0.1.1 (25e458ab1c)' source_type: fork git_url: 'https://github.com/HalfVulpes/Deepinfer-SM80' - pinned_commit: 8895510cae8f8f1733401686e67a4d1e11e7e94b - install_note: 'Engine pin chain as stated by the repo at 8895510cae: base = vllm-project/vllm PR #56201 base commit 79a7108d9aea27ddab99ce1779290d300b17fc23 (v0.28.1rc0); SM80 base enablement = haosdent/vllm dsv4-flash-a100 (deepseek-v4-a100-support, commits 62195e9..c3046d1) rebased onto 79a7108d9a, shipped as patches/00-vllm-pr56201-sm80-base.patch (NEW at e375de2, +15,359 lines); DeepInfer-SM80 kernel + YOCO/PP optimizations via patches/vllm-sm80-deepinfer.patch (MODIFIED at 8895510: 30 files, 4,289 lines). Option A (reproducible full build from upstream): git clone vllm; git fetch origin 79a7108d9aea27ddab99ce1779290d300b17fc23; git checkout it; git apply patches/00-vllm-pr56201-sm80-base.patch; then git apply patches/vllm-sm80-deepinfer.patch. Option B (existing SM80 base tree, 11cf4a67f9 on top of 79a7108d9a): apply only patches/vllm-sm80-deepinfer.patch, or copy/bind-mount all 30 drop-in files: cp -r vllm_sm80_deepinfer/vllm/* site-packages/vllm/ (docker bind-mount read-only overlays work - the CMP-recipe pattern). Why vllm-sm80-deepinfer.patch does not apply to latest upstream vllm/main: upstream PR #56741 (cf1584f373) renamed vllm/models/deepseek_v4_1/ to deepseek_v41/, and upstream main ships only SM100 Blackwell + AMD ROCm backends for DeepSeek-V4.1-Flash. Verify with the three in-repo microbenchmarks (microbench_sm80_kernels.py / _part2 / _part3) which print bit-exactness + latency tables; charts via generate_charts.py; full dataset in benchmarks/results/sm80_benchmark_summary.json. Requirements: SM80 (A100 40/64/80 GB, A800, GA100) or SM86 (RTX 3090/3090 Ti, RTX A6000, A40/A10/A30 - all kernels <=48 KB SRAM/CTA); vLLM V1 engine; Triton + TileLang JIT (startup cache-warm included). Base checkpoint: official deepseek-ai/DeepSeek-V4.1-Flash FP8.' + pinned_commit: 25e458ab1c2e662fccdbc85f705b76181d4f2705 + install_note: 'Engine pin chain at v0.1.1 (25e458ab1c): base = vllm-project/vllm PR #56201 @ 79a7108d9aea27ddab99ce1779290d300b17fc23 (v0.28.1rc0); SM80 enablement = haosdent/vllm dsv4-flash-a100 rebase (patches/00-vllm-pr56201-sm80-base.patch); Deepinfer-SM80 kernels + YOCO/PP via patches/vllm-sm80-deepinfer.patch. Repro path (NEW at v0.1.1): docker/Dockerfile.sm80 (CUDA 13.0.0, VLLM_BASE_COMMIT=79a7108d9aea, TORCH_CUDA_ARCH_LIST="8.0 8.6", ~35 min A100-SXM4-80GB build) + scripts/apply_patches.sh + verify_env.py + check_dropin_sync.py; details: docs/REPRODUCTION.md, docs/KNOWN_ISSUES.md. Patch does not apply to upstream vllm/main (PR #56741 rename; main ships SM100+ROCm only). Verify: microbench_sm80_kernels.py/_part2/_part3; results in benchmarks/results/. Requires SM80 (A100 40/64/80 GB, A800, GA100) or SM86 (RTX 3090/A6000/A40/A10/A30); vLLM V1; Triton + TileLang JIT. Checkpoint: official deepseek-ai/DeepSeek-V4.1-Flash FP8.' summary: "DeepSeek-V4.1-Flash served on six 64 GB SM80 GPUs (GA100 die, owner-classified 170HX) with HalfVulpes' Deepinfer-SM80 patch set: a 30-file vLLM V1 overlay porting DeepSeek's DeepInfer kernel architecture (SM100 tcgen05/TMEM) to Ampere mma.sync tensor cores - unified 512-dim SM80 sparse-MLA decode/prefill kernels with bitshift UE8M0 scale decoding, a bit-exact single-CTA Triton TopK+SWA combiner (22.17x), direct-store KV-cache gather (7.64x @48K), SM80-aligned TileLang mHC routing (2.89x), and YOCO L20-L39 ragged indexer-metadata reuse (19 redundant kernel chains eliminated per chunk). TP2 x PP3 (14/14/12) + DSpark K=5 + 1M context, 4.65M-token GPU-resident KV. Author-measured: 64K cold prefill 4,507 tok/s (+24.2% vs baseline vLLM SM80), 64K TTFT 10.7 s (-18.9%), c1 DSpark decode 160.8 tok/s code / 188.8 tok/s 16K+ long-gen, c4 170.5 aggregate. Microbenchmarks bit-exact (0 diff) or within BF16 noise. Topology guide: PP6 = 2.1x slower single-stream; TP2+TP4 asymmetric hurts Marlin tiles." license: Apache-2.0 model: @@ -88,7 +88,7 @@ artifacts: kind: engine_image pointer_type: git_commit pointer: 'https://github.com/HalfVulpes/Deepinfer-SM80' - pin: 'HEAD 8895510cae8f8f1733401686e67a4d1e11e7e94b at revision 2026-10-28 (verified: 30 drop-in files; patches/00-vllm-pr56201-sm80-base.patch new +15,359 lines + patches/vllm-sm80-deepinfer.patch modified 30 files/4,289 lines; README+summary JSON match)' + pin: 'HEAD 25e458ab1c2e662fccdbc85f705b76181d4f2705 (tag v0.1.1, 2026-11-06) at revision 2026-11-19 (verified live at write: ls-remote HEAD==main==v0.1.1 peel; pin..HEAD = 13 commits, linear fast-forward, no commits after the tag; delta = repro packaging (docker/Dockerfile.sm80, scripts/apply_patches.sh, docs/REPRODUCTION.md, GPU-free CI) + ROCm top-k fix e2b585f in the amd/rocm.py hunk - SM80 CUDA path untouched; author A/B: measured numbers unchanged)' - kind: model_weights pointer_type: hf_model @@ -114,4 +114,4 @@ provenance: source_urls: - 'https://github.com/HalfVulpes/Deepinfer-SM80' - 'https://github.com/deepseek-ai/DeepInfer' - notes: "Community ingest of HalfVulpes' port (Apache-2.0). All numbers claimed_by=submitter T0 (microbench + E2E harness + raw JSON in-repo) - import via POST /api/v1/benchmarks to upgrade. HARDWARE CAVEAT: validated on GA100/A100 64 GB SM80; CMP 170HX is the same GA100 silicon at 140 W (74 SMs) but the author did not measure CMP-class power/link configs, and the 6x rig uses PCIe x16 Gen4/Gen5 - do NOT present the numbers as CMP-measured. Engine is a vLLM patch, NOT a new engine enum. Upstream deepseek-ai/DeepInfer itself stays SM100/Ascend-only and is NOT separately ingestable. Discord corroboration: cmpunlocker #testing-general / #clanker-talk 2026-10-20 17:12-17:22Z ('160.8-188.8 tok/s... even pp6 65.5-68.5... double of GLM 5.3... multi-model') and reala/segmond linking the repo (not re-verified). docs/05's KV math section names the -1017 revision while README/summary serve the base V4.1-Flash checkpoint. A 170hx-x4 CMP variant is the natural follow-up once someone measures it. HARDWARE RECLASSIFICATION (owner ruling 2026-10-21): the author labeled the rig '6x A100'; 64 GB SM80 cards are CMP 170HX (GA100 die) - real A100 is 40/80 GB and never 64 - so the recipe is owner-classified as 6x CMP 170HX; the -6x-a100- slug keeps its historical token. Author wording 'A100/GA100' is preserved in quotes inside performance notes and install_note only." + notes: "Community ingest of HalfVulpes' port (Apache-2.0). All numbers claimed_by=submitter T0 (microbench + E2E harness + raw JSON in-repo) - import via POST /api/v1/benchmarks to upgrade. HARDWARE CAVEAT: validated on GA100/A100 64 GB SM80; CMP 170HX is the same GA100 silicon at 140 W (74 SMs) but the author did not measure CMP-class power/link configs, and the 6x rig uses PCIe x16 Gen4/Gen5 - do NOT present the numbers as CMP-measured. Engine is a vLLM patch, NOT a new engine enum. Upstream deepseek-ai/DeepInfer itself stays SM100/Ascend-only and is NOT separately ingestable. Discord corroboration: cmpunlocker #testing-general / #clanker-talk 2026-10-20 17:12-17:22Z ('160.8-188.8 tok/s... even pp6 65.5-68.5... double of GLM 5.3... multi-model') and reala/segmond linking the repo (not re-verified). docs/05's KV math section names the -1017 revision while README/summary serve the base V4.1-Flash checkpoint. A 170hx-x4 CMP variant is the natural follow-up once someone measures it. HARDWARE RECLASSIFICATION (owner ruling 2026-10-21): the author labeled the rig 6x A100; 64 GB SM80 cards are CMP 170HX (GA100 die) - real A100 is 40/80 GB and never 64 - so the recipe is owner-classified as 6x CMP 170HX; the -6x-a100- slug keeps its historical token. Author wording 'A100/GA100' is preserved in quotes inside the performance notes. PIN REVISION (kanban t_ef4644ee, owner go Casey 2026-10-28, parent t_ab1b8c82): pin 2a828fc2122b -> 8895510cae8f (+3 commits: 8895510 fix(pp) pp_share.py + TP2xPP3/TP4xPP2 + DSpark + 1M indexer modules; a11809d 8-GPU TP4xPP2 benchmarks; e375de2 base vLLM PR #56201 (79a7108d9a) + haosdent/vllm SM80 fork link + 00-vllm-pr56201-sm80-base.patch). Launch args re-transcribed from the repo README (Base vLLM Version, Fork Lineage & Quick Start Option A/B) + docs/05_TOPOLOGY_1M_CONTEXT_ANALYSIS_SM80.md section 1: the repo ships no serve script; previously-published args applied only patches/vllm-sm80-deepinfer.patch with no SM80 base, stale at 8895510cae (patch no longer applies to upstream main: PR #56741 rename + SM80 backend missing). Scaling rows: omitted - recipe publishes no scaling table (8-GPU TP4xPP2 data: 13,306,380 KV / 12.69x1M, C=1,2,4,12 decode+prefill, left for a future 8-GPU variant card). UI chart charts/05_8gpu_tp4pp2_scaling_1_2_4_12.png deliberately not attached (t_ab1b8c82). UPSTREAM REVISION v0.1.1 (kanban t_917da080, owner go 2026-11-19, preprod; prod rides the batched wave): pin 8895510cae8f -> 25e458ab1c2e = upstream tag v0.1.1 (13 commits 2026-10-28..11-06, linear fast-forward, HEAD quiet at the tag at write time). Delta = repro packaging (docker/Dockerfile.sm80: CUDA 13.0.0 devel, VLLM_BASE_COMMIT=79a7108d9aea, TORCH_CUDA_ARCH_LIST 8.0/8.6, ~35 min A100-SXM4-80GB build; scripts/apply_patches.sh + verify_env.py + check_dropin_sync.py + run_microbench_single_gpu.sh; docs/REPRODUCTION.md; GPU-free top-k regression test + CPU-only CI) + one ROCm/SM86 correctness fix e2b585f (patches/vllm-sm80-deepinfer.patch amd/rocm.py hunk: per-layer top-k indices re-derived from the shared buffer) - the SM80 CUDA path is untouched and the author's before/after A/B shows no measurable end-to-end change, so the published tables stand; the 6x TP2xPP3 serving config is unchanged. haosdent/vllm dsv4-flash-a100 branch head moved to 12810046c799 (informational; recipe pins the bundled patch file, not the branch). Perf fields untouched (measurement provenance separate lane)."