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
bitsandbytes
Commits
dc8c9efd
"...text-generation-inference.git" did not exist on "7b5c16748707e37a3c68ba5af670ecfe3d8b87be"
Commit
dc8c9efd
authored
Jul 26, 2022
by
Tim Dettmers
Browse files
Changed setup.py; deployed on test pypi.
parent
953b7285
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
45 deletions
+47
-45
deploy_from_slurm.sh
deploy_from_slurm.sh
+44
-43
setup.py
setup.py
+3
-2
No files found.
deploy_from_slurm.sh
View file @
dc8c9efd
...
@@ -4,19 +4,19 @@ BASE_PATH=$1
...
@@ -4,19 +4,19 @@ BASE_PATH=$1
module unload cuda
module unload cuda
module unload gcc
module unload gcc
rm
-rf
dist build
#
rm -rf dist build
make clean
#
make clean
make cleaneggs
#
make cleaneggs
export
CUDA_HOME
=
#
export CUDA_HOME=
make cpuonly
#
make cpuonly
#
if
[
!
-f
"./bitsandbytes/libbitsandbytes.so"
]
;
then
#
if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
# Control will enter here if $DIRECTORY doesn't exist.
#
# Control will enter here if $DIRECTORY doesn't exist.
echo
"Compilation unsuccessul!"
1>&2
#
echo "Compilation unsuccessul!" 1>&2
exit
64
#
exit 64
fi
#
fi
CUDA_VERSION
=
cpu python
-m
build
#
CUDA_VERSION=cpu python -m build
python
-m
twine upload dist/
*
--verbose
#
python -m twine upload dist/* --verbose
--repository testpypi
rm
-rf
dist build
rm
-rf
dist build
make clean
make clean
...
@@ -30,7 +30,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -30,7 +30,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
exit
64
exit
64
fi
fi
CUDA_VERSION
=
110 python
-m
build
CUDA_VERSION
=
110 python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
rm
-rf
dist build
rm
-rf
dist build
make clean
make clean
...
@@ -44,7 +44,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -44,7 +44,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
exit
64
exit
64
fi
fi
CUDA_VERSION
=
111 python
-m
build
CUDA_VERSION
=
111 python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
rm
-rf
dist build
rm
-rf
dist build
make clean
make clean
...
@@ -58,7 +58,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -58,7 +58,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
exit
64
exit
64
fi
fi
CUDA_VERSION
=
112 python
-m
build
CUDA_VERSION
=
112 python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
rm
-rf
dist build
rm
-rf
dist build
make clean
make clean
...
@@ -72,7 +72,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -72,7 +72,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
exit
64
exit
64
fi
fi
CUDA_VERSION
=
113 python
-m
build
CUDA_VERSION
=
113 python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
rm
-rf
dist build
rm
-rf
dist build
make clean
make clean
...
@@ -86,7 +86,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -86,7 +86,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
exit
64
exit
64
fi
fi
CUDA_VERSION
=
114 python
-m
build
CUDA_VERSION
=
114 python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
rm
-rf
dist build
rm
-rf
dist build
make clean
make clean
...
@@ -100,22 +100,22 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -100,22 +100,22 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
exit
64
exit
64
fi
fi
CUDA_VERSION
=
115 python
-m
build
CUDA_VERSION
=
115 python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
rm
-rf
dist build
#
rm -rf dist build
make clean
#
make clean
make cleaneggs
#
make cleaneggs
export
CUDA_HOME
=
$BASE_PATH
/cuda-11.6
#
export CUDA_HOME=$BASE_PATH/cuda-11.6
#
make cuda11x
#
make cuda11x
if
[
!
-f
"./bitsandbytes/libbitsandbytes.so"
]
;
then
#
if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
# Control will enter here if $DIRECTORY doesn't exist.
#
# Control will enter here if $DIRECTORY doesn't exist.
echo
"Compilation unsuccessul!"
1>&2
#
echo "Compilation unsuccessul!" 1>&2
exit
64
#
exit 64
fi
#
fi
CUDA_VERSION
=
116 python
-m
build
#
CUDA_VERSION=116 python -m build
python
-m
twine upload dist/
*
--verbose
#
python -m twine upload dist/* --verbose
--repository testpypi
#
rm
-rf
dist build
rm
-rf
dist build
make clean
make clean
make cleaneggs
make cleaneggs
...
@@ -128,7 +128,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -128,7 +128,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
exit
64
exit
64
fi
fi
CUDA_VERSION
=
117 python
-m
build
CUDA_VERSION
=
117 python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
rm
-rf
dist build
rm
-rf
dist build
...
@@ -143,7 +143,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -143,7 +143,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
exit
64
exit
64
fi
fi
CUDA_VERSION
=
102-nomatmul python
-m
build
CUDA_VERSION
=
102-nomatmul python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
rm
-rf
dist build
rm
-rf
dist build
...
@@ -158,7 +158,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -158,7 +158,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
exit
64
exit
64
fi
fi
CUDA_VERSION
=
110-nomatmul python
-m
build
CUDA_VERSION
=
110-nomatmul python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
rm
-rf
dist build
rm
-rf
dist build
...
@@ -173,7 +173,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -173,7 +173,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
exit
64
exit
64
fi
fi
CUDA_VERSION
=
111-nomatmul python
-m
build
CUDA_VERSION
=
111-nomatmul python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
rm
-rf
dist build
rm
-rf
dist build
make clean
make clean
...
@@ -187,7 +187,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -187,7 +187,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
exit
64
exit
64
fi
fi
CUDA_VERSION
=
112-nomatmul python
-m
build
CUDA_VERSION
=
112-nomatmul python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
rm
-rf
dist build
rm
-rf
dist build
make clean
make clean
...
@@ -201,7 +201,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -201,7 +201,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
exit
64
exit
64
fi
fi
CUDA_VERSION
=
113-nomatmul python
-m
build
CUDA_VERSION
=
113-nomatmul python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
rm
-rf
dist build
rm
-rf
dist build
make clean
make clean
...
@@ -215,7 +215,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -215,7 +215,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
exit
64
exit
64
fi
fi
CUDA_VERSION
=
114-nomatmul python
-m
build
CUDA_VERSION
=
114-nomatmul python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
rm
-rf
dist build
rm
-rf
dist build
make clean
make clean
...
@@ -229,7 +229,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -229,7 +229,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
exit
64
exit
64
fi
fi
CUDA_VERSION
=
115-nomatmul python
-m
build
CUDA_VERSION
=
115-nomatmul python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
rm
-rf
dist build
rm
-rf
dist build
make clean
make clean
...
@@ -243,7 +243,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -243,7 +243,7 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
exit
64
exit
64
fi
fi
CUDA_VERSION
=
116-nomatmul python
-m
build
CUDA_VERSION
=
116-nomatmul python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
rm
-rf
dist build
rm
-rf
dist build
make clean
make clean
...
@@ -258,3 +258,4 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
...
@@ -258,3 +258,4 @@ if [ ! -f "./bitsandbytes/libbitsandbytes.so" ]; then
fi
fi
CUDA_VERSION
=
117-nomatmul python
-m
build
CUDA_VERSION
=
117-nomatmul python
-m
build
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
python
-m
twine upload dist/
*
--verbose
--repository
testpypi
setup.py
View file @
dc8c9efd
...
@@ -11,13 +11,14 @@ def read(fname):
...
@@ -11,13 +11,14 @@ def read(fname):
version
=
os
.
getenv
(
"CUDA_VERSION"
,
"cpu"
)
version
=
os
.
getenv
(
"CUDA_VERSION"
,
"cpu"
)
prefix
=
''
if
version
==
'cpu'
else
'cuda'
setup
(
setup
(
name
=
"bitsandbytes"
,
name
=
f
"bitsandbytes
-
{
prefix
}{
version
}
"
,
version
=
f
"0.30.0"
,
version
=
f
"0.30.0"
,
author
=
"Tim Dettmers"
,
author
=
"Tim Dettmers"
,
author_email
=
"dettmers@cs.washington.edu"
,
author_email
=
"dettmers@cs.washington.edu"
,
description
=
"8-bit optimizers and
quantiz
ation routines."
,
description
=
"8-bit optimizers and
matrix multiplic
ation routines."
,
license
=
"MIT"
,
license
=
"MIT"
,
keywords
=
"gpu optimizers optimization 8-bit quantization compression"
,
keywords
=
"gpu optimizers optimization 8-bit quantization compression"
,
url
=
"http://packages.python.org/bitsandbytes"
,
url
=
"http://packages.python.org/bitsandbytes"
,
...
...
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