[Bug] trtllm-bench real-dataset treats a configured image column as text

Open
#23,070 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@HaoyangPing0324 is already working on this.

Since Nov 30, 2026.

  • #23072 by @HaoyangPing0324 — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
data

Research direction

Start by locating the trtllm-bench prepare-dataset real-dataset path and the modality check that recognizes only image, image_1 and video; trace how --dataset-image-key is passed into row processing. Reproduce with the VisOnlyQA command in the issue and inspect the failing text branch. Done when the configured decoded_image column is processed without the text branch raising the missing-key error and each output JSONL entry includes its prompt, 128 output tokens and a media path.

Written by the indexing model from the issue text.

Description

bug Multimodal
System Info

TensorRT-LLM main at 032de8cef026. The dataset preparation path runs on CPU. Verified with Python 3.12, datasets 4.8.3, Transformers 5.1.0 and Pillow 12.1.1.

Who can help?

No response

Information
  • The official example scripts
  • My own modified scripts
Tasks
  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)
Reproduction

Prepare multimodal benchmark requests from VisOnlyQA. Its published schema includes a PIL image in decoded_image and text in prompt_no_reasoning. Choose any locally available HF tokenizer supported by the prepare-dataset command and run:

trtllm-bench --model "$model" prepare-dataset --output ./visonlyqa.jsonl real-dataset \
  --dataset-name ryokamoi/VisOnlyQA_Eval_Real_v1.1 --dataset-split geometry__triangle \
  --dataset-image-key decoded_image --dataset-prompt-key prompt_no_reasoning \
  --output-len-dist 128,0 --num-requests 3

The offline reproduction used the exact geometry__triangle Parquet at dataset revision 3747d1370919, loaded as a local streaming split, and invoked the prepare-dataset Click command directly.

Expected behavior

Each JSONL entry contains its prompt, 128 output tokens and a media path for the decoded image.

actual behavior

Processing stops at the first row. The text branch calls get_input and raises ValueError: Dataset … does not have key 'None' even though the requested image column exists. The modality check recognizes only the literal column names image, image_1 and video.

additional notes

Dataset schema

Before submitting a new issue...
  • Make sure you already searched for relevant issues, and checked the documentation and examples for answers to frequently asked questions.
Dominant language
Python
Stars
15.2k
Forks
3k
Avg merge
2d 21h
Merged PRs (30d)
477

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NVIDIA/TensorRT-LLM

All issues in NVIDIA/TensorRT-LLM

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.