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
8e95b5e2
Commit
8e95b5e2
authored
Aug 10, 2025
by
gaoqiong
Browse files
Merge branch 'v0.9.2-dev-wm' into 'v0.9.2-dev'
[fix]修复v1 mtp接受率低的问题 See merge request dcutoolkit/deeplearing/vllm!174
parents
dea49b15
3dad13fb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
+13
-7
vllm/config.py
vllm/config.py
+2
-2
vllm/v1/attention/backends/mla/common.py
vllm/v1/attention/backends/mla/common.py
+8
-5
vllm/v1/attention/backends/utils.py
vllm/v1/attention/backends/utils.py
+2
-0
vllm/v1/spec_decode/eagle.py
vllm/v1/spec_decode/eagle.py
+1
-0
No files found.
vllm/config.py
View file @
8e95b5e2
...
@@ -4106,7 +4106,7 @@ class CompilationConfig:
...
@@ -4106,7 +4106,7 @@ class CompilationConfig:
are always used, it can set this to False. Otherwise, it should
are always used, it can set this to False. Otherwise, it should
set this to True, and the compiler will copy the input to an
set this to True, and the compiler will copy the input to an
internally managed buffer. Default is False."""
internally managed buffer. Default is False."""
full_cuda_graph
:
bool
=
Tru
e
full_cuda_graph
:
bool
=
Fals
e
"""whether to use a full cuda graph for the entire forward pass rather than
"""whether to use a full cuda graph for the entire forward pass rather than
splitting certain operations such as attention into subgraphs. Thus this
splitting certain operations such as attention into subgraphs. Thus this
flag cannot be used together with splitting_ops. This may provide
flag cannot be used together with splitting_ops. This may provide
...
...
vllm/v1/attention/backends/mla/common.py
View file @
8e95b5e2
...
@@ -546,6 +546,9 @@ class MLACommonMetadataBuilder(AttentionMetadataBuilder[M]):
...
@@ -546,6 +546,9 @@ class MLACommonMetadataBuilder(AttentionMetadataBuilder[M]):
device
=
self
.
runner
.
device
device
=
self
.
runner
.
device
block_table
=
self
.
block_table
block_table
=
self
.
block_table
block_table_tensor
=
block_table
.
get_device_tensor
()[:
num_reqs
]
block_table_tensor
=
block_table
.
get_device_tensor
()[:
num_reqs
]
slot_mapping
=
common_attn_metadata
.
slot_mapping
if
slot_mapping
is
None
:
block_table
.
slot_mapping
[:
num_actual_tokens
].
copy_
(
block_table
.
slot_mapping
[:
num_actual_tokens
].
copy_
(
block_table
.
slot_mapping_cpu
[:
num_actual_tokens
],
block_table
.
slot_mapping_cpu
[:
num_actual_tokens
],
non_blocking
=
True
)
non_blocking
=
True
)
...
...
vllm/v1/attention/backends/utils.py
View file @
8e95b5e2
...
@@ -45,6 +45,8 @@ class CommonAttentionMetadata:
...
@@ -45,6 +45,8 @@ class CommonAttentionMetadata:
"""(batch_size,), record the rejected tokens number in cpu and gpu"""
"""(batch_size,), record the rejected tokens number in cpu and gpu"""
num_speculative_tokens
:
int
=
0
num_speculative_tokens
:
int
=
0
"""Number of speculative tokens"""
"""Number of speculative tokens"""
slot_mapping
:
torch
.
Tensor
=
None
"""(batch_size, seq_len), slot mapping"""
M
=
TypeVar
(
"M"
)
M
=
TypeVar
(
"M"
)
...
...
vllm/v1/spec_decode/eagle.py
View file @
8e95b5e2
...
@@ -159,6 +159,7 @@ class EagleProposer:
...
@@ -159,6 +159,7 @@ class EagleProposer:
num_actual_tokens
=
num_tokens
,
num_actual_tokens
=
num_tokens
,
max_query_len
=
max_query_len
,
max_query_len
=
max_query_len
,
num_rejected_tokens
=
num_rejected_tokens
,
num_rejected_tokens
=
num_rejected_tokens
,
slot_mapping
=
target_slot_mapping
)
)
assert
self
.
runner
is
not
None
assert
self
.
runner
is
not
None
...
...
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