Skip to content

Fix inference mode mismatch in FlashInfer warmup - #33788

Merged
Fridge003 merged 4 commits into
sgl-project:mainfrom
nvpohanh:fix-flashinfer-autotune-inference-mode
Aug 6, 2026
Merged

Fridge003 merged 4 commits into
sgl-project:mainfrom
nvpohanh:fix-flashinfer-autotune-inference-mode

Conversation

@nvpohanh

@nvpohanh nvpohanh commented Aug 6, 2026 •

Copy link
Copy Markdown
Collaborator

[by Codex]

Summary

  • remove torch.inference_mode() from the FlashInfer autotune context and shared dummy warmup forward without adding an explicit torch.no_grad() context
  • avoid creating inference tensors for lazily allocated workspaces that eager serving and CUDA graph capture later update in place

Closes #33470

Testing

  • BLACK_NUM_WORKERS=1 SKIP=no-commit-to-branch pre-commit run --all-files --show-diff-on-failure

CI States

Latest PR Test (Base): ⏳ Run #31099758734
Latest PR Test (Extra): ❌ Run #31099758373

@nvpohanh

nvpohanh commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator Author

[by Codex]
/tag-and-rerun-ci

@nvpohanh nvpohanh added the run-ci CI: run the baseline test suite on this PR label Aug 6, 2026
@nvpohanh

nvpohanh commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator Author

/rerun-failed-ci

@nvpohanh
nvpohanh force-pushed the fix-flashinfer-autotune-inference-mode branch from e522c7b to 05a940a Compare August 6, 2026 12:02
wenscarl added a commit to wenscarl/sglang that referenced this pull request Aug 6, 2026
@Fridge003
Fridge003 merged commit bae29f7 into sgl-project:main Aug 6, 2026
153 of 173 checks passed
saturn-acc pushed a commit to saturn-acc/sglang that referenced this pull request Aug 16, 2026
Atituiset pushed a commit to Atituiset/sglang that referenced this pull request Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

inference_mode mismatch can break lazy buffers

2 participants