[ModelRunner V2] Speculative Decoding NGram GPU Implementations (#40704)

Signed-off-by: PatchouliTaisa <patchychen@tencent.com>
Signed-off-by: PatchouliTaisa <pyramkar@gmail.com>
Signed-off-by: Nick Hill <nickhill123@gmail.com>
Signed-off-by: Xuanan Chen <xuananchenc@nvidia.com>
Co-authored-by: PatchouliTaisa <patchychen@tencent.com>
Co-authored-by: Nick Hill <nickhill123@gmail.com>
Co-authored-by: Xuanan Chen <xuananchenc@nvidia.com>
Co-authored-by: Giancarlo Delfin <32987265+TheEpicDolphin@users.noreply.github.com>
This commit is contained in:
PatchyTIS
2026-10-06 13:32:59 -07:00
committed by GitHub
co-authored by PatchouliTaisa Nick Hill Xuanan Chen Giancarlo Delfin
parent dac35c5b66
commit 819852df6b
14 changed files with 687 additions and 43 deletions
+3 -2
View File
@@ -922,12 +922,13 @@ def test_dsa_models_select_matching_mtp(model_type, expected_architecture):
assert hf_config.architectures == [expected_architecture]
def test_v2_model_runner_supports_extract_hidden_states():
@pytest.mark.parametrize("method", ["extract_hidden_states", "ngram", "ngram_gpu"])
def test_v2_model_runner_supports_speculative_method(method):
config = VllmConfig()
config.speculative_config = cast(
SpeculativeConfig,
SimpleNamespace(
method="extract_hidden_states",
method=method,
parallel_drafting=False,
enable_adaptive_verification=False,
),