Skip to content

Commit

Permalink
Update release_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
henrylhtsang authored Jan 29, 2024
1 parent 1fc7cac commit 9fd583f
Showing 1 changed file with 31 additions and 11 deletions.
42 changes: 31 additions & 11 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ name: Push Binary Release
on:
workflow_call:
secrets:
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID:
required: true
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY:
required: true
PYPI_TOKEN:
required: false
workflow_dispatch:
Expand All @@ -25,15 +21,23 @@ jobs:
- os: linux.2xlarge
python-version: 3.8
python-tag: "py38"
cuda-tag: "cu11"
cuda-tag: "cu121"
- os: linux.2xlarge
python-version: 3.9
python-tag: "py39"
cuda-tag: "cu11"
cuda-tag: "cu121"
- os: linux.2xlarge
python-version: '3.10'
python-tag: "py310"
cuda-tag: "cu11"
cuda-tag: "cu121"
- os: linux.2xlarge
python-version: '3.11'
python-tag: "py311"
cuda-tag: "cu121"
- os: linux.2xlarge
python-version: '3.12'
python-tag: "py312"
cuda-tag: "cu121"
steps:
# Checkout the repository to the GitHub Actions runner
- name: Check ldd --version
Expand Down Expand Up @@ -69,7 +73,12 @@ jobs:
- name: Install PyTorch and CUDA
shell: bash
run: |
conda install -n build_binary -y pytorch pytorch-cuda=11.7 -c pytorch-test -c nvidia
conda run -n build_binary pip install torch --index-url https://download.pytorch.org/whl/test/cu121
- name: Install fbgemm
shell: bash
run: |
conda run -n build_binary pip install numpy
conda run -n build_binary pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/test/cu121
- name: Install Dependencies
shell: bash
run: |
Expand Down Expand Up @@ -102,8 +111,8 @@ jobs:
strategy:
matrix:
os: [linux.4xlarge.nvidia.gpu]
python-version: [3.8, 3.9, "3.10"]
cuda-tag: ["cu11"]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
cuda-tag: ["cu121"]
needs: build_on_cpu
# the glibc version should match the version of the one we used to build the binary
# for this case, it's 2.26
Expand Down Expand Up @@ -168,8 +177,17 @@ jobs:
- name: Install PyTorch and CUDA
shell: bash
run: |
conda install -n build_binary -y pytorch pytorch-cuda=11.7 -c pytorch-test -c nvidia
conda run -n build_binary pip install torch --index-url https://download.pytorch.org/whl/test/cu121
# download wheel from GHA
- name: Install fbgemm
shell: bash
run: |
conda run -n build_binary pip install numpy
conda run -n build_binary pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/test/cu121
- name: Install torchmetrics
shell: bash
run: |
conda run -n build_binary pip install torchmetrics==1.0.3
- name: Download wheel
uses: actions/download-artifact@v2
with:
Expand All @@ -183,6 +201,8 @@ jobs:
- name: Test fbgemm_gpu and torchrec installation
shell: bash
run: |
conda run -n build_binary \
python -c "import fbgemm_gpu"
conda run -n build_binary \
python -c "import torchrec"
# Push to Pypi
Expand Down

0 comments on commit 9fd583f

Please sign in to comment.