Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
b4610c06
Commit
b4610c06
authored
Sep 14, 2025
by
王敏
Browse files
[fix]修复eagle 创建cu_num_tokens类型错误问题
parent
2071c380
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/v1/spec_decode/eagle.py
vllm/v1/spec_decode/eagle.py
+1
-1
No files found.
vllm/v1/spec_decode/eagle.py
View file @
b4610c06
...
...
@@ -438,7 +438,7 @@ class EagleProposer:
# [batch_size]
num_accepted_tokens_tensor
:
torch
.
Tensor
,
)
->
tuple
[
torch
.
Tensor
,
torch
.
Tensor
]:
cu_num_tokens
=
torch
.
arange
(
cu_target_query_lens
.
shape
[
0
],
device
=
cu_target_query_lens
.
device
)
cu_num_tokens
=
torch
.
arange
(
cu_target_query_lens
.
shape
[
0
],
device
=
cu_target_query_lens
.
device
,
dtype
=
torch
.
int32
)
token_indices
=
num_accepted_tokens_tensor
+
cu_target_query_lens
[:
-
1
]
return
cu_num_tokens
,
token_indices
...
...
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