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

Aperta
#23,070 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@HaoyangPing0324 ci sta già lavorando.

Dal 30/11/2026.

  • #23072 di @HaoyangPing0324 — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
data

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Python
Stelle
15.2k
Fork
3k
Merge medio
2g 21h
PR unite (30g)
477

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA/TensorRT-LLM

Tutte le issue di NVIDIA/TensorRT-LLM

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.