Skip to main content

← All model recipe tasks

phi4_multimodal model family

Tasks

Supported architectures and task heads

The Hugging Face values below are copied from checkpoint metadata at the recorded revision. The TRTMC task contract comes from the exact E2E recipe. Architecture identity selects or describes a source graph; it does not imply that TRTMC reproduces every Hugging Face head with the same model_type. For example, an encoder recipe may consume the base model and intentionally return hidden states instead of the checkpoint's pretraining or classification logits.

HF model_typeHF architecture / pipeline classTRTMC task contractExact recipe profiles
phi4mmPhi4MMForCausalLM
Source: config.architectures
Metadata: config.json at 93f923e1a772
vision_language_generation
phi4-multimodal

Declared recipes

Each row comes from a model-owned E2E manifest. It declares a test recipe; it is not a live pass receipt for every hardware target.

RecipeExact Hugging Face checkpointTaskBuild configurationDeclared E2E casesManifest
phi4-multimodalmicrosoft/Phi-4-multimodal-instructfp16; single devicephi4-multimodaltests/e2e/models/phi4_multimodal/manifests/phi4-multimodal.json

Family-owned configuration

This family does not declare a family-owned --set namespace. Use the explicit CLI options shown below and the shared configuration namespaces documented in Configure Runtime Behavior.

Family-specific CLI contracts

Inputs and options below are filtered by the declared E2E task and the methods and configuration fields used by that family's native runtime implementation. The global CLI parser accepts a wider union of flags; flags absent here are not declared for this family.

trtmc run

Generate text from an image and text prompt.

Declared recipes: phi4-multimodal

trtmc run <bundle.bundle> --prompt "<text>" --image <input.png> [generation options]
Supported input or optionRequirementRuntime behavior
--prompt <TEXT>RequiredText prompt for the vision-language recipe.
--image <PATH>Required by declared image recipesImage input consumed by the runtime image-aware generate overload.
--max-new-tokens <N>OptionalLimit the number of generated tokens or audio frames.
--temperature <F>OptionalSet sampling temperature.
--top-k <N>OptionalRestrict sampling to the top K tokens.
--top-p <F>OptionalEnable nucleus sampling at probability P.
--min-p <F>OptionalFilter tokens below min-p times the maximum probability.
--seed <N>OptionalSet the sampling or diffusion seed.
--greedyOptionalSelect deterministic greedy decoding by setting temperature to zero.
Code basis

Runtime provider: phi4_multimodal

  • src/cli/main.cpp
  • include/trtmc/pipeline.h
  • tests/e2e/models/phi4_multimodal/manifests/phi4-multimodal.json
  • src/runtime/models/phi4_multimodal/pipeline.cpp
  • src/runtime/models/phi4_multimodal/pipeline.h
  • src/runtime/models/phi4_multimodal/sampler.cpp

Bundle lifecycle commands

These commands apply to every declared recipe in this family; they do not add task inputs or model capabilities.

trtmc build

Build one exact checkpoint into a TensorRT-Model-Connect bundle.

trtmc build <hf-id> --output <bundle.bundle>

trtmc inspect

Inspect bundle metadata, runtime identity, and packaged sections.

trtmc inspect <bundle.bundle>

See the CLI Reference for all options and limitations.