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
gaoqiong
flash-attention
Commits
30a44ae1
Unverified
Commit
30a44ae1
authored
Jul 31, 2024
by
Woosuk Kwon
Committed by
GitHub
Jul 31, 2024
Browse files
Support non-default CUDA version (#14)
parent
d562aa63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
setup.py
setup.py
+13
-3
No files found.
setup.py
View file @
30a44ae1
...
...
@@ -281,11 +281,21 @@ class NinjaBuildExtension(BuildExtension):
PYTORCH_VERSION
=
"2.4.0"
CUDA_VERSION
=
"12.1"
MAIN_CUDA_VERSION
=
"12.1"
def
get_version
()
->
str
:
version
=
get_package_version
()
cuda_version
=
str
(
bare_metal_version
)
if
cuda_version
!=
MAIN_CUDA_VERSION
:
cuda_version_str
=
cuda_version
.
replace
(
"."
,
""
)[:
3
]
version
+=
f
"+cu
{
cuda_version_str
}
"
return
version
setup
(
name
=
"vllm-flash-attn"
,
version
=
get_
package_
version
(),
version
=
get_version
(),
packages
=
find_packages
(
exclude
=
(
"build"
,
...
...
@@ -300,7 +310,7 @@ setup(
),
author
=
"vLLM Team"
,
description
=
"Forward-only flash-attn"
,
long_description
=
f
"Forward-only flash-attn package built for PyTorch
{
PYTORCH_VERSION
}
and CUDA
{
CUDA_VERSION
}
"
,
long_description
=
f
"Forward-only flash-attn package built for PyTorch
{
PYTORCH_VERSION
}
and CUDA
{
MAIN_
CUDA_VERSION
}
"
,
url
=
"https://github.com/vllm-project/flash-attention.git"
,
classifiers
=
[
"Programming Language :: Python :: 3"
,
...
...
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