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
9c0c1e30
Unverified
Commit
9c0c1e30
authored
Aug 22, 2025
by
Qiaolin Yu
Committed by
GitHub
Aug 22, 2025
Browse files
Disable torch.compile for get_last_loc_large_page_size_large_top_k (#9507)
Co-authored-by:
ispobock
<
ispobaoke@gmail.com
>
parent
a1f011d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
python/sglang/srt/speculative/eagle_worker.py
python/sglang/srt/speculative/eagle_worker.py
+3
-1
No files found.
python/sglang/srt/speculative/eagle_worker.py
View file @
9c0c1e30
...
...
@@ -1017,7 +1017,9 @@ def get_last_loc_large_page_size_top_k_1(
return
prefix_lens
,
seq_lens
,
last_loc
@
torch
.
compile
(
dynamic
=
True
)
# Disable torch.compile for this function because it will be
# even slower.
# @torch.compile(dynamic=True)
def
get_last_loc_large_page_size_large_top_k
(
req_to_token
:
torch
.
Tensor
,
req_pool_indices
:
torch
.
Tensor
,
...
...
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