Skip to content

[NVIDIA] Add CUDA 13.4 container for initial Rubin support - #36233

Merged
Fridge003 merged 1 commit into
sgl-project:mainfrom
trevor-m:cu134-preview-min
Aug 26, 2026
Merged

Fridge003 merged 1 commit into
sgl-project:mainfrom
trevor-m:cu134-preview-min

Conversation

@trevor-m

@trevor-m trevor-m commented Aug 24, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

CUDA 13.4 Developer Preview provides initial support for Rubin hardware (sm_107). This PR adds a new docker image with CUDA 13.4 for functional Rubin support, which would be built alongside the current cu12 and cu13 containers.

Modifications

Adds docker/Dockerfile.cu134 which is based on the standard sglang container Dockerfile, with a few key changes. Use diff between both dockerfiles to easily see 13.4 specific changes.

  • Base image:nvidia/cuda base images for 13.4 are not available yet. Instead, start with ubuntu base and install cuda 13.4 toolkit from the developer preview. Note: There's no 13.4 specific NCCL yet, so install the standard public one.
  • Torch 2.15 nightly is required for CUDA 13.4 support. Some hacks are needed to pin this nightly version across various stages of the build.
  • sgl-kernel, sgl-deep-gemm, and sgl-deep-ep rely on the torch API for bindings. Since we upgraded to torch 2.15, we need to rebuild these from source. I added an inline build stage for this.
  • Torch 2.15 also upgrades the C++ standard from c++17 to c++20, requiring patches in some of the wheel builds and a new config for sgl-kernel.
  • Cutedsl 4.6.2 doesn't support sm_107 yet, so target sm_100f for all cutedsl kernels using CUTE_DSL_ARCH and CUTE_EXPERIMENTAL_DSL_ARCH.
  • No flashinfer-jit-cache is released yet for Cuda 13.4, so skip installation. Expect long startup times for flashinfer kernels
  • Bumps the flashmla commit in sgl-kernel to include sgl-project/FlashMLA@15f13e5

Also adds a github workflow to build and push the new image.

Accuracy Tests

DeepSeek-V4-Pro GSM8K - Low Latency (TP4 MTP)

sglang serve \
  --trust-remote-code \
  --model-path deepseek-ai/DeepSeek-V4-Pro \
  --tp 4 \
  --moe-runner-backend flashinfer_mxfp4 \
  --speculative-algorithm EAGLE \
  --speculative-num-steps 3 \
  --speculative-eagle-topk 1 \
  --speculative-num-draft-tokens 4 \
  --chunked-prefill-size 8192 \
  --disable-flashinfer-autotune \
  --swa-full-tokens-ratio 0.1 \
  --mem-fraction-static 0.90 \
  --host 0.0.0.0 \
  --port 30000
python3 benchmark/gsm8k/bench_sglang.py --num-shots 8 --num-questions 1209 --platinum
Accuracy: 0.978
Invalid: 0.000

DeepSeek-V4-Pro GSM8K - High throughput (DEP4 MegaMOE)

SGLANG_OPT_DEEPGEMM_MEGA_MOE_NUM_MAX_TOKENS_PER_RANK=8320 \
sglang serve \
  --trust-remote-code \
  --model-path deepseek-ai/DeepSeek-V4-Pro \
  --tp 4 \
  --dp 4 \
  --enable-dp-attention \
  --moe-a2a-backend megamoe \
  --mem-fraction-static 0.9 \
  --cuda-graph-max-bs-decode 128 \
  --max-running-requests 256 \
  --host 0.0.0.0 \
  --port 30000
python3 benchmark/gsm8k/bench_sglang.py --num-shots 8 --num-questions 1209 --platinum
Accuracy: 0.977
Invalid: 0.000

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 #32787805344
Latest PR Test (Extra): ✅ Run #32788748071
Latest PR Test (AMD ROCm 7.2): ❌ Run #32787805327

@Fridge003
Fridge003 merged commit 3ce243d into sgl-project:main Aug 26, 2026
129 of 145 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants