diff --git a/vllm/benchmarks/datasets.py b/vllm/benchmarks/datasets.py index aa3ea1be43454..49ee0faf049d1 100644 --- a/vllm/benchmarks/datasets.py +++ b/vllm/benchmarks/datasets.py @@ -1908,8 +1908,7 @@ def get_samples(args, tokenizer: TokenizerLike) -> list[SampleRequest]: try: # Enforce endpoint compatibility for multimodal datasets. - backend = getattr(args, "backend", "openai-chat") - if args.dataset_name == "random-mm" and backend not in ["openai-chat"]: + if args.dataset_name == "random-mm" and args.backend not in ["openai-chat"]: raise ValueError( "Multi-modal content (images) is only supported on " "'openai-chat' backend."