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
662725b9
Unverified
Commit
662725b9
authored
Oct 30, 2025
by
Johnsonms
Committed by
GitHub
Oct 30, 2025
Browse files
[DeepSeekV32] Bug fix to ensure `page_table` and `result` in same type (#12300)
parent
82cfcd3b
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/nsa/transform_index.py
python/sglang/srt/layers/attention/nsa/transform_index.py
+1
-1
No files found.
python/sglang/srt/layers/attention/nsa/transform_index.py
View file @
662725b9
...
...
@@ -103,7 +103,7 @@ def transform_index_page_table_decode_ref(
result
=
torch
.
empty_like
(
topk_indices
,
dtype
=
torch
.
int32
)
assert
result
.
shape
==
topk_indices
.
shape
torch
.
gather
(
page_table
,
page_table
.
to
(
result
.
dtype
)
,
dim
=
1
,
index
=
topk_indices
.
clamp
(
min
=
0
),
out
=
result
,
...
...
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