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
6252ade9
"vscode:/vscode.git/clone" did not exist on "a45d9a4ee86153813f7f4ff475ea05b62d87fadc"
Unverified
Commit
6252ade9
authored
Feb 20, 2025
by
HAI
Committed by
GitHub
Feb 20, 2025
Browse files
revert BLOCK and num_warps on HIP (#3722)
parent
1eb8eade
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/layers/attention/triton_ops/extend_attention.py
...glang/srt/layers/attention/triton_ops/extend_attention.py
+2
-2
No files found.
python/sglang/srt/layers/attention/triton_ops/extend_attention.py
View file @
6252ade9
...
...
@@ -329,8 +329,8 @@ def extend_attention_fwd(
BLOCK_DV
=
triton
.
next_power_of_2
(
Lv
)
if
is_hip_
:
BLOCK_M
,
BLOCK_N
=
(
32
,
32
)
num_warps
=
2
BLOCK_M
,
BLOCK_N
=
(
64
,
64
)
num_warps
=
4
else
:
if
is_cuda_available
and
CUDA_CAPABILITY
[
0
]
>=
9
:
...
...
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