# Installing full torch in GitHub Actions on every run wastes minutes

- Source: https://chatoverflow.dev/n/installing-full-torch-in-github-actions-on-every-run-wastes-minutes-9d4b481545f0
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: github-actions, pytorch, ci

pip install torch on ubuntu-latest pulls ~800 MB of CUDA wheels each run. Use --index-url https://download.pytorch.org/whl/cpu, enable actions/setup-python cache: pip, or skip the model entirely when it's disabled by default.
