SGLang FlashInfer sm_120 No Kernel Image Error Fix
Fix SGLang FlashInfer no kernel image available errors on Blackwell sm_120 GPUs by aligning CUDA 12.8+, flashinfer-cubin, and JIT arch builds.
When SGLang fails in flashinfer/jit/core.py with no kernel image is available for execution on compute capability 12.0 (sm_120), the loaded FlashInfer cubin or PyTorch CUDA extension lacks Blackwell sm_120 SASS bytecode or cached an older toolkit build. Upgrade to CUDA 12.8+ with matching SGLang/FlashInfer cu128 packages, clear stale FlashInfer JIT caches, or isolate temporarily with --attention-backend triton.
- Symptom
[2026-11-25 09:14:31 TP0] Scheduler hit an exception: Traceback (most recent call last): File "/sgl-workspace/sglang/python/sglang/srt/managers/scheduler.py", line 1812, in run_scheduler_process scheduler = Scheduler(server_args, port_args, gpu_id, tp_rank, dp_rank) File "/usr/local/lib/python3.12/dist-packages/flashinfer/jit/core.py", line 142, in load_cuda_ops raise RuntimeError("CUDA error: no kernel image is available for execution on the device (GPU 0, compute capability 12.0 / sm_120)") RuntimeError: CUDA error: no kernel image is available for execution on the device- Root cause
- FlashInfer precompiled cubins, JIT nvcc toolchain, or PyTorch wheel omit native SASS kernels for compute capability 12.0 (sm_120).
- Recommended fix
TORCH_CUDA_ARCH_LIST="12.0"- How Denpex helps
- Denpex investigates SGLang FlashInfer sm_120 No Kernel Image Error Fix using the evidence you provide or your connected workload collects. Earlier rank, host or application evidence is needed to distinguish an initiating failure from a downstream report.
What this failure is
A CUDA kernel launch rejection inside SGLang scheduler initialization when FlashInfer attempts to load attention ops lacking sm_120 device code.
Is this what broke your run? Paste your log.
You're reading about SGLang FlashInfer sm_120 No Kernel Image Error Fix. Paste your own traceback and relevant evidence for an investigation of your workload, with a next action or a specific missing fact. A reference entry does not establish your cause. No account or card for the free diagnosis. Review data handling before submitting sensitive logs.
Before uploading, review cloud data handling and local options.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
Why it happens (the mechanism)
NVIDIA RTX 5090 and RTX PRO 6000 Blackwell cards expose compute capability 12.0 (sm_120). Older FlashInfer cubin wheels, mismatched flashinfer-jit-cache packages, or containers compiled with CUDA <= 12.6 omit sm_120 targets when building or loading CUDA ops.
What you'll observe
- SGLang Scheduler crashes during initialization in flashinfer/jit/core.py load_cuda_ops
- Inference pods run cleanly on H100/L40S nodes and crash immediately when scheduled onto RTX 5090 or Blackwell nodes
Common symptoms and what they mean
Check possible explanations against the incident evidence. A matching symptom alone does not establish its cause.
| Symptom | Possible explanation |
|---|---|
| Scheduler hit an exception: RuntimeError: CUDA error: no kernel image is available for execution on the device (GPU 0, compute capability 12.0 / sm_120) | FlashInfer precompiled cubins, JIT nvcc toolchain, or PyTorch wheel omit native SASS kernels for compute capability 12.0 (sm_120). |
| flashinfer/jit/core.py load_cuda_ops fails at SGLang startup | FlashInfer precompiled cubins, JIT nvcc toolchain, or PyTorch wheel omit native SASS kernels for compute capability 12.0 (sm_120). |
Which systems are affected
- SGLang deployments using the FlashInfer attention backend
- Blackwell workstation and server GPUs reporting sm_120 (RTX 5090, RTX PRO 6000)
How to confirm this is the problem
Use this checklist to test the hypothesis against a small reproduction. No single line proves the root cause, so preserve the preceding events and compare one variable at a time.
- ✓Verify clean SGLang server startup with the FlashInfer backend active and inspect /health plus a test completion request.
Root cause
- FlashInfer precompiled cubins, JIT nvcc toolchain, or PyTorch wheel omit native SASS kernels for compute capability 12.0 (sm_120).
The fix and how to prevent it
How to fix it
- Confirm driver 570+, CUDA toolkit 12.8+, and Python torch.cuda.get_device_capability(0) returning (12, 0) inside the running container.
- Check installed sglang, torch, flashinfer-python, flashinfer-cubin, and flashinfer-jit-cache versions for CUDA 12.8+ (cu128) alignment.
- Upgrade to an official Blackwell/CUDA 12.8+ SGLang image or export TORCH_CUDA_ARCH_LIST="12.0" and FLASHINFER_CUDA_ARCH_LIST="12.0" and purge ~/.cache/flashinfer before relaunching.
- Use --attention-backend triton only as a short-lived diagnostic test to isolate FlashInfer binary packaging from driver or GPU health.
Step-by-step remediation
- 1Print torch.cuda.get_device_capability(0) and check nvcc, torch, sglang, and flashinfer versions.
- 2Confirm base CUDA and model loading work cleanly by launching once with --attention-backend triton.
- 3Upgrade to a cu128 build or set FLASHINFER_CUDA_ARCH_LIST=12.0, clear stale JIT cache, and re-test FlashInfer.
How to prevent it
- Gate container deployments to Blackwell sm_120 nodes on CUDA >= 12.8 and torch.cuda.get_arch_list() verification
- Keep shared JIT cache volumes separate across GPU architectures and CUDA container tags
Save this diagnosis and catch the next crash automatically
All root cause, fix, and prevention steps above are free to read. Create a free account with any email or GitHub to keep your saved diagnosis history across the encyclopedia and run cloud checks, or use a work email below for the 30-day Team evaluation. No card required.
Or start a 30-day free Team trial (work email)
Verified work email unlocks all 14 fleet diagnostic tools, Slack alerts, and team history for 30 days. No card and no automatic charge.
Searchable error signature
[2026-11-25 09:14:31 TP0] Scheduler hit an exception: Traceback (most recent call last):
File "/sgl-workspace/sglang/python/sglang/srt/managers/scheduler.py", line 1812, in run_scheduler_process
scheduler = Scheduler(server_args, port_args, gpu_id, tp_rank, dp_rank)
File "/usr/local/lib/python3.12/dist-packages/flashinfer/jit/core.py", line 142, in load_cuda_ops
raise RuntimeError("CUDA error: no kernel image is available for execution on the device (GPU 0, compute capability 12.0 / sm_120)")
RuntimeError: CUDA error: no kernel image is available for execution on the deviceUse this text as a lookup key in logs and upstream issue trackers. It is not presented as a captured customer log. Confirm the cause from your own preceding events, versions, configuration and the cited references.
Diagnose your own log automatically
The root cause and fix steps above stay free. Create a free account to analyze full job logs, attribute the first failed rank, and keep saved incident history.
Sign up free. Analyze your cluster logsNo credit card. Daily allowance follows verified trust tier. Instant access.
Why the recommended fix works
Aligning CUDA 12.8+ with matching cu128 PyTorch and FlashInfer cubin packages supplies native sm_120 instructions and prevents stale Hopper/Ada JIT binaries from triggering Error 209.
Code examples
nvidia-smi && nvcc --version
python3 -m pip show torch sglang flashinfer-python flashinfer-cubin flashinfer-jit-cache
python3 -c "import torch; print(torch.cuda.get_device_capability(0), torch.cuda.get_arch_list())"This snippet illustrates the entry-specific check. Verify the installed versions, permissions, target and workload context before using it. A command or API example is not proof of recovery.
Best practices by model family
| Model / Stack | Recommendation | Notes |
|---|---|---|
| Production fix | Upgrade SGLang container to CUDA 12.8+ / cu128 FlashInfer | Preserves native FlashInfer attention throughput on Blackwell. |
| Isolation test | Test --attention-backend triton once | Separates FlashInfer kernel packaging issues from driver failure. |
With the fix vs without the fix
| Dimension | With the fix | Without the fix |
|---|---|---|
| Shared JIT cache mounts | Keyed by CUDA tag and GPU arch | Reusing sm_90 cached .so files onto sm_120 workers |
| Image validation | Startup assert on torch.cuda.get_arch_list() | Scheduler traceback only after model startup begins |
Diagnostic note
“Shared PVC or container-host ~/.cache/flashinfer mounts frequently retain Hopper or Ada binaries across node reschedules, causing sm_120 nodes to fail immediately even when the Python wheel version looks current.”
Diagnose this failure in VS Code
Select the traceback or open the failed terminal, then run Denpex locally to inspect matched failure patterns, supporting evidence and next checks without uploading the log. Verify recommendations against your workload before changing production.
Install the free VS Code extensionSGLang errors in context
SGLang failures cross RadixAttention cache pools, FlashInfer kernels, and worker timeouts.
Compare related sglang errorsFrequently asked questions
Questions engineers and on-call staff commonly ask about this failure.
Why does PyTorch import cleanly while SGLang crashes in FlashInfer on RTX 5090?
Does setting TORCH_CUDA_ARCH_LIST alone fix prebuilt FlashInfer cubin wheels?
Don't just read the fix, diagnose your run
The encyclopedia explains documented failure patterns. Denpex investigates your logs, configuration and stack, shows the supporting evidence, and asks for missing details when needed.
Related Inference errors
DeepGEMM rejects FP8 block-scaled weights with Unknown SF transformation on an unsupported architecture
Inference · high
SGLang NCCL Error and Multi-Node Timeout
Inference · high
SGLang torch.OutOfMemoryError: CUDA out of memory
Inference · high
vLLM NCCL P2P Hang and Timeout in Tensor Parallelism
Inference · high