mirror of
https://github.com/lightseekorg/tokenspeed.git
synced 2026-12-04 10:26:50 +08:00
chore: upgrade FlashInfer to 0.7.3 (#3099)
## Summary Upgrade the pinned FlashInfer dependency from 0.7.2.post1 to 0.7.3. - `tokenspeed-kernel/python/requirements/cuda.txt`: pin `flashinfer-python==0.7.3` and bump `nvidia-cudnn-frontend` to `==1.32.0`, which FlashInfer 0.7.3 requires. The frontend stays exactly pinned because the FlashInfer tactic-cache metadata includes the frontend version. - `test/ci_system/install_deps.sh`: add the pinned SHA256 checksum for the `flashinfer-cubin` 0.7.3 release so the downloaded cubins remain verified. - `test/ci/run_slurm.sh` and `test/ci/README.md`: switch the default Slurm runner image to the `cu130-torch-2.14.0-flashinfer-0.7.3` tag, still pinned by digest, and update the CI documentation for the new FlashInfer and cuDNN frontend versions. Resulting behavior: - The GDN attention adapters have so far audited only the 0.7.2.post1 sources. With 0.7.3 pinned, they use the portable fallback until the new upstream sources are audited, and the explicit decode solution remains gated on the audited release. - The MoE documentation now attributes the routing-map padding behavior (unused rows of `permuted_idx_to_token_idx` initialized to `-1` in the routing producers) to the 0.7.3 pin. ## Test Plan - `tokenspeed-kernel/test/test_setup.py` was updated to expect `nvidia-cudnn-frontend==1.32.0` in the CUDA install requirements. No other validation is recorded for this change. Signed-off-by: lightseek-bot <243258330+lightseek-bot@users.noreply.github.com>
This commit is contained in:
+3
-3
@@ -694,10 +694,10 @@ This is a manual launcher, not a GitHub Actions runner. Override its defaults
|
||||
with `TS_CI_ARTIFACT_ROOT`, `TS_CI_CACHE_DIR`, or
|
||||
`TS_CI_CONTAINER_IMAGE`.
|
||||
|
||||
The default Slurm image pins Torch 2.14.0 and FlashInfer 0.7.2 by image digest.
|
||||
The default Slurm image pins Torch 2.14.0 and FlashInfer 0.7.3 by image digest.
|
||||
When upgrading, keep the FlashInfer Python requirement, release cubin checksum,
|
||||
and runner JIT-cache version aligned. FlashInfer 0.7.2 also requires
|
||||
cuDNN frontend 1.31.0 or newer and splits its JIT cache into provider packages.
|
||||
and runner JIT-cache version aligned. FlashInfer 0.7.3 also requires
|
||||
cuDNN frontend 1.32.0 or newer and splits its JIT cache into provider packages.
|
||||
GB200/B200 setup resolves those providers from the matching FlashInfer CUDA
|
||||
index and checks their installed versions again after dependency installation.
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
||||
ci_user="${USER:-$(id -un)}"
|
||||
artifact_root="${TS_CI_ARTIFACT_ROOT:-/mnt/nfs01/${ci_user}/tokenspeed-slurm}"
|
||||
cache_dir="${TS_CI_CACHE_DIR:-/mnt/lustre01/${ci_user}/tokenspeed-cache}"
|
||||
container_image="${TS_CI_CONTAINER_IMAGE:-ghcr.io/lightseekorg/tokenspeed-runner:cu130-torch-2.14.0-flashinfer-0.7.2@sha256:4424950eaea3bb9565d9588c51040173b69ab68e15d2ea8d823fd2671a3e1020}"
|
||||
container_image="${TS_CI_CONTAINER_IMAGE:-ghcr.io/lightseekorg/tokenspeed-runner:cu130-torch-2.14.0-flashinfer-0.7.3@sha256:e359ef0b3d761357f52bd3675fcc831896288448ee06b11807d09f237ec8b3bd}"
|
||||
|
||||
if [ "$#" -gt 0 ] && [[ "$1" != -* ]]; then
|
||||
config="$1"
|
||||
|
||||
@@ -267,6 +267,7 @@ if [ -n "${FLASHINFER_PYTHON_SPEC}" ]; then
|
||||
0.7.1) FLASHINFER_CUBIN_SHA256="502eaa5f71e768950ada429618481a886388fcb34a5da6a2258979713cbaa327" ;;
|
||||
0.7.2) FLASHINFER_CUBIN_SHA256="31704fa5b2562d459d34c67cee9e80e0abb96c82f89943d542276d5a92c88079" ;;
|
||||
0.7.2.post1) FLASHINFER_CUBIN_SHA256="1998c7006bcc06ee5dd3208a682af247382c6710d6b370a961381262c04c11f0" ;;
|
||||
0.7.3) FLASHINFER_CUBIN_SHA256="115b96065fa2dcc1674c74fcb0544ec2890a6fa4a8519b2251d1f6ab3d780093" ;;
|
||||
*) echo "No SHA256 pinned for flashinfer-cubin ${FLASHINFER_VERSION}" >&2; exit 1 ;;
|
||||
esac
|
||||
# Nightlies version as X.Y.Z.devYYYYMMDD but tag as nightly-vX.Y.Z-YYYYMMDD,
|
||||
|
||||
@@ -10,8 +10,8 @@ tokenspeed-proton>=3.9.10.post20261028
|
||||
tokenspeed-triton>=3.9.10.post20261028
|
||||
nvidia-cutlass-dsl[cu13]==4.8.0
|
||||
nvidia-cutlass-dsl-libs-cu13==4.8.0
|
||||
flashinfer-python==0.7.2.post1
|
||||
flashinfer-python==0.7.3
|
||||
# FlashInfer tactic-cache metadata includes the frontend version; keep it stable.
|
||||
nvidia-cudnn-frontend==1.31.0
|
||||
nvidia-cudnn-frontend==1.32.0
|
||||
nvidia-ml-py==13.580.82
|
||||
nvtx
|
||||
|
||||
@@ -134,9 +134,10 @@ for decode, MTP, BF16 state, and prefill.
|
||||
|
||||
## Rubin FlashInfer
|
||||
|
||||
The pinned FlashInfer Python/cubin release is `0.7.2.post1`, which includes
|
||||
both Rubin entry points. Registrations live in `flashinfer.py`; the explicit
|
||||
`flashinfer_rubin` decode solution remains available.
|
||||
The audited FlashInfer Python/cubin release for these adapters is `0.7.2.post1`.
|
||||
The current `0.7.3` dependency pin uses the portable fallback until its sources
|
||||
are audited. Registrations live in `flashinfer.py`; the explicit
|
||||
`flashinfer_rubin` decode solution requires the audited release.
|
||||
|
||||
The Rubin adapters check the release version, API parameters, and SHA256 of
|
||||
the upstream sources before registration. Source checks cover the decode CTA
|
||||
|
||||
@@ -141,7 +141,7 @@ replay. Performance depends on routing; benchmark the intended workload.
|
||||
|
||||
### NVFP4 routing-map padding
|
||||
|
||||
The pinned FlashInfer version (0.7.2.post1) initializes unused rows inside active
|
||||
The pinned FlashInfer version (0.7.3) initializes unused rows inside active
|
||||
expert tiles of `permuted_idx_to_token_idx` to `-1` in its routing producers.
|
||||
This prevents unnecessary activation loads in the first GEMM without a separate
|
||||
fill-kernel launch. Routing refreshes live mappings and tile padding on every
|
||||
|
||||
@@ -93,7 +93,7 @@ def test_cuda_install_requires_include_runtime_dependencies(monkeypatch) -> None
|
||||
assert {"tokenspeed-kernel-amd", "tokenspeed-iris"}.isdisjoint(requirements)
|
||||
assert "tokenspeed-triton-kernels" not in requirements
|
||||
assert requirements["nvidia-cutlass-dsl"].extras == {"cu13"}
|
||||
assert str(requirements["nvidia-cudnn-frontend"].specifier) == "==1.31.0"
|
||||
assert str(requirements["nvidia-cudnn-frontend"].specifier) == "==1.32.0"
|
||||
|
||||
|
||||
def test_cuda_thirdparty_requirements_are_exactly_pinned() -> None:
|
||||
|
||||
Reference in New Issue
Block a user