4
4
workflow_dispatch :
5
5
inputs :
6
6
version :
7
- description : ' Version tag of AutoGPTQ to build: v0.4.2 '
7
+ description : ' Version tag of AutoGPTQ to build: v0.5.1 '
8
8
default : ' main'
9
9
required : true
10
10
type : string
68
68
69
69
- name : Install Dependencies
70
70
run : |
71
- $packages = 'build wheel safetensors sentencepiece ninja'
71
+ $packages = 'build wheel safetensors sentencepiece ninja numpy gekko pandas '
72
72
$torver = if ([version]$env:ROCM_VERSION -lt [version]'5.5') {'2.0.1'} else {'2.1.0'}
73
73
$packages += " torch==$torver+rocm$env:ROCM_VERSION torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/rocm$env:ROCM_VERSION"
74
74
@@ -81,17 +81,22 @@ jobs:
81
81
{
82
82
Write-Output $('::notice file=build-wheels-release.yml,title=Package Version::Detected package version is: {0}' -f $Matches[1])
83
83
Write-Output "PACKAGE_VERSION=$($Matches[1])" >> "$env:GITHUB_OUTPUT"
84
+ $PCKG_VERSION = "$($Matches[1])"
84
85
} else {
85
86
Write-Output '::error file=build-wheels-release.yml::Could not parse version from setup.py! You must upload wheels manually!'
86
87
Write-Output "PACKAGE_VERSION=None" >> "$env:GITHUB_OUTPUT"
88
+ $PCKG_VERSION = $false
87
89
}
88
90
89
91
$env:PYTORCH_ROCM_ARCH = 'gfx803;gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a:xnack+;gfx90a:xnack-;gfx1010;gfx1012;gfx1030;gfx1100;gfx1101;gfx1102'
90
92
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'}
91
93
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
+ }
95
100
96
101
python setup.py sdist bdist_wheel
97
102
0 commit comments