Skip to content

fix: strip orphaned nvidia-* CUDA packages from Linux bundle (2.5GB->under 2GiB) - #225

Merged
thcp merged 1 commit into
mainfrom
fix/linux-strip-orphan-cuda
Jun 24, 2026
Merged

fix: strip orphaned nvidia-* CUDA packages from Linux bundle (2.5GB->under 2GiB)#225
thcp merged 1 commit into
mainfrom
fix/linux-strip-orphan-cuda

Conversation

@thcp

@thcp thcp commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Problem

Both Linux tarballs were 2.5 GB, failing the upload with GitHub's 2 GiB asset limit — even though torch was correctly 2.6.0+cpu.

Root cause

uv pip install <project> pulls the default Linux torch, which is the CUDA build, dragging in nvidia-* runtime packages (cuDNN, cuBLAS, NCCL, …) and triton — ~2.5 GB. The CPU torch swap uses --force-reinstall --no-deps, so torch becomes CPU but those CUDA packages stay installed and orphaned, still bloating the bundle.

(Windows never hits this because its default torch wheel is already CPU-only — no nvidia-* deps to begin with.)

Fix

After the CPU torch swap, uninstall the orphaned nvidia-* packages and triton. CPU torch doesn't use them, and the NVIDIA variant re-downloads CUDA at first run. Expected size: well under 2 GiB.

Status

Windows binaries already published to alpha.17. The Linux build now passes apt (skip-when-present) and builds both variants — this removes the last blocker (size) on the Linux upload.

🤖 Generated with Claude Code

Both Linux tarballs were 2.5 GB (over GitHub's 2 GiB asset limit) even
with CPU torch. Root cause: 'uv pip install <project>' pulls the default
Linux torch, which is the CUDA build, dragging in nvidia-* runtime
packages (cuDNN/cuBLAS/NCCL/...) and triton (~2.5 GB). The CPU torch swap
uses --force-reinstall --no-deps, so torch becomes CPU but those CUDA
packages stay installed and orphaned, bloating the tarball.

Uninstall the nvidia-* packages and triton after the swap. CPU torch does
not use them and the NVIDIA variant re-downloads CUDA at first run.
@thcp
thcp merged commit 3995e92 into main Jun 24, 2026
8 checks passed
@thcp
thcp deleted the fix/linux-strip-orphan-cuda branch June 24, 2026 19:47
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.

1 participant