Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-44586][INFRA][ML][PYTHON] TorchDistributor` should install cpu…
…-only Torch for testing ### What changes were proposed in this pull request? refering to https://pytorch.org/get-started/locally/ , existing command install PyTorch with CUDA in Linux ![image](https://github.com/apache/spark/assets/7322292/7957524b-8331-495b-ae8e-feda0a6934af) we should switch to cpu-only PyTorch, since the CUDA takes too much disk space. ![image](https://github.com/apache/spark/assets/7322292/4cd18513-5eb1-4522-acea-689c5f67e6fc) ### Why are the changes needed? We don't have any GPU in CI, it makes no sense to install the huge CUDA, see https://github.com/zhengruifeng/spark/actions/runs/5692361308/job/15429270610 ![image](https://github.com/apache/spark/assets/7322292/56cd8b5b-5acb-483a-972d-ee467b7d5461) ![image](https://github.com/apache/spark/assets/7322292/8ead5f99-95c4-4d0d-8bcc-d7452b4986e1) this PR can save 3.3G disk space **[before this PR](https://github.com/zhengruifeng/spark/actions/runs/5692361308/job/15429270610)** ![image](https://github.com/apache/spark/assets/7322292/44bd77dd-a73e-4f92-a4ad-c3221265d3d3) **[after this PR](https://github.com/zhengruifeng/spark/actions/runs/5692416121/job/15444345860)** ![image](https://github.com/apache/spark/assets/7322292/54a80cf9-366b-42b3-8de1-76ebf1de1607) ### Does this PR introduce _any_ user-facing change? No, test-only ### How was this patch tested? updated CI Closes #42210 from zhengruifeng/infra_torch_cpuonly. Authored-by: Ruifeng Zheng <[email protected]> Signed-off-by: Ruifeng Zheng <[email protected]>
- Loading branch information