Skip to content

deployment skill: add SGLang cookbook cross-check (analog of recipes.vllm.ai) - #1685

Merged
Edwardf0t1 merged 4 commits into
mainfrom
deployment-sglang-cookbook-crosscheck
Jun 12, 2026
Merged

deployment skill: add SGLang cookbook cross-check (analog of recipes.vllm.ai)#1685
Edwardf0t1 merged 4 commits into
mainfrom
deployment-sglang-cookbook-crosscheck

Conversation

@Edwardf0t1

@Edwardf0t1 Edwardf0t1 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Type of change: documentation (agent skill)

The deployment and evaluation skills cross-check vLLM launch commands against recipes.vllm.ai, but the SGLang reference had no equivalent authoritative recipe source. This adds the SGLang cookbook (docs.sglang.io/cookbook) — the direct SGLang analog of recipes.vllm.ai, using the same (hw, variant, quant, strategy, nodes) variant-tuple command generator — as the cross-check source for SGLang deployments.

Changes (canonical .agents/ source; .claude/ are symlinks):

  • SKILL.md: cookbook cross-check note under the SGLang quick-start, mirroring the existing vLLM cu130/sm_103 block — covers the JS-rendered (Mintlify) page, the raw-markdown fallback in sgl-project/sglang docs_new/, the URL-fragment variant selection, and the SM120 (RTX PRO 6000) nightly-image gotcha.
  • references/sglang.md: a new authoritative-recipe section, a MoE/FP4 backend flag matrix (flashinfer_mxfp4 vs marlin, deepep vs megamoe), and per-hardware notes (Blackwell / Hopper / RTX PRO 6000).

Usage

N/A — documentation only. Agents now cross-check SGLang launch flags against docs.sglang.io/cookbook/<category>/<org>/<model>, fetching the raw markdown at github.com/sgl-project/sglang/blob/main/docs_new/cookbook/<category>/<org>/<model>.mdx when the page is JS-rendered.

Testing

Markdown-only change to skill docs; no code paths affected.

Before your PR is "Ready for review"

  • Is this change backward compatible?: ✅
  • If you copied code from any other sources or added a new PIP dependency, did you follow guidance in CONTRIBUTING.md: N/A
  • Did you write any new necessary tests?: N/A (docs only)
  • Did you update Changelog?: N/A (agent skill docs, not a library feature/API change)
  • Did you get Claude approval on this PR?: ❌ (pending)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Added authoritative cookbook cross-check guidance for SGLang deployments and recipe parameter selection.
    • Explained how to fetch raw cookbook content when rendered pages omit commands and which flag areas the cookbook governs.
    • Expanded backend/strategy guidance for MoE, dispatch modes, and runtime tuning (batching, request sizing, CUDA-graph).
    • Added hardware-specific notes, including RTX PRO 6000 nightly-image requirement and platform-specific runner recommendations.

…vllm.ai)

The deployment/evaluation skills cross-check vLLM launch commands against
recipes.vllm.ai, but the SGLang reference had no equivalent authoritative
recipe source. Add the SGLang cookbook (docs.sglang.io/cookbook, the SGLang
analog with the same (hw, variant, quant, strategy, nodes) variant-tuple
model) as the cross-check source.

- SKILL.md: cookbook cross-check note under the SGLang quick-start, mirroring
  the vLLM cu130/sm_103 block (JS-rendered Mintlify page, raw-markdown
  fallback in sgl-project/sglang docs_new/, SM120 nightly-image gotcha).
- references/sglang.md: authoritative-recipe section, MoE/FP4 backend flag
  matrix (flashinfer_mxfp4 vs marlin, deepep vs megamoe), and per-hardware
  notes (Blackwell / Hopper / RTX PRO 6000).

Signed-off-by: Zhiyu Cheng <zhiyuc@nvidia.com>
@coderabbitai

coderabbitai Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 20eec4bf-7d57-43fe-9809-8857a2619fb1

📥 Commits

Reviewing files that changed from the base of the PR and between ca2a42d and 4c56c44.

