[Fix] Remove unnecessary NPU synchronization in MTP proposer (#4325)
### What this PR does / why we need it? Remove unnecessary NPU synchronization in MTP proposer to improve performances. Removing this synchronization point improves pipeline efficiency by allowing for better overlap between CPU and NPU operations. A more proper one is already implemented in #4233 ### Does this PR introduce _any_ user-facing change? None. ### How was this patch tested? None. - vLLM version: v0.11.0 - vLLM main: https://github.com/vllm-project/vllm/commit/2918c1b49c88c29783c86f78d2c4221cb9622379 Signed-off-by: Yizhou Liu <liu_yizhou@outlook.com>
This commit is contained in:
1 parent
8c87a3b053
commit
97999347c8
1 file changed
-1
@@ -886,7 +886,6 @@ class MtpProposer(Proposer):
|
||||
attn_metadata_i.decode.max_seq_lens = min(
|
||||
attn_metadata_i.decode.max_seq_lens,
|
||||
self.runner.model_config.max_model_len)
|
||||
torch.npu.synchronize()
|
||||
|
||||
# mtp>1: [batch_size, k]
|
||||
draft_token_ids = torch.stack(draft_token_ids_list, dim=1)
|
||||
|
||||
Reference in new issue
Block a user