vllm - 💡(How to fix) Fix [Feature]: Support multi-image and interleaved multimodal custom datasets in bench serve

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Code Example

{
  "content": [
    {"type": "text", "text": "Please inspect this image."},
    {"type": "image_url", "image_url": {"url": "file:///path/to/a.jpg"}},
    {"type": "text", "text": "Now compare it with this one."},
    {"type": "image_url", "image_url": {"url": "file:///path/to/b.jpg"}}
  ],
  "output_tokens": 128
}
RAW_BUFFERClick to expand / collapse

🚀 The feature, motivation and pitch

We are using vllm bench serve to test our online multimodal services.

For image-based multimodal models, the current custom image dataset support has two limitations:

  1. If a custom sample contains multiple images in image_files, only the first image is used and the remaining images are discarded.
  2. The request format does not support arbitrary interleaving of text and images, such as text -> image -> text -> image -> text.

This makes it difficult to reproduce realistic production traffic, where requests may include multiple images, image comparison, document/page sequences, or instructions placed between images.

It would be useful if vllm bench serve could support a custom chat-style multimodal dataset format, where each JSONL row can provide OpenAI-compatible content parts directly, for example:

{
  "content": [
    {"type": "text", "text": "Please inspect this image."},
    {"type": "image_url", "image_url": {"url": "file:///path/to/a.jpg"}},
    {"type": "text", "text": "Now compare it with this one."},
    {"type": "image_url", "image_url": {"url": "file:///path/to/b.jpg"}}
  ],
  "output_tokens": 128
}

I would like to know whether the community considers this a reasonable direction for vllm bench serve, and whether there are any existing plans to support multi-image custom datasets and arbitrary interleaved multimodal content.

Alternatives

No response

Additional context

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING