Skip to main content

← All model recipe tasks

roberta 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
camembertCamembertForMaskedLM
Source: config.architectures
Metadata: config.json at a75967561c78
encoder_only_nlp
camembert-base
camembert-base-tp4
robertaRobertaForMaskedLM
Source: config.architectures
Metadata: config.json at e2da8e2f811d
encoder_only_nlp
roberta-base
roberta-base-tp4
roberta-large
roberta-large-tp4
xlm-robertaXLMRobertaForMaskedLM
Source: config.architectures
Metadata: config.json at e73636d4f797
encoder_only_nlp
xlm-roberta-base
xlm-roberta-base-tp4

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
camembert-basealmanach/camembert-basefp16; single devicecamembert-basetests/e2e/models/roberta/manifests/camembert-base.json
camembert-base-tp4almanach/camembert-basefamily default; TP4camembert-base-tp4tests/e2e/models/roberta/manifests/camembert-base-tp4.json
roberta-baseFacebookAI/roberta-basefp16; single deviceroberta-basetests/e2e/models/roberta/manifests/roberta-base.json
roberta-base-tp4FacebookAI/roberta-basefamily default; TP4roberta-base-tp4tests/e2e/models/roberta/manifests/roberta-base-tp4.json
roberta-largeFacebookAI/roberta-largefp16; single deviceroberta-largetests/e2e/models/roberta/manifests/roberta-large.json
roberta-large-tp4FacebookAI/roberta-largefamily default; TP4roberta-large-tp4tests/e2e/models/roberta/manifests/roberta-large-tp4.json
xlm-roberta-baseFacebookAI/xlm-roberta-basefp16; single devicexlm-roberta-basetests/e2e/models/roberta/manifests/xlm-roberta-base.json
xlm-roberta-base-tp4FacebookAI/xlm-roberta-basefamily default; TP4xlm-roberta-base-tp4tests/e2e/models/roberta/manifests/xlm-roberta-base-tp4.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 encode

Return the encoder hidden-state representation for text.

Declared recipes: camembert-base, camembert-base-tp4, roberta-base, roberta-base-tp4, roberta-large, roberta-large-tp4, xlm-roberta-base, xlm-roberta-base-tp4

trtmc encode <bundle.bundle> --prompt "<text>"
Supported input or optionRequirementRuntime behavior
--prompt <TEXT>RequiredText input passed to the encoder.
Code basis

Runtime provider: roberta

  • include/trtmc/pipeline.h
  • src/cli/main.cpp
  • tests/e2e/models/roberta/manifests/camembert-base-tp4.json
  • tests/e2e/models/roberta/manifests/camembert-base.json
  • tests/e2e/models/roberta/manifests/roberta-base-tp4.json
  • tests/e2e/models/roberta/manifests/roberta-base.json
  • tests/e2e/models/roberta/manifests/roberta-large-tp4.json
  • tests/e2e/models/roberta/manifests/roberta-large.json
  • tests/e2e/models/roberta/manifests/xlm-roberta-base-tp4.json
  • tests/e2e/models/roberta/manifests/xlm-roberta-base.json

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.