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

Abierto
#23,070 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@HaoyangPing0324 ya está trabajando en esto.

Desde el 30/11/2026.

  • #23072 de @HaoyangPing0324 — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
65/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python
Área
data

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Python
Estrellas
15.2k
Forks
3k
Merge medio
2 d 21 h
PR fusionados (30 d)
477

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de NVIDIA/TensorRT-LLM

Todos los issues de NVIDIA/TensorRT-LLM

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.