[Bug]: VisualGen benchmark crashes on plain prompts that are valid JSON
Maintainer thường phản hồi trong vòng 1 ngày
@JunkaiWang-TheoPhy đang làm issue này rồi.
Từ ngày 2/12/2026.
- #23247 của @JunkaiWang-TheoPhy — đang mở
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start with tensorrt_llm/bench/benchmark/visual_gen_utils.py and inspect load_visual_gen_prompts, which the issue names and reproduces without starting the engine. Check the related prompt loading tests, if present, for plain text and JSONL object cases. Done means the documented plain-text prompt 2026 loads literally, while JSONL objects with text or prompt still extract those fields; pull request #23247 is already open.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
System Info
Reproduced on TensorRT-LLM main ef375f87565b89a5818e705c735ec59a182efb86 with Python 3.12 on macOS ARM64. The prompt loader only needs CPU; the local test bypassed unrelated native package initialization. No GPU, model weights, or inference were used.
Reproduction
The offline trtllm-bench visual-gen command documents --prompt_file as accepting one plain-text prompt per line. A plain prompt such as 2026 causes loading to fail. The production loader can be reproduced without starting the engine:
from pathlib import Path
from tempfile import TemporaryDirectory
from tensorrt_llm.bench.benchmark.visual_gen_utils import load_visual_gen_prompts
with TemporaryDirectory() as tmp:
prompts = Path(tmp) / "prompts.txt"
prompts.write_text("2026\n", encoding="utf-8")
requests = load_visual_gen_prompts(None, str(prompts), num_prompts=1)
assert [request.prompt for request in requests] == ["2026"]
Expected behavior
Load the line as the literal text prompt 2026. JSONL objects containing text or prompt should still extract those fields.
Actual behavior
Loading raises AttributeError: 'int' object has no attribute 'get'. The same failure occurs for a plain-text line that is a valid JSON null, quoted string, or array. As a result, the benchmark never begins.
Additional notes
The loader uses json.loads to support JSONL, then assumes that any decoded value is an object. The empty-file fix in #17733 handles a different path after prompt extraction. Searches for the loader name and this prompt-file error did not find an equivalent fix.
OpenAI Codex assisted with the reproduction.
- 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
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.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NVIDIA/TensorRT-LLM
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.xCó thể đã có người làm @NimaVaziri đã nhận hôm nay. Đang mởPytorch
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NVIDIA/TensorRT-LLM#23406 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Inference runtime Windows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
NVIDIA/TensorRT-LLM#23394 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: MMLU subsampling changes when evaluators are interleavedCó thể đã có người làm @LeNeLeNeWo đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NVIDIA/TensorRT-LLM#23273 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Trace-replay Pareto window includes the drain when sessions finish out of admission orderCó thể đã có người làm @sbeierle đã nhận 3 ngày trước. Đang mởTesting
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
NVIDIA/TensorRT-LLM#23077 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
LongBench V2 blog command breaks on inline comments after continuationsCó thể đã có người làm @ddlw đã nhận 25 ngày trước. Đang mởDoc
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
NVIDIA/TensorRT-LLM#21879 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của NVIDIA/TensorRT-LLM
Issue tương tự
-
[Resource]: SpaicelyĐang mởresource-submission validation-passed
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
hesreallyhim/awesome-claude-code#3875 · 1 bình luận ·
-
[Bug]: Ajax Pro login issueĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
bvis/aegis-hass#725 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stampĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
#1643 unrecoverable split: 1 digest with a 403 — two earlier captures of the same URL are real 200sĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Robin-IA/Congressional-Letters-Dev#1684 ·
Maintainer thường phản hồi trong vòng 1 ngày