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

Đang mở
#23,070 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@HaoyangPing0324 đang làm issue này rồi.

Từ ngày 30/11/2026.

  • #23072 của @HaoyangPing0324 — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
data

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Python
Star
15.2k
Fork
3k
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
477

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/TensorRT-LLM

Tất cả issue của NVIDIA/TensorRT-LLM

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.