Bug: tools.model_benchmark uses hardcoded ':' for PYTHONPATH instead of os.pathsep
Maintainer thường phản hồi trong vòng 1 ngày
Một pull request liên quan đã được merge.
- #1862 của @mangeshraut712 — đã merge
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
The issue identifies tools/model_benchmark.py and tools/tests/test_model_benchmark.py. Read aiperf_command and the existing assertion, then check how the environment constructs PYTHONPATH and how the test splits it. Done means both use the platform path separator and the test passes on supported platforms.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Affected area
Validation or benchmarking
TensorRT-Model-Connect version
main (commit cd87bfc3)
Installation method
Other
Model and revision
not model-specific
Environment
OS: Windows / Linux
GPU: N/A
Driver: N/A
CUDA: N/A
TensorRT: N/A
Container image or package: Python 3.10+ (tools/model_benchmark.py)
Minimal reproducer
import argparse
from pathlib import Path
from tools.model_benchmark import aiperf_command
args = argparse.Namespace(
aiperf_python=Path("python"),
environment=Path("env.yaml"),
out_root=Path("out"),
model=[],
shard=None,
rerun=False,
)
command, env = aiperf_command(args)
print("PYTHONPATH:", env["PYTHONPATH"])
Observed behavior
In tools/model_benchmark.py (line 47), aiperf_command constructs PYTHONPATH using a hardcoded colon separator:
return command, {"PYTHONPATH": ":".join(str(REPOSITORY / root) for root in roots)}
On Windows platforms, filesystem paths contain drive letters (e.g. C:...) and Python parses PYTHONPATH using os.pathsep (';'). Joining paths with ':' breaks the path search list, preventing Python from splitting the directories properly and causing ModuleNotFoundError: No module named 'trtmc_aiperf_qual' when running the benchmark.
Expected behavior
tools/model_benchmark.py should use os.pathsep.join(...) instead of a hardcoded ":" so that PYTHONPATH is formatted portably across all supported operating systems.
In tools/tests/test_model_benchmark.py (line 19), the assertion should also be updated to split on os.pathsep instead of hardcoded ":".
Relevant logs
ModuleNotFoundError: No module named 'trtmc_aiperf_qual'
Submission checks
- I searched open and closed issues and found no duplicate.
- This is not a security vulnerability.
- I removed secrets, credentials, private URLs, and restricted artifacts.
- Ngôn ngữ chính
- Python
- Star
- 283
- Fork
- 75
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 227
Chuẩn bị môi trường
- Có Dockerfile hoặc 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-Model-Connect
-
Docs: ITrtModule::forward() output-buffer lifetime and dtype contract are undocumentedCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
NVIDIA/TensorRT-Model-Connect#1126 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
NVIDIA/TensorRT-Model-Connect#1929 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
question
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
NVIDIA/TensorRT-Model-Connect#1928 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
AI bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
NVIDIA/TensorRT-Model-Connect#1922 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug: TensorRT 11.4 fails to build IAttention followed by FP8 Q/DQ, breaking FLUX.2 FP8Có thể đã có người làm @chaofengw-nv đã nhận hôm nay. Đang mởAI bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
NVIDIA/TensorRT-Model-Connect#1920 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của NVIDIA/TensorRT-Model-Connect
Issue tương tự
-
good first issue test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
ANCORATE/EncryptHome#8 ·
-
PluginProvider.storeInstance races and clobbers the dedup cache for concurrent loadsCó thể đã có người làm @Wilson0511 đã nhận hôm nay. Đang mởneeds-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Bug: failed Together chat calls do not record operation duration or error.typeCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
community documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100