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
1441a435
Commit
1441a435
authored
Nov 22, 2025
by
maxiao1
Browse files
fix figure test bug.
parent
20eac49d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
python/sglang/srt/layers/attention/vision.py
python/sglang/srt/layers/attention/vision.py
+3
-2
No files found.
python/sglang/srt/layers/attention/vision.py
View file @
1441a435
...
@@ -29,6 +29,9 @@ _is_hip = is_hip()
...
@@ -29,6 +29,9 @@ _is_hip = is_hip()
if
_is_cuda
:
if
_is_cuda
:
from
sgl_kernel.flash_attn
import
flash_attn_varlen_func
from
sgl_kernel.flash_attn
import
flash_attn_varlen_func
if
_is_hip
:
from
sglang.srt.layers.attention.flashattention_interface
import
flash_attn_varlen_func
if
_is_npu
:
if
_is_npu
:
import
torch_npu
import
torch_npu
...
@@ -299,8 +302,6 @@ class VisionFlash3Attention(nn.Module):
...
@@ -299,8 +302,6 @@ class VisionFlash3Attention(nn.Module):
):
):
# if not _is_cuda:
# if not _is_cuda:
# raise Exception("VisionFlash3Attention is only available for cuda")
# raise Exception("VisionFlash3Attention is only available for cuda")
if
_is_hip
:
from
sglang.srt.layers.attention.flashattention_interface
import
flash_attn_varlen_func
super
().
__init__
()
super
().
__init__
()
def
forward
(
def
forward
(
...
...
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