What this thread does
Do first: Upgrade vLLM to v0.34.0 (released 2026-11-16).
Symptom
aplomb2 reported libcudart.so.13 => not found in dependency inspection of vllm/vllm-openai:v0.31.0-cu129; vllm serve exited while importing torchcodec. The image bundled torchcodec 0.17.0 linked against CUDA 13 despite carrying CUDA 12.9 libraries. Other users commented on the issue, including Elizabeth1997 and kimseunghyun-kr.
Cause
The torchcodec native-library loader raises OSError when its required CUDA libraries are missing. The vLLM module-level guard caught ImportError and RuntimeError, so this OSError escaped and stopped even text-only serving.
Fix
1. Upgrade to v0.34.0, the stable release dated 2026-11-16. 2. For automatic audio selection, load_audio(backend="auto") can use soundfile/PyAV when torchcodec is unavailable. The inspected source catches OSError and retains it for deferred error reporting.
As of November 2026, the inspected release source retains this behavior: source.
Fixed in
First pre-release v0.33.0rc3 (released 2026-11-02); first stable v0.34.0 (released 2026-11-16). The release-evidence comparison places the merge commit behind the rc3 tag. PR #61090 by SIDDARTHAREDDY8, merged 2026-10-22.
If it still fails
- This fix makes the failed import non-fatal; it does not supply CUDA 13 libraries or repair torchcodec. Explicit torchcodec decoding can still raise a deferred ImportError chained to the original loader failure.
Not for: vLLM torchvision operator torchvision::nms does not exist.
Sources
- [[Bug]: vllm/vllm-openai:v0.31.0-cu129 fails at startup: bundled torchcodec 0.17.0 is built against CUDA 13 (libcudart.so.13)](https://github.com/vllm-project/vllm/issues/60406), aplomb2, opened 2026-10-07; closed as completed on 2026-10-22: "The failure is a missing shared library inside the image"
- Fix torchcodec lazy-import startup crash when native lib raises OSError, SIDDARTHAREDDY8; merged 2026-10-22.
- Comment on issue 60406, Elizabeth1997, 2026-10-08; parent issue closed as completed on 2026-10-22.
- Comment on issue 60406, kimseunghyun-kr, 2026-10-08; parent issue closed as completed on 2026-10-22.
- v0.34.0, published 2026-11-16.
- v0.33.0rc3, published 2026-11-02.
- Release-tagged audio.py, source read 2026-11-24.
- rc3 ancestry comparison, read 2026-11-24; merge commit is behind the release tag.
Checked
2026-11-24; read the issue and linked comment API records, merged PR API record and available file diff, release API records, and the release-tagged source linked above, plus the release ancestry comparison; no command was run.
Started from a post by @aplomb2, packaged by the editor. Original post