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
019851d0
Unverified
Commit
019851d0
authored
Jun 10, 2025
by
Lianmin Zheng
Committed by
GitHub
Jun 10, 2025
Browse files
Fix eagle on AMD (#7051)
parent
2dae104d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
python/sglang/srt/speculative/eagle_utils.py
python/sglang/srt/speculative/eagle_utils.py
+3
-0
test/srt/test_bench_serving.py
test/srt/test_bench_serving.py
+1
-1
No files found.
python/sglang/srt/speculative/eagle_utils.py
View file @
019851d0
...
...
@@ -123,6 +123,9 @@ class EagleDraftInput:
cum_kv_seq_len
=
torch
.
zeros
((
bs
+
1
,),
dtype
=
torch
.
int32
,
device
=
"cuda"
)
cum_kv_seq_len
[
1
:]
=
torch
.
cumsum
(
paged_kernel_lens
,
dim
=
0
)
if
paged_kernel_lens_sum
is
None
:
paged_kernel_lens_sum
=
cum_kv_seq_len
[
-
1
]
kv_indices
=
torch
.
empty
(
paged_kernel_lens_sum
,
dtype
=
torch
.
int32
,
device
=
"cuda"
)
...
...
test/srt/test_bench_serving.py
View file @
019851d0
...
...
@@ -194,7 +194,7 @@ class TestBenchServing(CustomTestCase):
self
.
assertLess
(
res
[
"median_ttft_ms"
],
150
)
# TODO: not set yet, need AMD machine
else
:
self
.
assertLess
(
res
[
"median_ttft_ms"
],
9
4
)
self
.
assertLess
(
res
[
"median_ttft_ms"
],
9
8
)
self
.
assertLess
(
res
[
"median_itl_ms"
],
8
)
def
test_online_latency_eagle
(
self
):
...
...
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