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
8b681d77
Unverified
Commit
8b681d77
authored
Feb 27, 2025
by
Tianxing Wu
Committed by
GitHub
Feb 26, 2025
Browse files
[Rocm] Fix to the rocm_mla_decode_rope.py returning random result (#3898)
parent
194eea17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/layers/attention/triton_ops/rocm_mla_decode_rope.py
...g/srt/layers/attention/triton_ops/rocm_mla_decode_rope.py
+1
-1
No files found.
python/sglang/srt/layers/attention/triton_ops/rocm_mla_decode_rope.py
View file @
8b681d77
...
@@ -230,7 +230,7 @@ def _fwd_grouped_kernel_stage1_rope(
...
@@ -230,7 +230,7 @@ def _fwd_grouped_kernel_stage1_rope(
other
=
0.0
,
other
=
0.0
,
)
# positional embedding part of keys
)
# positional embedding part of keys
if
USE_ROPE
and
start_n
>=
cur_batch_seq_len
-
BLOCK_N
:
if
(
USE_ROPE
and
LAST_SPLIT
)
and
start_n
>=
cur_batch_seq_len
-
BLOCK_N
:
k_pe
=
tl
.
where
(
k_pe
=
tl
.
where
(
offs_n
[
None
,
:]
!=
(
split_kv_end
-
1
),
offs_n
[
None
,
:]
!=
(
split_kv_end
-
1
),
k_pe
,
k_pe
,
...
...
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