mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-01-11 03:54:28 +08:00
[Spec Decode] Fix offline spec_decode.py (#24257)
Signed-off-by: Ekagra Ranjan <3116519+ekagra-ranjan@users.noreply.github.com> Co-authored-by: Roger Wang <hey@rogerw.io>
This commit is contained in:
parent
43d9ad03ba
commit
41183c1fe0
@ -1310,6 +1310,10 @@ def add_dataset_parser(parser: FlexibleArgumentParser):
|
||||
|
||||
|
||||
def get_samples(args, tokenizer) -> list[SampleRequest]:
|
||||
|
||||
if not hasattr(args, "request_id_prefix"):
|
||||
args.request_id_prefix = ""
|
||||
|
||||
if args.dataset_name == "custom":
|
||||
dataset = CustomDataset(dataset_path=args.dataset_path)
|
||||
input_requests = dataset.sample(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user