Skip to content

Fix CI: pin torch 2.10.0 and use torchcodec 0.10.0 from PyTorch CPU index#58

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-ci-build-issues
Draft

Fix CI: pin torch 2.10.0 and use torchcodec 0.10.0 from PyTorch CPU index#58
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-ci-build-issues

Conversation

Copilot AI commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

torchcodec 0.11.0 from PyPI ships CUDA-linked .so files that dlopen libnppicc.so.13 (CUDA NPP) at import time — a system library absent on GitHub Actions runners, causing all test collection to fail.

Changes

  • Pin torch ecosystem to 2.10.0: torch==2.10.0, torchaudio==2.10.0, torchvision==0.25.0, torchcodec==0.10.0 — at this version, the torchcodec CPU wheel has zero CUDA shared-library dependencies (only FFmpeg + torch)
  • Route torchcodec through PyTorch CPU index: adds [[tool.uv.index]] (explicit) + [tool.uv.sources] so uv always resolves torchcodec from https://download.pytorch.org/whl/cpu, not PyPI, regardless of machine CUDA availability
  • Delete uv.lock: stale lock pinned the CUDA PyPI wheel; CI regenerates it under UV_TORCH_BACKEND: cpu with the correct CPU-only resolution
  • Restore torchcodec usage: reverts the interim torchaudio workaround — AudioDecoder is back in transforms.py, datasets/audio.py, and test_transforms.py
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true

[tool.uv.sources]
torchcodec = { index = "pytorch-cpu" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants