跳到正文
NVIDIA Developer Blog· Michelle Horton·· 2026-07-23AI 评分20

如何在 Python 或 C++ 中让长时间运行的 NVIDIA TensorRT 引擎构建可观测、可取消

Make Long-Running NVIDIA TensorRT Engine Builds Observable and Cancelable in Python or C++

AI 导读

NVIDIA TensorRT 引擎构建可能耗时数秒到数分钟,大型强类型模型、深度 tactic 搜索以及全新 GPU SKU 上的冷 timing cache 会让开发者、终端用户或 AI 智能体面对卡死的终端,无从判断该等待、重试还是终止进程。多数 TensorRT 集成在构建期间不报告任何信息,也不提供提前中止的方式。

正文

Decorative image.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...Decorative image.

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.

Source

来源:NVIDIA Developer Blog · developer.nvidia.com