Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
e58294dd
Unverified
Commit
e58294dd
authored
Jul 05, 2024
by
JGSweets
Committed by
GitHub
Jul 05, 2024
Browse files
[Bugfix] Add verbose error if scipy is missing for blocksparse attention (#5695)
parent
f1e15da6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
vllm/attention/ops/blocksparse_attention/utils.py
vllm/attention/ops/blocksparse_attention/utils.py
+13
-6
No files found.
vllm/attention/ops/blocksparse_attention/utils.py
View file @
e58294dd
...
...
@@ -6,7 +6,14 @@ from functools import lru_cache
import
torch
import
triton
from
scipy
import
sparse
try
:
from
scipy
import
sparse
except
ImportError
as
err
:
raise
ImportError
(
"Please install scipy via "
"`pip install scipy` to use "
"BlockSparseAttention in "
"models such as Phi-3."
)
from
err
def
dense_to_crow_col
(
x
:
torch
.
Tensor
):
...
...
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