Out-of-tree (OOT) GitHub Actions CI that builds and tests
pytorch/pytorch on NVIDIA's self-hosted
Windows + RTX (x86-64) and Windows-on-Arm (WoA) runners, across multiple
Python and CUDA toolkit combinations.
This repository hosts GitHub Actions workflows that build and test PyTorch on NVIDIA's Windows runners. It implements the downstream half of RFC-0050: Cross-Repository CI Relay for PyTorch Out-of-Tree Backends.
This repo expands the support matrix to catch regressions across multiple Python and
CUDA toolkit combinations before they show up upstream. PyTorch's in-tree
.ci/pytorch/*.sh scripts perform the builds and tests; this repository
provides workflow wiring, runner selection, diagnostics, and cross-repository
relay integration. Build and test jobs run on self-hosted NVIDIA runners;
lightweight jobs such as lint, prep/ref-resolution, and test-summary run on
GitHub-hosted ubuntu-latest.
Full architecture, matrix, and runner model: docs/ci-details.md.
Windows-on-Arm (WoA) CI: see docs/woa-ci.md for the arm64 build/test matrix, runner contract, and operator guide.
The scheduled workflows need no action to run — see Usage for the trigger model. The sections below cover consuming a published wheel and building locally.
NVIDIA publishes stable and nightly PyTorch, TorchVision, and TorchAudio wheels built by this CI.
Architecture: the NVIDIA indexes below currently publish Windows arm64 (
win_arm64) wheels only. On Windows x86-64, install from download.pytorch.org instead, or build from source using the x86_64 build guide.
Install the CUDA 13.4 stable release from the NVIDIA stable index:
python -m pip install "torch==2.14.0+cu134" "torchvision==0.29.0+cu134" "torchaudio==2.11.0+cu134" --extra-index-url https://pypi.nvidia.com/nvtorch_oot/Before installing, confirm that wheels for the required Python version and architecture are available in the stable indexes for PyTorch, TorchVision, and TorchAudio.
Install the latest pre-release wheels from the NVIDIA nightly index:
python -m pip install --pre torch torchvision torchaudio --extra-index-url https://pypi.nvidia.com/nvtorch_oot_nightly/--pre enables nightly versions. NVIDIA indexes are supplied as extra indexes
so dependencies can still resolve from the default Python Package Index. The
active Python version, operating system, architecture, and CUDA compatibility
determine which wheel pip selects.
Verify the installation:
python -c "import torch; print(torch.__version__); print(torch.version.cuda); print(torch.cuda.is_available())"Use the guide for the target architecture:
Each guide covers its compiler, Python environment, CUDA dependencies, build variables, build command, installation, and verification. The ARM64 guide also covers the required CUDA-library overrides and wheel repacking with ARM64 DLLs.
For the repository's WoA CI workflow rather than a local build, see the WoA operator guide and WoA design and runner contract.
Both nightly workflows also publish their results to the upstream PyTorch HUD through the Cross-Repo CI Relay — see HUD reporting.
- Self-hosted Windows runners from NVIDIA infrastructure, labelled for the
build/test pools (
rtx-build,rtx-40x0-test,rtx-50x0-test) and tagged per Python/CUDA cell (py3xx,cu1xx). - Ephemeral, pre-prepped runner images carrying Python, the CUDA toolkit + driver, MSVC build tools, and the PyTorch test runtime — the workflows do zero in-job setup. See docs/ci-details.md for the full image contents and label routing.
- Windows-on-Arm (arm64) runners share a single persistent pool labelled
woa-arm64for both build and test, with the toolchain preinstalled and a clean per-job venv built in-job. See docs/woa-ci.md for the runner contract.
Local build prerequisites are listed in each architecture-specific build guide.
Two of the three top-level workflows run automatically on a nightly schedule,
and none of them can be started by hand:
windows-rtx-build-test.yml— full RTX source build + test, nightly.windows-woa-build-test.yml— WoA (arm64) source build + test, nightly, with opt-in signing and publication of its wheels; see WoA wheel signing and publication.windows-rtx-wheel-test.yml— published-wheel test. Parked: its nightly cron is commented out and it has no other trigger.
upstream-pull.yml validates an approved upstream PR by calling
windows-rtx-build-test.yml and _woa-pr-build-test.yml (the WoA build and
test jobs, without publication); see
per-PR CI. There is deliberately no
workflow_dispatch anywhere: external-CI security guidelines do not allow a
hand-started run to point the self-hosted pools at an arbitrary upstream commit.
The reusable workflows (_rtx-build.yml, _rtx-test.yml, _woa-build.yml,
_woa-test.yml, _woa-pr-build-test.yml, _woa-sign-publish.yml and its
stages) are called by the orchestrators and are not run directly.
Detailed reference — workflow table, job naming, install paths, default matrix, test environment variables, and runner diagnostics — is documented in docs/ci-details.md. The Windows-on-Arm reference lives in docs/woa-ci.md.
This repository implements the downstream side of RFC-0050:
- The upstream relay sends a
repository_dispatchevent for eachpytorch/pytorchPR event, carrying the PR metadata. upstream-pull.ymlverifies that metadata against the upstream API and checks the PR author against a maintainer-controlled allowlist. An allowlisted author's PR waits for a maintainer's approval; anyone else's is dropped without a request.- Once approved, it calls both build + test workflows pinned to the approved head SHA. A newer push to the same PR cancels the older run.
- PR runs never report to the HUD. The nightly runs publish their results at trust level L2.
The approval flow is documented in per-PR CI, and the event-to-workflow mapping in the CRCR section of the CI reference.
Not applicable — this repository provides CI infrastructure rather than a shippable runtime artifact.
This repo is CI infrastructure and does not publish versioned releases. Changes
land via pull request to main, while pre-release wheels are published through
the NVIDIA nightly index.
Refer to CONTRIBUTING.md.
Maintained by the NVIDIA PyTorch Windows CI team. Open an issue or pull request for questions, triage, or proposed changes.
Please report security vulnerabilities responsibly. See SECURITY.md for the disclosure process. Do not file public issues for security reports.
Maintained on a best-effort basis. For questions, bugs, or feature requests, open a GitHub issue in this repository.
Discussion happens through GitHub issues and pull requests on this repository.
- RFC-0050: Cross-Repository CI Relay for PyTorch Out-of-Tree Backends
- pytorch/pytorch
- Detailed CI architecture and reference
- Windows-on-Arm (WoA) CI guide
- Windows x86_64 build guide
- Windows ARM64 build guide
This project is licensed under the MIT License — see LICENSE for the full text and THIRD_PARTY_NOTICES.md for third-party OSS notices.