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
zhaoyu6
sglang
Commits
1a9c2c92
"docs/vscode:/vscode.git/clone" did not exist on "57f99608f4fdea03e0450f51a6fcabe726409f25"
Unverified
Commit
1a9c2c92
authored
Jun 16, 2025
by
Lianmin Zheng
Committed by
GitHub
Jun 16, 2025
Browse files
Fix AMD speculative decoding (#7252)
parent
873ae12c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/speculative/eagle_utils.py
python/sglang/srt/speculative/eagle_utils.py
+2
-2
No files found.
python/sglang/srt/speculative/eagle_utils.py
View file @
1a9c2c92
...
...
@@ -27,14 +27,14 @@ from sglang.srt.utils import is_cuda, is_hip, next_power_of_2
if
is_cuda
():
from
sgl_kernel
import
(
fast_topk
,
top_k_renorm_prob
,
top_p_renorm_prob
,
tree_speculative_sampling_target_only
,
verify_tree_greedy
,
)
from
sgl_kernel.top_k
import
fast_topk
elif
is_hip
():
from
sgl_kernel
import
verify_tree_greedy
from
sgl_kernel
import
fast_topk
,
verify_tree_greedy
logger
=
logging
.
getLogger
(
__name__
)
...
...
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