From 695382af9248adaf988cbf7a11e1cbd9b92905bc Mon Sep 17 00:00:00 2001 From: Casper Date: Sat, 16 Nov 2024 20:30:52 +0100 Subject: [PATCH 1/2] minimum torch 2.2.2 --- .github/workflows/build.yaml | 66 +++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 53c8fba7..28d2818c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,40 +2,40 @@ name: Build AutoAWQ Wheels with CUDA on: push: - tags: - - "v*" + branches: + - "downgrade_build_torch" jobs: - release: - # Retrieve tag and create release - name: Create Release - runs-on: ubuntu-latest - outputs: - upload_url: ${{ steps.create_release.outputs.upload_url }} - steps: - - name: Checkout - uses: actions/checkout@v3 + # release: + # # Retrieve tag and create release + # name: Create Release + # runs-on: ubuntu-latest + # outputs: + # upload_url: ${{ steps.create_release.outputs.upload_url }} + # steps: + # - name: Checkout + # uses: actions/checkout@v3 - - name: Extract branch info - shell: bash - run: | - echo "release_tag=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + # - name: Extract branch info + # shell: bash + # run: | + # echo "release_tag=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - name: Create Release - id: create_release - uses: "actions/github-script@v6" - env: - RELEASE_TAG: ${{ env.release_tag }} - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - script: | - const script = require('.github/workflows/scripts/github_create_release.js') - await script(github, context, core) + # - name: Create Release + # id: create_release + # uses: "actions/github-script@v6" + # env: + # RELEASE_TAG: ${{ env.release_tag }} + # with: + # github-token: "${{ secrets.GITHUB_TOKEN }}" + # script: | + # const script = require('.github/workflows/scripts/github_create_release.js') + # await script(github, context, core) build_wheels: name: Build AWQ runs-on: ${{ matrix.os }} - needs: release + # needs: release strategy: matrix: @@ -44,6 +44,8 @@ jobs: defaults: run: shell: pwsh + env: + MIN_TORCH_VER: "2.2.0" steps: - name: Free Disk Space @@ -78,7 +80,7 @@ jobs: - name: Install Dependencies run: | # Install torch - python -m pip install --upgrade --no-cache-dir torch==2.5.1 + python -m pip install --upgrade --no-cache-dir torch==$env:MIN_TORCH_VER python -m pip install build setuptools wheel # Print version information @@ -89,8 +91,8 @@ jobs: run: | python setup.py sdist bdist_wheel - - name: Upload Assets - uses: shogo82148/actions-upload-release-asset@v1 - with: - upload_url: ${{ needs.release.outputs.upload_url }} - asset_path: ./dist/*.whl + # - name: Upload Assets + # uses: shogo82148/actions-upload-release-asset@v1 + # with: + # upload_url: ${{ needs.release.outputs.upload_url }} + # asset_path: ./dist/*.whl From 8eaa6e0a3d10f407bfa3d06bd56f0f9c961f4adc Mon Sep 17 00:00:00 2001 From: Casper Date: Sat, 16 Nov 2024 20:35:32 +0100 Subject: [PATCH 2/2] revert release --- .github/workflows/build.yaml | 62 ++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 28d2818c..35ded640 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,40 +2,40 @@ name: Build AutoAWQ Wheels with CUDA on: push: - branches: - - "downgrade_build_torch" + tags: + - "v*" jobs: - # release: - # # Retrieve tag and create release - # name: Create Release - # runs-on: ubuntu-latest - # outputs: - # upload_url: ${{ steps.create_release.outputs.upload_url }} - # steps: - # - name: Checkout - # uses: actions/checkout@v3 + release: + # Retrieve tag and create release + name: Create Release + runs-on: ubuntu-latest + outputs: + upload_url: ${{ steps.create_release.outputs.upload_url }} + steps: + - name: Checkout + uses: actions/checkout@v3 - # - name: Extract branch info - # shell: bash - # run: | - # echo "release_tag=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + - name: Extract branch info + shell: bash + run: | + echo "release_tag=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - # - name: Create Release - # id: create_release - # uses: "actions/github-script@v6" - # env: - # RELEASE_TAG: ${{ env.release_tag }} - # with: - # github-token: "${{ secrets.GITHUB_TOKEN }}" - # script: | - # const script = require('.github/workflows/scripts/github_create_release.js') - # await script(github, context, core) + - name: Create Release + id: create_release + uses: "actions/github-script@v6" + env: + RELEASE_TAG: ${{ env.release_tag }} + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + script: | + const script = require('.github/workflows/scripts/github_create_release.js') + await script(github, context, core) build_wheels: name: Build AWQ runs-on: ${{ matrix.os }} - # needs: release + needs: release strategy: matrix: @@ -91,8 +91,8 @@ jobs: run: | python setup.py sdist bdist_wheel - # - name: Upload Assets - # uses: shogo82148/actions-upload-release-asset@v1 - # with: - # upload_url: ${{ needs.release.outputs.upload_url }} - # asset_path: ./dist/*.whl + - name: Upload Assets + uses: shogo82148/actions-upload-release-asset@v1 + with: + upload_url: ${{ needs.release.outputs.upload_url }} + asset_path: ./dist/*.whl