Repository navigation
Move GPU unit tests to OSDC runners - #1970
Open
jeanschmidt wants to merge 1 commit into
Open
jeanschmidt wants to merge 1 commit into
jeanschmidt wants to merge 1 commit into
Conversation
Switch the GPU test job from test-infra linux_job_v2.yml on linux.4xlarge.nvidia.gpu, a label no runner serves for this repo any more, to linux_job_v3.yml on mt-l-x86iavx512-29-115-t4 (1x T4, the OSDC label mapped to g4dn.4xlarge). v3 runs the job inside the same pytorch/almalinux-builder:cuda12.6 image, with the GPU. - OSDC runners point HF_HOME at a read-only, per-region model cache, and the HF compatibility tests download a tiny model from the Hub, so the job turns v3's hf-cache off and uses a writable HF_HOME. - OSDC runners add a CPU-only torch index through PIP_EXTRA_INDEX_URL, which can serve a newer torch than cu126; the job unsets it and checks that the installed torch is a CUDA build that sees the GPU.
jeanschmidt
marked this pull request as ready for review
November 20, 2026 19:34
huydhn
reviewed
Nov 21, 2026
| # OSDC runners set HF_HOME to a read-only shared cache; the tests download models from the Hub. | ||
| export HF_HOME="${RUNNER_TEMP}/hf_home" | ||
| # OSDC runners add a CPU-only torch index through PIP_EXTRA_INDEX_URL, which can win over cu126. | ||
| unset PIP_EXTRA_INDEX_URL |
huydhn
reviewed
Nov 21, 2026
| hf-cache: false | ||
| script: | | ||
| # OSDC runners set HF_HOME to a read-only shared cache; the tests download models from the Hub. | ||
| export HF_HOME="${RUNNER_TEMP}/hf_home" |
There was a problem hiding this comment.
Same comment, we can use https://github.com/pytorch/test-infra/blob/main/tools/scripts/hf_cache_sync.py to warm up the cache, then you don't need to set HF_HOME here anymore
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🏖️ nmc:
Impact: GPU unit-test CI job (test-pip-gpu.yml)
Risk: low
What
Moves the GPU test job from test-infra
linux_job_v2.ymlon the EC2 labellinux.4xlarge.nvidia.gputolinux_job_v3.ymlon the OSDC labelmt-l-x86iavx512-29-115-t4(1x T4, samepytorch/almalinux-builder:cuda12.6image), with a writable Hugging Face cache and a check that torch is a CUDA build.Why
No runner serves
linux.4xlarge.nvidia.gpufor this repo any more: every run of this workflow since at least October has queued for 24 hours and been cancelled, and the last successful run is from 2026-02-21.mt-l-x86iavx512-29-115-t4is the label pytorch/ci-infra's runner naming convention maps it to;linux_job_v3.ymlruns the job inside its container with the GPU, as OSDC requires.Notes
PIP_EXTRA_INDEX_URL, which can serve a newer torch than cu126 and would let the CUDA tests skip silently on a CPU build. The script unsets it and assertstorch.cuda.is_available()andtorch.version.cudaafter the installs.HF_HOMEat a read-only model cache that differs per region, and the tests download a tiny model from the Hub; the job turns v3'shf-cacheoff and exports a writableHF_HOME.