[Bug]: trtllm-bench reads past --num_requests and can block on pipes
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 25/100
調査の方向性
Start by reading create_dataset_from_stream in tensorrt_llm/bench/utils/data.py and the throughput and low-latency benchmark callers described in the issue. Check how the loader orders its request limit check and readline() call, then run the supplied StringIO reproduction and the relevant loader tests. Done means it returns after collecting the requested record, leaves the next record unread, and does not block on an open pipe; linked pull request #23245 is already open.
索引モデルが issue の本文から書いたものです。
説明
System Info
TensorRT-LLM main at ef375f87565b89a5818e705c735ec59a182efb86. Reproduced on macOS ARM64 with Python 3.12 using the actual CPU dataset loader and Pydantic request models. Native package initialization was bypassed locally. No GPU, model weights, tokenizer encoding, or live inference is needed to exercise the loader.
Reproduction
The throughput and low-latency benchmark commands use create_dataset_from_stream to load their --dataset with the configured --num_requests. Run this in a TensorRT-LLM Python environment:
from io import StringIO
from tensorrt_llm.bench.utils.data import create_dataset_from_stream
first = '{"task_id":0,"input_ids":[1,2],"output_tokens":8}\n'
second = '{"task_id":1,"input_ids":[1,2],"output_tokens":8}\n'
stream = StringIO(first + second)
metadata, requests = create_dataset_from_stream(None, stream, num_requests=1)
assert metadata.num_requests == 1
assert [request.task_id for request in requests] == [0]
assert stream.readline() == second
Expected behavior
Stop reading as soon as the requested number of records has been collected. The second record should remain unread.
Actual behavior
The final assertion fails because the second record was consumed and the stream is at EOF. In a separate OS-pipe reproduction, the loader attempted a second read after receiving its only requested record and remained blocked until the still-open writer was closed.
Additional notes
The loop checks the result of stream.readline() before checking the request limit. If the check happens first, the loader can return without waiting for an unneeded row or EOF. Searches for create_dataset_from_stream plus readline, and for benchmark stdin hangs involving num_requests, did not find an existing issue or fix.
OpenAI Codex assisted with finding and validating this issue.
- 主要言語
- 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 日以内に返信