Skip to content

[Dep] Upgrade flashinfer to 0.6.14 - #29910

Merged
Fridge003 merged 17 commits into
mainfrom
upd-flashinfer
Jul 10, 2026
Merged

Fridge003 merged 17 commits into
mainfrom
upd-flashinfer

Conversation

@Fridge003

@Fridge003 Fridge003 commented Jul 2, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Modifications

Accuracy Tests

Speed Tests and Profiling

Checklist

Review and Merge Process

  1. Ping Merge Oncalls to start the process. See the PR Merge Process.
  2. Get approvals from CODEOWNERS and other reviewers.
  3. Trigger CI tests with comments or contact authorized users to do so.
    • Common commands include /tag-and-rerun-ci, /tag-run-ci-label, /rerun-failed-ci
  4. After green CI and required approvals, ask Merge Oncalls or people with Write permission to merge the PR.

CI States

Latest PR Test (Base): 🚫 Run #29049902482
Latest PR Test (Extra): ✅ Run #29049902443

@github-actions github-actions Bot added the dependencies Pull requests that update a dependency file label Jul 2, 2026
@Fridge003 Fridge003 added run-ci CI: run the baseline test suite on this PR run-ci-extra CI: also run the extra suite (requires run-ci) labels Jul 2, 2026

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request updates the FlashInfer dependency version from 0.6.12 to 0.6.14 across the Dockerfile, pyproject.toml dependencies, package version assertions, and utility docstrings. There are no review comments, and I have no additional feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@Fridge003

Copy link
Copy Markdown
Collaborator Author

/rerun-failed-ci

@Fridge003

Copy link
Copy Markdown
Collaborator Author

Blocked by releasing of flashinfer-cubin wheel

@mmangkad mmangkad removed run-ci CI: run the baseline test suite on this PR run-ci-extra CI: also run the extra suite (requires run-ci) labels Jul 2, 2026
@mmangkad mmangkad added run-ci CI: run the baseline test suite on this PR run-ci-extra CI: also run the extra suite (requires run-ci) labels Jul 3, 2026
@Fridge003
Fridge003 marked this pull request as draft July 6, 2026 01:08
Brayden Zhong added 2 commits July 7, 2026 01:50
flashinfer-cubin is no longer published as a plain PyPI dependency, so
install it directly from https://flashinfer.ai/whl (same pattern as
flashinfer-jit-cache) in both the Docker build and CI dependency setup.
@b8zhong
b8zhong marked this pull request as ready for review July 7, 2026 01:56
@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!

@leejnau

leejnau commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Maybe we should also update these for the new cubin install path and version-bump logic?

  • docs_new/docs/get-started/install.mdx:220
  • docs_new/docs/get-started/quickstart.mdx:293-297
  • scripts/release/bump_flashinfer_version.py

@b8zhong

b8zhong commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

@leejnau We don't need to change that, since for most cases (when using pip), it's OK for the cubin to be downloaded during the server launch anyway

Comment thread docker/Dockerfile
ARG GITHUB_ARTIFACTORY=github.com
ARG INSTALL_FLASHINFER_JIT_CACHE=0
ARG FLASHINFER_VERSION=0.6.12
ARG FLASHINFER_VERSION=0.6.14

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Maybe update documents for flashifner-jitcache/cubin installation

Comment thread python/pyproject.toml Outdated
# TEMP workaround: flashinfer-cubin 0.6.14 is not on PyPI yet
# (flashinfer-ai/flashinfer#3808), so install it from the GitHub release.
# Switch back to flashinfer_cubin==0.6.14 once the wheel lands on PyPI.
"flashinfer_cubin @ https://github.com/flashinfer-ai/flashinfer/releases/download/v0.6.14/flashinfer_cubin-0.6.14-py3-none-any.whl",

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Why we are not doing this

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Maybe for future

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.

@Fridge003 @b8zhong removed this, but actually I prefer this so source/wheel installs still pull flashinfer_cubin automatically

@b8zhong

b8zhong commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

/rerun-failed-ci

@Fridge003 Fridge003 added the release-highlight Candidate PR for release note highlight label Jul 9, 2026
Comment thread docker/Dockerfile
&& mkdir -p /flashinfer_jit_output \
# flashinfer-cubin is CUDA-version-agnostic, unlike jit-cache, so its index-url has no cu${CUINDEX} suffix
&& python3 -m pip install flashinfer-cubin==${FLASHINFER_VERSION} --index-url https://flashinfer.ai/whl \
&& cp -r /usr/local/lib/python3.12/dist-packages/flashinfer_cubin /flashinfer_jit_output/ \

@Fridge003 Fridge003 Jul 9, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Why are we doing this? This will increase image size @mmangkad

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.

@Fridge003 this is not my change

cc @b8zhong

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Cubin was already included by pip. We just do it to be the same as before

out_no_graph = _run_wrapper(wrapper_no_graph, tensors)
out_graph = _run_wrapper(wrapper_graph, tensors)
out_graph2 = _run_wrapper(wrapper_graph, tensors)

@Fridge003 Fridge003 Jul 9, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Why modifying this test @mmangkad

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.

@Fridge003 this is not my change

cc @b8zhong

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Flashinfer refactored the wrappper (for cuda graph). flashinfer-ai/flashinfer#3404 (now no way to pass preallocaetd buffer if not in cuda graph)

@b8zhong

b8zhong commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

/tag-and-rerun-ci extra

@Fridge003
Fridge003 merged commit 2c6cd1e into main Jul 10, 2026
163 of 208 checks passed
@Fridge003
Fridge003 deleted the upd-flashinfer branch July 10, 2026 00:52
Chronostasys pushed a commit to MindLab-Research/sglang that referenced this pull request Aug 24, 2026
Co-authored-by: Brayden Zhong <[email protected]>
Co-authored-by: Mohammad Miadh Angkad <[email protected]>
Edward-lyz pushed a commit to Edward-lyz/sglang that referenced this pull request Nov 10, 2026
来源提交(1 个):b52b3cc5aa
原标题:[Dep] Upgrade flashinfer to 0.6.14 (sgl-project#29910)
作者:Baizhou Zhang,日期:2026-07-09
luno:-
开关:-
默认:无开关
改动规模:6 files changed, 48 insertions(+), 25 deletions(-)
主要目录:docker/Dockerfile, python/pyproject.toml, python/sglang/srt/entrypoints, python/sglang/srt/utils
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bypass-fastfail dependencies Pull requests that update a dependency file release-highlight Candidate PR for release note highlight run-ci CI: run the baseline test suite on this PR run-ci-extra CI: also run the extra suite (requires run-ci)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants