skills/model-optimization/sglang/sglang-qwen35-optimization/SKILL.md
PR-backed and current-main optimization manual for Qwen3.5 in SGLang. Use when an engineer needs to recover, extend, or audit Qwen3.5 dense/MoE, Qwen3.5 FP8/NVFP4/MXFP4, MTP, GDN projection, PP, EPLB, AMD/NPU/Blackwell deployments, FP8 KV caution paths, or Qwen3.5 cookbook recipes.
npx skillsauth add BBuf/AI-Infra-Auto-Driven-SKILLS sglang-qwen35-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.
Qwen3.5 is a separate optimization lane because SGLang carries dedicated model files, MTP files, quantized checkpoint support, PP fixes, GDN projection fusion, and platform-specific tests.
Current evidence snapshot:
origin/main: b3e6cf60a on 2026-04-22origin/main: 816bad5 on 2026-04-21python/sglang/srt/models/qwen3_5.py, python/sglang/srt/models/qwen3_5_mtp.pypython/sglang/srt/configs/qwen3_5.pydocs/basic_usage/qwen3_5.md, docs_new/cookbook/autoregressive/Qwen/Qwen3.5.mdxUse 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.
Capture:
Qwen3.5 is a high-risk loader and topology model.
python/sglang/srt/models/qwen3_5.pypython/sglang/srt/models/qwen3_5_mtp.pypython/sglang/srt/configs/qwen3_5.pytest/registered/4-gpu-models/test_qwen35_fp4_mtp_v2.pytest/registered/4-gpu-models/test_qwen35_fp4_triton.pytest/registered/8-gpu-models/test_qwen35.pytest/registered/gb300/test_qwen35_fp8.pytest/registered/gb300/test_qwen35_nvfp4.pydocs_new/src/snippets/autoregressive/qwen35-deployment.jsxBefore adding or updating any Qwen3.5 PR entry, open the PR diff/source and then write a complete card in references/pr-history.md:
Do not add one-line open PR lists to this skill. If a PR is still open, keep it in a clearly marked open optimization section only after reading its diff, as done for #23474.
development
Perform SGLang code review in the style of human maintainers by consulting the full non-agent PR review episode corpus from project start through the latest refresh (June 2026), including inline review threads, top-level PR comments, review submissions, original multilingual text, and multi-round discussions. Use when reviewing SGLang PRs, diffs, patches, or local changes for correctness, tests, performance, GPU/runtime risks, API compatibility, and maintainability.
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.
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.