Skip to main content

Run Inference

Inspect the bundle, then call the task surface declared by its model manifest. The CLI is task-oriented; it is not one generic tensor runner.

TaskCommandResult
Text or vision-language generationtrtmc runGenerated text
Encoder featurestrtmc encodeFeature values
Embedding / rerankingtrtmc embed, trtmc rerankVector or score
Speech recognitiontrtmc transcribeTranscript and optional timestamps
Text-to-audio / speech-to-speechtrtmc generate-audio, trtmc speakAudio file or stream
Image/video diffusiontrtmc generate-videoOne or more frames
Segmentation / classificationtrtmc segment, segment-prompted, classifyMask, prompted result, or class scores
Time-series / neural operatortrtmc solveNumeric output vector

Example deterministic text request:

trtmc run qwen3-0.6b.bundle \
--prompt "What is the capital of France? Answer in one word." \
--max-new-tokens 10 \
--greedy

Shared loading controls such as --backend-dir, --model-plugin-dir, --runtime-cache, --config, and --set have execution-path-specific meaning. Read Configure Runtime Behavior before using one as a generic fix.