Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 39 additions & 57 deletions .github/workflows/unittest_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,74 +13,56 @@ on:
- "third_party/*"
- .gitignore
- "*.md"
pull_request:
paths-ignore:
- "docs/*"
- "third_party/*"
- .gitignore
- "*.md"
workflow_dispatch:

jobs:
build_test:
strategy:
fail-fast: false
matrix:
include:
- os: linux.g5.12xlarge.nvidia.gpu
python-version: 3.9
python-tag: "py39"
cuda-tag: "cu118"
- os: linux.g5.12xlarge.nvidia.gpu
python-version: 3.9
python-tag: "py39"
cuda-tag: "cu126"
- os: linux.g5.12xlarge.nvidia.gpu
python-version: 3.9
python-tag: "py39"
cuda-tag: "cu128"
- os: linux.g5.12xlarge.nvidia.gpu
python-version: '3.10'
python-tag: "py310"
cuda-tag: ["cu118", "cu126", "cu128"]
os:
- linux.g5.12xlarge.nvidia.gpu
python:
- version: "3.9"
tag: "py39"
- version: "3.10"
tag: "py310"
- version: "3.11"
tag: "py311"
- version: "3.12"
tag: "py312"
- version: "3.13"
tag: "py313"
is_pr:
- ${{ github.event_name == 'pull_request' }}
exclude:
- is_pr: true
cuda-tag: "cu118"
- os: linux.g5.12xlarge.nvidia.gpu
python-version: '3.10'
python-tag: "py310"
- is_pr: true
cuda-tag: "cu126"
- os: linux.g5.12xlarge.nvidia.gpu
python-version: '3.10'
python-tag: "py310"
- is_pr: true
cuda-tag: "cu128"
- os: linux.g5.12xlarge.nvidia.gpu
python-version: '3.11'
python-tag: "py311"
cuda-tag: "cu118"
- os: linux.g5.12xlarge.nvidia.gpu
python-version: '3.11'
python-tag: "py311"
cuda-tag: "cu126"
- os: linux.g5.12xlarge.nvidia.gpu
python-version: '3.11'
python-tag: "py311"
python:
version: "3.9"
- is_pr: true
cuda-tag: "cu128"
- os: linux.g5.12xlarge.nvidia.gpu
python-version: '3.12'
python-tag: "py312"
cuda-tag: "cu118"
- os: linux.g5.12xlarge.nvidia.gpu
python-version: '3.12'
python-tag: "py312"
cuda-tag: "cu126"
- os: linux.g5.12xlarge.nvidia.gpu
python-version: '3.12'
python-tag: "py312"
python:
version: "3.10"
- is_pr: true
cuda-tag: "cu128"
- os: linux.g5.12xlarge.nvidia.gpu
python-version: '3.13'
python-tag: "py313"
cuda-tag: "cu118"
- os: linux.g5.12xlarge.nvidia.gpu
python-version: '3.13'
python-tag: "py313"
cuda-tag: "cu126"
- os: linux.g5.12xlarge.nvidia.gpu
python-version: '3.13'
python-tag: "py313"
python:
version: "3.11"
- is_pr: true
cuda-tag: "cu128"
python:
version: "3.12"
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
permissions:
id-token: write
Expand All @@ -90,7 +72,7 @@ jobs:
timeout: 30
script: |
ldd --version
conda create -y --name build_binary python=${{ matrix.python-version }}
conda create -y --name build_binary python=${{ matrix.python.version }}
conda info
python --version
conda run -n build_binary python --version
Expand All @@ -110,7 +92,7 @@ jobs:
pip install -r requirements.txt
conda run -n build_binary \
python setup.py bdist_wheel \
--python-tag=${{ matrix.python-tag }}
--python-tag=${{ matrix.python.tag }}
conda run -n build_binary \
python -c "import torchrec"
echo "torch.distributed succeeded"
Expand Down
45 changes: 27 additions & 18 deletions .github/workflows/unittest_ci_cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,31 @@ jobs:
strategy:
fail-fast: false
matrix:
include:
- os: linux.2xlarge
python-version: 3.9
python-tag: "py39"
- os: linux.2xlarge
python-version: '3.10'
python-tag: "py310"
- os: linux.2xlarge
python-version: '3.11'
python-tag: "py311"
- os: linux.2xlarge
python-version: '3.12'
python-tag: "py312"
- os: linux.2xlarge
python-version: '3.13'
python-tag: "py313"
os:
- linux.2xlarge
python:
- version: "3.9"
tag: "py39"
- version: "3.10"
tag: "py310"
- version: "3.11"
tag: "py311"
- version: "3.12"
tag: "py312"
- version: "3.13"
tag: "py313"
is_pr:
- ${{ github.event_name == 'pull_request' }}
exclude:
- is_pr: true
python:
version: "3.10"
- is_pr: true
python:
version: "3.11"
- is_pr: true
python:
version: "3.12"
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
permissions:
id-token: write
Expand All @@ -47,7 +56,7 @@ jobs:
timeout: 15
script: |
ldd --version
conda create -y --name build_binary python=${{ matrix.python-version }}
conda create -y --name build_binary python=${{ matrix.python.version }}
conda info
python --version
conda run -n build_binary python --version
Expand All @@ -67,7 +76,7 @@ jobs:
pip install -r requirements.txt
conda run -n build_binary \
python setup.py bdist_wheel \
--python-tag=${{ matrix.python-tag }}
--python-tag=${{ matrix.python.tag }}
conda run -n build_binary \
python -c "import torchrec"
echo "torch.distributed succeeded"
Expand Down
Loading