📒 Files selected for processing (1)
  • .agents/skills/deployment/SKILL.md

📝 Walkthrough

Walkthrough

This PR updates SGLang deployment docs to require cross-checking launch flags against the SGLang cookbook (variant selection via URL fragment and raw-markdown retrieval) and adds MoE/FP4 backend flag guidance plus hardware-specific notes (including SM120 nightly image requirement).

Changes

SGLang deployment reference and guidance

Layer / File(s) Summary
Authoritative cookbook cross-check guidance
.agents/skills/deployment/references/sglang.md, .agents/skills/deployment/SKILL.md
Adds cookbook URL/fragment scheme and raw-markdown retrieval instructions; updates SKILL.md to point readers to the cookbook for parallelism/strategy and MoE backend flag selection and to require lmsysorg/sglang:dev nightly for SM120 (RTX PRO 6000).
MoE/FP4 backend flag and hardware-specific recommendations
.agents/skills/deployment/references/sglang.md
Documents MoE runner vs expert/all-to-all backend choices, DeepEP dispatch modes, directive to mirror cookbook strategy tuning knobs (CUDA-graph max-batch, max-running-requests, MTP steps/tokens), and hardware notes for Blackwell, Hopper, and RTX PRO 6000.

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 6
✅ Passed checks (6 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: adding SGLang cookbook cross-check guidance to the deployment skill documentation, with an apt analogy to recipes.vllm.ai.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Security Anti-Patterns ✅ Passed PR #1685 only changes .agents/skills/deployment/SKILL.md and .agents/skills/deployment/references/sglang.md (docs); no modelopt/examples Python or dependency changes, so no listed security anti-pat...

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch deployment-sglang-cookbook-crosscheck

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.66%. Comparing base (46eddab) to head (4c56c44).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1685      +/-   ##
==========================================
- Coverage   67.73%   67.66%   -0.07%     
==========================================
  Files         511      511              
  Lines       56169    56256      +87     
==========================================
+ Hits        38044    38066      +22     
- Misses      18125    18190      +65     
Flag Coverage Δ
unit 54.34% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the deployment agent skill documentation to treat the SGLang cookbook (docs.sglang.io/cookbook/...) as the authoritative cross-check source for SGLang launch commands, analogous to the existing recipes.vllm.ai cross-check for vLLM.

Changes:

  • Adds an SGLang cookbook cross-check callout to the SGLang quick-start section in the deployment skill.
  • Expands the SGLang deployment reference with a cookbook “authoritative recipe source” section, MoE/FP4 backend flag matrix, and hardware-specific notes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
.agents/skills/deployment/SKILL.md Adds an SGLang cookbook cross-check note under the SGLang quick-start launch command.
.agents/skills/deployment/references/sglang.md Adds cookbook guidance plus backend/hardware notes for SGLang deployments.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .agents/skills/deployment/SKILL.md Outdated
Comment on lines +155 to +156
> `.../autoregressive/DeepSeek/DeepSeek-V4`), authoritative for parallelism
> (`--tp` / `--dp` / EP), MoE backends (`--moe-runner-backend flashinfer_mxfp4`
Comment thread .agents/skills/deployment/SKILL.md Outdated
Comment on lines +161 to +162
> The page is **JS-rendered** — fetch the raw markdown at
> `github.com/sgl-project/sglang/blob/main/docs_new/cookbook/<category>/<org>/<model>.mdx`.
Comment on lines +20 to +21
- **Authoritative for:** parallelism layout (`--tp` / `--dp` / EP), MoE backends,
strategy-driven flags (MTP, CUDA-graph batch sizing), Docker image tag, and the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a valid suggestion.

Comment on lines +14 to +16
- **JS-rendered (Mintlify).** A plain fetch usually misses the commands. Fetch
the **raw markdown** instead:
`github.com/sgl-project/sglang/blob/main/docs_new/cookbook/<category>/<org>/<model>.mdx`
Comment thread .agents/skills/deployment/references/sglang.md

@mxinO mxinO left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

Comment on lines +20 to +21
- **Authoritative for:** parallelism layout (`--tp` / `--dp` / EP), MoE backends,
strategy-driven flags (MTP, CUDA-graph batch sizing), Docker image tag, and the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a valid suggestion.

Apply Copilot review feedback (endorsed by maintainer for the flag-name fix):
- Parallelism flags: use --tp / --ep (the flags the reference documents) and
  refer to multi-node/data-parallel settings generically, instead of the
  inconsistent --tp / --dp / EP.
- Raw-markdown fetch: point at raw.githubusercontent.com/... which serves the
  .mdx directly, not github.com/.../blob/... which returns rendered HTML.
- Drop backslash-escaping of | inside an inline-code table cell; GFM renders
  the backslashes literally in code spans.

Signed-off-by: Zhiyu Cheng <zhiyuc@nvidia.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.agents/skills/deployment/references/sglang.md (1)

104-110: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Fix the --deepep-mode row formatting.

The raw | characters in auto|normal|low_latency split this table into extra columns, so the markdown renders incorrectly and hides part of the guidance. Reformat the row or move the values out of the table.

Suggested fix
-| `--deepep-mode auto|normal|low_latency` | DeepEP dispatch mode |
+| `--deepep-mode` | DeepEP dispatch mode: `auto`, `normal`, or `low_latency` |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.agents/skills/deployment/references/sglang.md around lines 104 - 110, The
table row for the flag `--deepep-mode` currently contains raw pipe characters
("auto|normal|low_latency") which break the Markdown table; update the
`--deepep-mode` row so the cell does not include unescaped pipes — for example,
replace the pipes with commas ("auto, normal, low_latency") or wrap each option
in inline code/backticks or escape the pipe characters — ensuring the table
remains three columns and the description for `--deepep-mode` is fully visible.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In @.agents/skills/deployment/references/sglang.md:
- Around line 104-110: The table row for the flag `--deepep-mode` currently
contains raw pipe characters ("auto|normal|low_latency") which break the
Markdown table; update the `--deepep-mode` row so the cell does not include
unescaped pipes — for example, replace the pipes with commas ("auto, normal,
low_latency") or wrap each option in inline code/backticks or escape the pipe
characters — ensuring the table remains three columns and the description for
`--deepep-mode` is fully visible.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 85292ab3-6748-41cb-86b0-bb640bbdcbbf

📥 Commits

Reviewing files that changed from the base of the PR and between 3350622 and 52456e0.

📒 Files selected for processing (2)
  • .agents/skills/deployment/SKILL.md
  • .agents/skills/deployment/references/sglang.md

The previous commit dropped the backslash-escaping of | inside the
--deepep-mode code span per a Copilot suggestion, but markdownlint MD056
(table-column-count) counts those unescaped pipes as extra column
separators (2 cells -> 4) and fails CI. GitHub's renderer tolerates the
unescaped form, but the repo's markdownlint does not, so keep the escaping.

Verified clean with markdownlint-cli2@0.18.1 (the pinned CI version).

Signed-off-by: Zhiyu Cheng <zhiyuc@nvidia.com>
The inline callout duplicated the per-flag/backend detail that now lives in
references/sglang.md (the authoritative-recipe section + backend matrix).
Drop the flag enumeration from SKILL.md, keeping only the cookbook pointer,
URL-fragment variant selection, JS-render/raw-markdown tip, and the SM120
deploy-blocking image gotcha — matching the altitude of the vLLM callout.
Detailed parallelism/MoE-backend flags stay in references/sglang.md.

Signed-off-by: Zhiyu Cheng <zhiyuc@nvidia.com>
@Edwardf0t1
Edwardf0t1 enabled auto-merge (squash) June 12, 2026 07:42
@Edwardf0t1
Edwardf0t1 merged commit cc17f2c into main Jun 12, 2026
42 checks passed
@Edwardf0t1
Edwardf0t1 deleted the deployment-sglang-cookbook-crosscheck branch June 12, 2026 07:57
@github-actions

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-12 07:57 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants