TensorRT Engine Generation Configuration#

Parameter

Type

Description

Default

results_dir

string

Path to where all the assets generated from a task are stored.

null

gpu_id

int

The index of the GPU to build the TensorRT engine.

0

onnx_file

string

Path to the ONNX model file.

Required

trt_engine

string

Path to the TensorRT engine generated should be stored. This only works with tao-deploy.

Required

timing_cache

string

Path to a TensorRT timing cache that speeds up engine generation. This will be created/read/updated.

null

batch_size

int

The batch size of the input Tensor for the engine. A value of -1 implies dynamic tensor shapes.

-1

verbose

bool

Flag to enable verbose TensorRT logging.

false

tensorrt

collection

TensorRT Builder Configuration

TensorRT Builder Configuration#

Parameter

Type

Description

Default

workspace_size

int

The size (in MB) of the workspace TensorRT has to run its optimization tactics and generate the TensorRT engine.

1024

min_batch_size

int

The minimum batch size in the optimization profile for the input tensor of the TensorRT engine.

1

opt_batch_size

int

The optimum batch size in the optimization profile for the input tensor of the TensorRT engine.

1

max_batch_size

int

Maximum batch size in the TensorRT optimization profile.

16

layers_precision

list

The list to specify layer precision.

[]

data_type

categorical

TensorRT precision: FP32 or FP16. FP16 automatically keeps numerically sensitive InternVideo2 vision block normalization reductions in FP32. Valid options: fp32, fp16.

fp32

strongly_typed

bool

Build a strongly-typed TensorRT engine that honors the explicit precision of a mixed-precision ONNX (for example, from ModelOpt AutoCast, which keeps the vision RMSNorm in FP32). Required for a pin- free FP16 engine: a weakly-typed FP16 build re-lowers the RMSNorm reduction and collapses accuracy. Use with data_type: fp32 (graph carries the precision).

false

Evaluation Dataset Configuration#

Parameter

Type

Description

Default

gt_queries

string

Explicit-relevance evaluation file (for example, domain_test_*.json) with gallery and queries (each query carries a text prompt, a slice label, and a list of relevant chunk identifiers).

Required

metadata

string

Nested per-video chunk metadata JSON used to resolve each gallery chunk_id to its video path and time window.

Required

video_root

string

Optional root prepended to relative video paths.

null

path_prefix_mapping

collection

Optional mapping from original path prefixes to local prefixes, applied before video_root.

{}

Evaluation and Inference Configuration#

Parameter

Type

Description

Default

trt_engine

string

Path to the combined TensorRT engine.

null

batch_size

int

Batch size for embedding extraction.

8

results_dir

string

Directory to save results.

null

text_file

string

Optional text file (one prompt per line) for text-embedding inference.

null