[Bug]: VisualGen benchmark crashes on plain prompts that are valid JSON
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 15.2k
- フォーク
- 3k
- 平均マージ
- 2日 21時間
- マージ済み PR(30日)
- 477
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NVIDIA/TensorRT-LLM のほかの issue
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.x対応中かも @NimaVaziri が今日担当しました。 オープンPytorch
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NVIDIA/TensorRT-LLM#23406 ·
メンテナーはふだん 1 日以内に返信
-
Inference runtime Windows
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
NVIDIA/TensorRT-LLM#23394 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: MMLU subsampling changes when evaluators are interleaved対応中かも @LeNeLeNeWo が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NVIDIA/TensorRT-LLM#23273 ·
メンテナーはふだん 1 日以内に返信
-
Trace-replay Pareto window includes the drain when sessions finish out of admission order対応中かも @sbeierle が 3 日前に担当しました。 オープンTesting
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
NVIDIA/TensorRT-LLM#23077 ·
メンテナーはふだん 1 日以内に返信
-
LongBench V2 blog command breaks on inline comments after continuations対応中かも @ddlw が 25 日前に担当しました。 オープンDoc
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
NVIDIA/TensorRT-LLM#21879 ·
メンテナーはふだん 1 日以内に返信
NVIDIA/TensorRT-LLM の issue をすべて見る
似ている issue
-
[Resource]: Spaicelyオープンresource-submission validation-passed
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
hesreallyhim/awesome-claude-code#3875 · コメント 1 件 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
bvis/aegis-hass#725 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stampオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
#1643 unrecoverable split: 1 digest with a 403 — two earlier captures of the same URL are real 200sオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Robin-IA/Congressional-Letters-Dev#1684 ·
メンテナーはふだん 1 日以内に返信