Bug: tools.model_benchmark uses hardcoded ':' for PYTHONPATH instead of os.pathsep
Los mantenedores suelen responder en 1 día
Ya se ha fusionado un pull request relacionado.
- #1862 de @mangeshraut712 — fusionado
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 25/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 283
- Forks
- 75
- Merge medio
- 1 d 18 h
- PR fusionados (30 d)
- 220
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NVIDIA/TensorRT-Model-Connect
-
Docs: ITrtModule::forward() output-buffer lifetime and dtype contract are undocumentedQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
NVIDIA/TensorRT-Model-Connect#1126 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Bug: trtmc-aiperf-qual run exits 1 when Acc passes and Perf is measuredPosiblemente ocupada @JiaxinD la tomó hace 1 día. Abiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 20/100
NVIDIA/TensorRT-Model-Connect#1897 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Feature: Support LeRobot GR00T N1.7 policies with native Model Connect bundlesPosiblemente ocupada @chaofengw-nv la tomó hace 1 día. AbiertoAI enhancement model-onboarding
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
NVIDIA/TensorRT-Model-Connect#1881 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Feature: Support LeRobot Pi 0.5 policies with native Model Connect bundlesPosiblemente ocupada @chaofengw-nv la tomó hace 1 día. AbiertoAI enhancement model-onboarding
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
NVIDIA/TensorRT-Model-Connect#1880 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 6/100
NVIDIA/TensorRT-Model-Connect#1700 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de NVIDIA/TensorRT-Model-Connect
Issues similares
-
infrastructure
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
NatLabRockies/H2Integrate#977 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
topoteretes/cognee#6470 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
area:docs priority:p2 type:docs wave:9
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
jejjohnson/radtrax#293 ·
Los mantenedores suelen responder en 1 día
-
bug core plugins
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
bunkerity/bunkerweb#4121 · 1 comentario ·
Los mantenedores suelen responder en 1 día