如何在 Python 或 C++ 中让长时间运行的 NVIDIA TensorRT 引擎构建可观测、可取消
Make Long-Running NVIDIA TensorRT Engine Builds Observable and Cancelable in Python or C++
NVIDIA TensorRT 引擎构建可能耗时数秒到数分钟,大型强类型模型、深度 tactic 搜索以及全新 GPU SKU 上的冷 timing cache 会让开发者、终端用户或 AI 智能体面对卡死的终端,无从判断该等待、重试还是终止进程。多数 TensorRT 集成在构建期间不报告任何信息,也不提供提前中止的方式。
A TensorRT engine build can take seconds to many minutes. Large strongly typed models, deep tactic search, and a cold timing cache on a brand-new GPU SKU can...
A TensorRT engine build can take seconds to many minutes. Large strongly typed models, deep tactic search, and a cold timing cache on a brand-new GPU SKU can leave developers, end users, or AI agents staring at a frozen terminal with no idea whether to wait, retry, or kill the process. Most NVIDIA TensorRT integrations report nothing during a build or provide no way to abort early.
来源:NVIDIA Developer Blog · developer.nvidia.com