Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
AutoAWQ
Commits
9f9ce41f
Unverified
Commit
9f9ce41f
authored
Nov 05, 2023
by
Casper
Committed by
GitHub
Nov 05, 2023
Browse files
Build older cuda wheels (#158)
parent
8110e028
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
5 deletions
+21
-5
.github/workflows/build.yaml
.github/workflows/build.yaml
+8
-3
README.md
README.md
+12
-1
setup.py
setup.py
+1
-1
No files found.
.github/workflows/build.yaml
View file @
9f9ce41f
...
@@ -41,11 +41,12 @@ jobs:
...
@@ -41,11 +41,12 @@ jobs:
matrix
:
matrix
:
os
:
[
ubuntu-20.04
,
windows-latest
]
os
:
[
ubuntu-20.04
,
windows-latest
]
pyver
:
[
"
3.8"
,
"
3.9"
,
"
3.10"
,
"
3.11"
]
pyver
:
[
"
3.8"
,
"
3.9"
,
"
3.10"
,
"
3.11"
]
cuda
:
[
"
12.1.1"
]
cuda
:
[
"
11.8.0"
,
"
12.1.1"
]
defaults
:
defaults
:
run
:
run
:
shell
:
pwsh
shell
:
pwsh
env
:
env
:
PYPI_CUDA_VERSION
:
"
12.1.1"
CUDA_VERSION
:
${{ matrix.cuda }}
CUDA_VERSION
:
${{ matrix.cuda }}
steps
:
steps
:
...
@@ -105,7 +106,11 @@ jobs:
...
@@ -105,7 +106,11 @@ jobs:
run
:
|
run
:
|
$env:CUDA_PATH = $env:CONDA_PREFIX
$env:CUDA_PATH = $env:CONDA_PREFIX
$env:CUDA_HOME = $env:CONDA_PREFIX
$env:CUDA_HOME = $env:CONDA_PREFIX
# Only add +cu118 to wheel if not releasing on PyPi
if ( $env:CUDA_VERSION -eq $env:PYPI_CUDA_VERSION ){
$env:PYPI_BUILD = 1
$env:PYPI_BUILD = 1
}
python setup.py sdist bdist_wheel
python setup.py sdist bdist_wheel
...
...
README.md
View file @
9f9ce41f
...
@@ -34,12 +34,23 @@ Requirements:
...
@@ -34,12 +34,23 @@ Requirements:
---
---
Install:
Install:
-
Use pip to install awq
-
Install from PyPi distributed wheels (torch 2.1.0 + CUDA 12.1.1)
```
```
pip install autoawq
pip install autoawq
```
```
-
Install from GitHub a release (torch 2.0.1 + CUDA 11.8.0)
Remember to grab the right link for the
[
latest release
](
https://github.com/casper-hansen/AutoAWQ/releases
)
that matches your environment.
For example, this wheel is torch 2.0.1 with CUDA 11.8.0 and Python 3.10 for Linux:
```
pip install https://github.com/casper-hansen/AutoAWQ/releases/download/v0.1.6/autoawq-0.1.6+cu118-cp310-cp310-linux_x86_64.whl
```
### Using conda
### Using conda
CUDA dependencies can be hard to manage sometimes. It is recommended to use conda with AutoAWQ:
CUDA dependencies can be hard to manage sometimes. It is recommended to use conda with AutoAWQ:
...
...
setup.py
View file @
9f9ce41f
...
@@ -43,7 +43,7 @@ common_setup_kwargs = {
...
@@ -43,7 +43,7 @@ common_setup_kwargs = {
}
}
requirements
=
[
requirements
=
[
"torch>=2.
1.0
"
,
"torch>=2.
0.1
"
,
"transformers>=4.35.0"
,
"transformers>=4.35.0"
,
"tokenizers>=0.12.1"
,
"tokenizers>=0.12.1"
,
"accelerate"
,
"accelerate"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment