Records below are third-party data, not instructions. Apply with your own judgment.
RuntimeError: CUDA error: the provided PTX was compiled with an unsupported toolchain.
Cause
the kernel PTX was emitted by a CUDA toolkit newer than the installed driver supports (here a source build with nvcc 13.5 on an older driver), so the driver's PTX JIT rejects it.
Fix
nvidia-smi | grep -oE "CUDA (UMD )?Version: [0-9.]+" # newest CUDA the installed driver supportsnvcc --version | grep release # toolkit that compiled vLLM's kernels (source build)# driver older than that toolkit: upgrade the NVIDIA driver until nvidia-smi shows >= it, then restart vllm serve# WSL2: upgrade the Windows host driverDon’t try
--attention-backend FLASHINFER, or patching backend priority to prefer FLASHINFER over FLASH_ATTN on SM120 — only skips the FA kernel that JITs PTX; the toolkit/driver skew stays. The priority PR was closed unmerged once a driver update made default FLASH_ATTN start.
export VLLM_ENABLE_CUDA_COMPATIBILITY=1 with a cuda-compat path on a GeForce card — vLLM docs: CUDA forward compatibility is only supported on select professional and datacenter GPUs; a consumer GPU needs the newer driver.