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
65915f9f
Unverified
Commit
65915f9f
authored
Aug 13, 2024
by
Yineng Zhang
Committed by
GitHub
Aug 13, 2024
Browse files
fix: temporary solution for DeepSeek V2 H100 layout conversion issue (#1060)
Co-authored-by:
ispobock
<
ISPObaoke@163.com
>
parent
162f3ccb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
python/sglang/srt/layers/extend_attention.py
python/sglang/srt/layers/extend_attention.py
+3
-1
No files found.
python/sglang/srt/layers/extend_attention.py
View file @
65915f9f
...
@@ -275,7 +275,9 @@ def extend_attention_fwd(
...
@@ -275,7 +275,9 @@ def extend_attention_fwd(
BLOCK_DPE
=
0
BLOCK_DPE
=
0
BLOCK_DV
=
Lv
BLOCK_DV
=
Lv
if
CUDA_CAPABILITY
[
0
]
>=
8
:
if
CUDA_CAPABILITY
[
0
]
>=
9
:
BLOCK_M
,
BLOCK_N
=
(
128
,
64
)
elif
CUDA_CAPABILITY
[
0
]
>=
8
:
BLOCK_M
,
BLOCK_N
=
(
128
,
128
)
if
Lq
<=
128
else
(
64
,
64
)
BLOCK_M
,
BLOCK_N
=
(
128
,
128
)
if
Lq
<=
128
else
(
64
,
64
)
else
:
else
:
BLOCK_M
,
BLOCK_N
=
(
64
,
64
)
if
Lq
<=
128
else
(
32
,
32
)
BLOCK_M
,
BLOCK_N
=
(
64
,
64
)
if
Lq
<=
128
else
(
32
,
32
)
...
...
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