[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:
co-authored by
PatchouliTaisa
Nick Hill
Xuanan Chen
Giancarlo Delfin
parent
dac35c5b66
commit
819852df6b
@@ -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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user