Skip to content

Commit 7bc20b2

Browse files
committed
Action test
1 parent 353cfeb commit 7bc20b2

File tree

2 files changed

+11
-27
lines changed

2 files changed

+11
-27
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Create Release
66
on:
77
push:
88
tags:
9-
- v*
9+
- test_*
1010

1111
# Needed to create release and upload assets
1212
permissions:
@@ -17,6 +17,8 @@ jobs:
1717
# Retrieve tag and create release
1818
name: Create Release
1919
runs-on: ubuntu-latest
20+
container:
21+
image: rocm/pytorch:rocm6.2_ubuntu20.04_py3.9_pytorch_release_2.3.0
2022
outputs:
2123
upload_url: ${{ steps.create_release.outputs.upload_url }}
2224
steps:
@@ -42,26 +44,21 @@ jobs:
4244
wheel:
4345
name: Build Wheel
4446
runs-on: ${{ matrix.os }}
47+
container:
48+
image: rocm/pytorch:rocm6.2_ubuntu20.04_py3.9_pytorch_release_2.3.0
4549
needs: release
4650

4751
strategy:
4852
fail-fast: false
4953
matrix:
5054
os: ['ubuntu-20.04']
51-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
52-
pytorch-version: ['2.4.0'] # Must be the most recent version that meets requirements-cuda.txt.
53-
cuda-version: ['11.8', '12.1']
55+
python-version: ['3.9']
56+
pytorch-version: ['2.5.0'] # Must be the most recent version that meets requirements-cuda.txt.
5457

5558
steps:
5659
- name: Checkout
5760
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
5861

59-
- name: Setup ccache
60-
uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14
61-
with:
62-
create-symlink: true
63-
key: ${{ github.job }}-${{ matrix.python-version }}-${{ matrix.cuda-version }}
64-
6562
- name: Set up Linux Env
6663
if: ${{ runner.os == 'Linux' }}
6764
run: |
@@ -72,20 +69,12 @@ jobs:
7269
with:
7370
python-version: ${{ matrix.python-version }}
7471

75-
- name: Install CUDA ${{ matrix.cuda-version }}
76-
run: |
77-
bash -x .github/workflows/scripts/cuda-install.sh ${{ matrix.cuda-version }} ${{ matrix.os }}
78-
79-
- name: Install PyTorch ${{ matrix.pytorch-version }} with CUDA ${{ matrix.cuda-version }}
80-
run: |
81-
bash -x .github/workflows/scripts/pytorch-install.sh ${{ matrix.python-version }} ${{ matrix.pytorch-version }} ${{ matrix.cuda-version }}
82-
8372
- name: Build wheel
8473
shell: bash
8574
env:
8675
CMAKE_BUILD_TYPE: Release # do not compile with debug symbol to reduce wheel size
8776
run: |
88-
bash -x .github/workflows/scripts/build.sh ${{ matrix.python-version }} ${{ matrix.cuda-version }}
77+
bash -x .github/workflows/scripts/build.sh
8978
wheel_name=$(find dist -name "*whl" -print0 | xargs -0 -n 1 basename)
9079
asset_name=${wheel_name//"linux"/"manylinux1"}
9180
echo "wheel_name=${wheel_name}" >> "$GITHUB_ENV"

.github/workflows/scripts/build.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
#!/bin/bash
22
set -eux
33

4-
python_executable=python$1
5-
cuda_home=/usr/local/cuda-$2
4+
python_executable=python3
65

76
# Update paths
8-
PATH=${cuda_home}/bin:$PATH
9-
LD_LIBRARY_PATH=${cuda_home}/lib64:$LD_LIBRARY_PATH
10-
117
# Install requirements
12-
$python_executable -m pip install -r requirements-build.txt -r requirements-cuda.txt
8+
$python_executable -m pip install -r requirements-rocm.txt
139

1410
# Limit the number of parallel jobs to avoid OOM
1511
export MAX_JOBS=1
1612
# Make sure release wheels are built for the following architectures
17-
export TORCH_CUDA_ARCH_LIST="7.0 7.5 8.0 8.6 8.9 9.0+PTX"
18-
export VLLM_FA_CMAKE_GPU_ARCHES="80-real;90-real"
13+
export PYTORCH_ROCM_ARCH="gfx90a;gfx942"
1914

2015
bash tools/check_repo.sh
2116

0 commit comments

Comments
 (0)