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
text-generation-inference
Commits
91d72675
Unverified
Commit
91d72675
authored
Jan 09, 2024
by
R. P. Ruiz
Committed by
GitHub
Jan 09, 2024
Browse files
Fix missing make target platform for local install: 'install-flash-attention-v2' (#1414)
parent
564f2a3b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
server/text_generation_server/utils/flash_attn.py
server/text_generation_server/utils/flash_attn.py
+6
-1
No files found.
server/text_generation_server/utils/flash_attn.py
View file @
91d72675
...
...
@@ -23,10 +23,15 @@ try:
try
:
import
flash_attn_2_cuda
except
ImportError
:
architecture_suffix
=
""
if
IS_CUDA_SYSTEM
:
architecture_suffix
=
"-cuda"
elif
IS_ROCM_SYSTEM
:
architecture_suffix
=
"-rocm"
raise
ImportError
(
"Flash Attention V2 is not installed.
\n
"
"Use the official Docker image (ghcr.io/huggingface/text-generation-inference:latest) "
"or install flash attention v2 with `cd server && make install install-flash-attention-v2`"
f
"or install flash attention v2 with `cd server && make install install-flash-attention-v2
{
architecture_suffix
}
`"
)
if
not
(
is_sm8x
or
is_sm90
):
raise
ImportError
(
...
...
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