Skip to content

Commit 1a4c29b

Browse files
committed
Update workflows
1 parent 999ae8b commit 1a4c29b

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/build_wheels_cuda.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'Version tag of AutoGPTQ to build: v0.4.2'
7+
description: 'Version tag of AutoGPTQ to build: v0.5.1'
88
default: 'main'
99
required: true
1010
type: string
@@ -66,7 +66,7 @@ jobs:
6666
6767
if ([version]$env:CUDAVER -lt [version]'11.8.0') {$torch = "torch==2.0.1"} else {$torch = "torch==2.1.0"}
6868
69-
python -m pip install --upgrade build setuptools wheel ninja $torch --extra-index-url "https://download.pytorch.org/whl/cu$cudaVersionPytorch"
69+
python -m pip install --upgrade build setuptools wheel ninja numpy gekko pandas $torch --extra-index-url "https://download.pytorch.org/whl/cu$cudaVersionPytorch"
7070
7171
- name: Build Wheel
7272
id: build-wheel
@@ -84,9 +84,6 @@ jobs:
8484
$env:CUDA_HOME = $env:CONDA_PREFIX
8585
if ($IsLinux) {$env:LD_LIBRARY_PATH = $env:CONDA_PREFIX + '/lib:' + $env:LD_LIBRARY_PATH}
8686
87-
# TODO: remove this
88-
if (!$IsLinux) {$env:INCLUDE_EXLLAMA_KERNELS = 0}
89-
9087
$env:TORCH_CUDA_ARCH_LIST = if ([version]$env:CUDAVER -lt [version]'11.8.0') {'6.0 6.1 7.0 7.5 8.0 8.6+PTX'} else {'6.0 6.1 7.0 7.5 8.0 8.6 8.9 9.0+PTX'}
9188
9289
$env:CUDA_VERSION = $env:CUDAVER.Remove($env:CUDAVER.LastIndexOf('.')).Replace('.','')

.github/workflows/build_wheels_rocm.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'Version tag of AutoGPTQ to build: v0.4.2'
7+
description: 'Version tag of AutoGPTQ to build: v0.5.1'
88
default: 'main'
99
required: true
1010
type: string
@@ -68,7 +68,7 @@ jobs:
6868

6969
- name: Install Dependencies
7070
run: |
71-
$packages = 'build wheel safetensors sentencepiece ninja'
71+
$packages = 'build wheel safetensors sentencepiece ninja numpy gekko pandas'
7272
$torver = if ([version]$env:ROCM_VERSION -lt [version]'5.5') {'2.0.1'} else {'2.1.0'}
7373
$packages += " torch==$torver+rocm$env:ROCM_VERSION torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/rocm$env:ROCM_VERSION"
7474
@@ -81,17 +81,22 @@ jobs:
8181
{
8282
Write-Output $('::notice file=build-wheels-release.yml,title=Package Version::Detected package version is: {0}' -f $Matches[1])
8383
Write-Output "PACKAGE_VERSION=$($Matches[1])" >> "$env:GITHUB_OUTPUT"
84+
$PCKG_VERSION = "$($Matches[1])"
8485
} else {
8586
Write-Output '::error file=build-wheels-release.yml::Could not parse version from setup.py! You must upload wheels manually!'
8687
Write-Output "PACKAGE_VERSION=None" >> "$env:GITHUB_OUTPUT"
88+
$PCKG_VERSION = $false
8789
}
8890
8991
$env:PYTORCH_ROCM_ARCH = 'gfx803;gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a:xnack+;gfx90a:xnack-;gfx1010;gfx1012;gfx1030;gfx1100;gfx1101;gfx1102'
9092
if ([version]$env:ROCM_VERSION -lt [version]'5.5') {$env:PYTORCH_ROCM_ARCH = 'gfx803;gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a:xnack+;gfx90a:xnack-;gfx1010;gfx1012;gfx1030'}
9193
92-
$setup = Get-Content setup.py -raw
93-
$macroString = "extra_link_args=extra_link_args,`n define_macros=[('HIPBLAS_USE_HIP_HALF', '1')]"
94-
New-Item setup.py -itemType File -value $setup.replace('extra_link_args=extra_link_args', $macroString) -force
94+
if ([version]$PCKG_VERSION -lt [version]'0.5.0')
95+
{
96+
$setup = Get-Content setup.py -raw
97+
$macroString = "extra_link_args=extra_link_args,`n define_macros=[('HIPBLAS_USE_HIP_HALF', '1')]"
98+
New-Item setup.py -itemType File -value $setup.replace('extra_link_args=extra_link_args', $macroString) -force
99+
}
95100
96101
python setup.py sdist bdist_wheel
97102

0 commit comments

Comments
 (0)