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
change
sglang
Commits
32803fb2
Unverified
Commit
32803fb2
authored
Oct 15, 2025
by
fzyzcjy
Committed by
GitHub
Oct 14, 2025
Browse files
Super tiny improve FA3 import error message (#11590)
parent
91fc5bb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
sgl-kernel/python/sgl_kernel/flash_attn.py
sgl-kernel/python/sgl_kernel/flash_attn.py
+3
-1
No files found.
sgl-kernel/python/sgl_kernel/flash_attn.py
View file @
32803fb2
...
@@ -6,7 +6,9 @@ import torch
...
@@ -6,7 +6,9 @@ import torch
try
:
try
:
from
sgl_kernel
import
flash_ops
from
sgl_kernel
import
flash_ops
except
:
except
:
raise
ImportError
(
"Can not import sgl_kernel. Please check your installation."
)
raise
ImportError
(
"Can not import FA3 in sgl_kernel. Please check your installation."
)
try
:
try
:
from
._fa4_interface
import
flash_attn_varlen_func
as
flash_attn_varlen_func_v4
from
._fa4_interface
import
flash_attn_varlen_func
as
flash_attn_varlen_func_v4
...
...
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