skills/model-optimization/vllm/vllm-deepseek-v3-r1-optimization/SKILL.md
PR-backed optimization manual for DeepSeek V3 / R1 in vLLM. Use when an engineer needs to audit, debug, extend, or document DeepSeek V3 and DeepSeek R1 MLA, MoE, packed-module loading, LoRA, MTP/Eagle, and quantized ROCm/CUDA validation paths.
npx skillsauth add BBuf/AI-Infra-Auto-Driven-SKILLS vllm-deepseek-v3-r1-optimizationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill covers DeepSeek V3 and DeepSeek R1 MLA, MoE, packed-module loading, LoRA, MTP/Eagle, and quantized ROCm/CUDA validation paths.
Evidence snapshot:
0f7be0f2f76814f80f9091220a5fbbb53912ad00references/pr-history.mdmodel-pr-optimization-history/vllm/deepseek-v3-r1/README.zh.md and README.en.mdUse skills/model-optimization/model-pr-diff-dossier/SKILL.md as the production bar.
Every PR cited for this family must be based on diff reading, not only PR titles.
vllm/vllm/model_executor/models/deepseek_v2.pyvllm/vllm/model_executor/models/deepseek_eagle.pyvllm/vllm/model_executor/models/deepseek_eagle3.pyvllm/vllm/model_executor/models/deepseek_mtp.pyDeepseekV2ForCausalLM / DeepseekV3ForCausalLM remain the shared runtime for V3 and R1.Add missing packed_modules_mappingtoDeepseekV2ForCausalLM``: Fixed quantized and packed-weight loading for DeepSeek V2/V3/R1 style checkpoints.Add LoRA support for DeepSeek models (V2, V3, R1-0528): Enabled adapter injection on the DeepSeek family rather than only base dense models.Fix DeepSeek R1 MTP weight loading: Hardened R1 NextN / MTP draft loading after launch failures on draft weights.Fix compressed-tensors quantization failure for DeepSeek-R1 on MI300x: Closed a production ROCm gap for compressed-tensors DeepSeek-R1 deployment.development
Run an autonomous Humanize-governed vLLM SOTA performance loop for one LLM model: first perform the fixed fair vLLM/SGLang/TensorRT-LLM deployment search and benchmark, then start one RLCR loop that repeatedly decides the gap, profiles the current bottleneck, runs layer/kernel pipeline analysis, patches vLLM code, optionally uses ncu-report-skill for kernel evidence, and revalidates until vLLM matches or beats the best observed framework under the same workload and SLA.
devops
Inspect LLM torch profiler traces at forward-pass, layer, and kernel level. Use when you need layer timings, anchor-kernel boundaries, representative kernel flows, or Perfetto time ranges.
development
Run an autonomous Humanize-governed SGLang SOTA performance loop for one LLM model: first perform the fixed fair SGLang/vLLM/TensorRT-LLM deployment search and benchmark, then start one RLCR loop that repeatedly decides the gap, profiles the current bottleneck, runs layer/kernel pipeline analysis, patches SGLang code, optionally uses ncu-report-skill for kernel evidence, and revalidates until SGLang matches or beats the best observed framework under the same workload and SLA.
documentation
Use when an SGLang, vLLM, or TensorRT-LLM serving/model optimization task needs prior model-family PR evidence. Query and read the PR-driven history docs under model-pr-optimization-history before choosing source paths, fast paths, kernel/fusion ideas, regression risks, or validation lanes.