Skip to content

[docs] Inkling cookbook: LoRA cells require --disable-prefill-cuda-graph - #31418

Merged
zijiexia merged 1 commit into
sgl-project:mainfrom
jybsuper:inkling-lora-disable-prefill-cg
Jul 16, 2026
Merged

zijiexia merged 1 commit into
sgl-project:mainfrom
jybsuper:inkling-lora-disable-prefill-cg

Conversation

@jybsuper

@jybsuper jybsuper commented Jul 16, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

The Inkling cookbook's LoRA deploy cells omit --disable-prefill-cuda-graph, on the assumption (stated in a code comment) that "prefill CUDA graphs auto-disable under --enable-lora." That is not the case: the Inkling arch opts into full-graph prefill CUDA-graph capture, and there is no enable_lora gate on the prefill graph. The LoRA-wrapped MoE cannot be captured in a full prefill graph, so a server launched from the current LoRA cells fails at graph-capture time unless the user adds the flag manually.

Change (docs only)

  • Add --disable-prefill-cuda-graph to all 7 LoRA cells:
    • nvfp4 experimental_sgl_marlin — b200, b300, gb200, gb300, h200
    • bf16 experimental_sgl_trtllm — gb300 (2-node)
    • bf16 triton — h200
  • Correct the stale comment (auto-disable under --enable-lora) to state the flag is required.
  • Update the §3.4 prose so the documented flag list matches the generated command.

The root cause is model-level (the Inkling full-prefill-graph opt-in, independent of MoE backend), so the fix applies to every LoRA cell — the experimental marlin/trtllm cells are the empirically confirmed failure cases. No code and no non-LoRA cells are touched.


CI States

Latest PR Test (Base): ✅ Run #29473338524
Latest PR Test (Extra): ❌ Run #29473338425

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 16, 2026
The Inkling arch opts into full-graph prefill CUDA-graph capture and
--enable-lora does not disable it, so the LoRA-wrapped MoE fails at
capture unless the prefill graph is disabled. Add the flag to all 7
LoRA deploy cells. Docs-only.
@jybsuper
jybsuper force-pushed the inkling-lora-disable-prefill-cg branch from 49c5baf to 72fb44b Compare July 16, 2026 05:13
@zijiexia
zijiexia enabled auto-merge (squash) July 16, 2026 05:18
@zijiexia
zijiexia merged commit 40517b5 into sgl-project:main Jul 16, 2026
86 of 90 checks passed
@jybsuper
jybsuper deleted the inkling-lora-disable-prefill-cg branch July 16, 2026 21:10
Chronostasys pushed a commit to MindLab-Research/sglang that referenced this pull request Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants