[eagle3][pcp] fix bug for eagle3 and cp enable (#7309)
### What this PR does / why we need it? This PR fixes the bug for eagle3 and cp enable introduced by the parallel speculative inference PR. ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? tests and ut - vLLM version: v0.17.0 - vLLM main: https://github.com/vllm-project/vllm/commit/4034c3d32e30d01639459edd3ab486f56993876d --------- Signed-off-by: lilinsiman <lilinsiman@gmail.com>
This commit is contained in:
1 parent
4e62a2ae15
commit
8f278fc101
2 files changed
+105
-63
No files matched your search
@@ -29,6 +29,10 @@ prompts = [
|
||||
"The president of United States is", "AI future is"
|
||||
]
|
||||
model = "wemaster/deepseek_mtp_main_random_bf16"
|
||||
model_eagle3 = {
|
||||
"main": "Qwen/Qwen3-8B",
|
||||
"spec": "RedHatAI/Qwen3-8B-speculator.eagle3",
|
||||
}
|
||||
|
||||
@wait_until_npu_memory_free()
|
||||
def test_pcp_dcp_mtp1_eager():
|
||||
@@ -141,3 +145,24 @@ def test_dcp_mtp3_full_graph():
|
||||
async_scheduling=False,
|
||||
) as runner:
|
||||
runner.generate_greedy(prompts, 32)
|
||||
|
||||
|
||||
@wait_until_npu_memory_free()
|
||||
def test_pcp_eagle3_eager():
|
||||
with VllmRunner(
|
||||
model_eagle3["main"],
|
||||
max_model_len=1024,
|
||||
tensor_parallel_size=2,
|
||||
enforce_eager=True,
|
||||
prefill_context_parallel_size=2,
|
||||
decode_context_parallel_size=1,
|
||||
max_num_batched_tokens=1024,
|
||||
block_size=128,
|
||||
speculative_config={
|
||||
"num_speculative_tokens": 3,
|
||||
"method": "eagle3",
|
||||
"model": model_eagle3["spec"]
|
||||
},
|
||||
async_scheduling=False,
|
||||
) as runner:
|
||||
runner.generate_greedy(prompts, 32)
|
||||
Reference in new issue
Block a user