TensorRTProvider#
- class openstef_foundation_models.inference.TensorRTProvider(**data: Any) None[source]#
Bases:
BaseConfigThe TensorRT execution provider (NVIDIA, ahead-of-time engine build).
FP16 with a persistent engine cache is the recommended production path on NVIDIA hardware: the first run pays the engine-build cost, subsequent runs load the cached engine.
- Parameters:
data (
Any)
- engine_cache_dir: Path | None#
Directory to persist built TensorRT engines. When set, engine caching is enabled.