perf(deepseek-v41): preserve decode capacity and optimize NVMe Engram - #736
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change adds disk Engram residency and prefetch controls, tensor-parallel projection support, revised attention planning, and shared attention metadata buffers. Tests cover configuration validation, disk preparation, decode splitting, cache-group reuse, and token-mapping updates. ChangesDisk Engram controls
Decode reservation and attention execution
Attention metadata ownership
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~30 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant Model as NVIDIAModel
participant Engram
participant Table as DiskTable
Model->>Engram: prepare_disk(hash_ids)
Engram->>Table: prefetch(indices)
Model->>Engram: finish_disk()
Engram->>Table: complete pending lookup
Table-->>Engram: disk output
Engram-->>Model: prepared Engram output
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The reviewed configuration forwarding and attention-planning changes have no remaining concrete merge-blocking risk. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
f66bf71 to
311f105
Compare
Forward the planned DSpark decode reservation to B12X MLA, preserving decode splits beyond the generic 256-row cutoff. Rebase opt-in resident scales, bounded table prefetch, WKV output-column TP, and batch-local metadata reuse onto current JJ. Remove the obsolete MoE tile adapter and PR359 dependency. Targeted component gates: 39 passed across vLLM and B12X; normal-answer smokes 3/3; concurrent admission/generation 32/32. Full pre-commit has inherited failures: mypy 13 candidate versus 15 base, existing pickle and CUDA fixture checks. Those three hooks alone are skipped; all other applicable hooks pass. Co-authored-by: OpenAI Codex <noreply@openai.com> Signed-off-by: MadeBy561 <155126856+MadeBy561@users.noreply.github.com>
311f105 to
464e439
Compare
de1209c
into
local-inference-lab:dev/jovian-judgement
|
Independent DS4.1 R38 component validation at public JJ Coverage includes original E8M0 scale residency/accounting, exact disk versus Full-image TP4 RAM-Engram text/Vision and prefix checks also pass. The combined |
Forward parallel DSpark’s decode reservation to B12X so maxseq 32 retains the decode split policy: 352 rows at K5, 480 at K7. Also add opt-in original Engram scale residency, bounded NVMe prefetch, WKV output-column TP and batch-local metadata reuse. Engram options require B12X #360. Rebased onto JJ 9342b1a; the resolved files exactly match the tested R37 candidate.
Matched R37 comparison; + PRs means #360 and #736 together. Four RTX PRO 6000 Max-Q GPUs, 300 W, memory +6000; TP4/DCP1, native precision, NVMe Engram, K7/adaptive, batch 4096, maxseq 32, 1M context, utilization 0.97, full target/draft graphs through 256. All four arms include R37’s existing dispatch/prefill improvements.
Tok/s unless marked otherwise. llm_decode_bench 0.4.34: one 30s decode cell per concurrency after 15s warmup, context 0, T1/top-p.95/high75; 32K prefill has 2–3 uncached samples. Thinking: three 35s runs, first 3s excluded, max100/top-p1. Sieve: five runs after one warmup, 2000-token cap, normal EOS. Output includes reasoning tokens.
All C1–C32 cells passed isolation checks with zero errors/queues. Each arm passed 3 seeded answer checks and 32/32 concurrent badge checks. No reduced model precision; full model equivalence and individual PR ablations remain unmeasured.
23 vLLM + 16 B12X GPU checks passed. Ruff/diff checks passed; full pre-commit retains inherited mypy errors (13 candidate/15 untouched base), plus existing pickle-import and CUDA-fixture failures.
GPU test commands
AI-assisted implementation/testing; owner requested ready-for-review status. The R37 source audit found these changes absent from the release; its dispatch/attention optimizations address different paths.