Model Families
A model family is one complete vertical slice under families/<family>/:
families/<family>/
support.py
model.py
requirements.txt # optional
runtime/CMakeLists.txt
runtime/*.cpp
tests/test_e2e.py
tests/manifests/*.json
tests/thresholds/*.json # optional
Discovery and build
support.py performs dependency-free exact matching of root model metadata and
declares the supported tasks plus default. It must not import the family build,
TensorRT, PyTorch, Transformers, or another family.
After exactly one match, the core imports only that family's model.py and
calls its plain build(request, writer) function. The family owns config and
weight interpretation, TensorRT graph topology, precision/quantization policy,
engine construction, and bundle-section semantics.
K2-Horizon-Uno task contract
IFM/K2-Horizon-7B-Uno is an adapter-only checkpoint. The independent
k2_horizon_uno family resolves its pinned IFM/K2-Horizon-7B base and
compiles the rank-128 conditional LoRA into one BF16 TensorRT engine. Build it
directly from the adapter ID:
python -m tensorrt_model_connect build IFM/K2-Horizon-7B-Uno \
--revision ec92bbd768f4a404319625204544782e3377bcd7 \
--precision bf16 \
-o k2-horizon-7b-uno.bundle
Run the qualified high-reasoning chat path with the family-owned linear mode:
trtmc run k2-horizon-7b-uno.bundle \
--runtime-root /opt/trtmc/lib \
--prompt "Reply with the word OK." \
--max-new-tokens 26 \
--temperature 0 \
--top-k 1 \
--generation-mode linear_spec_lora \
--block-length 8 \
--use-chat-template true \
--enable-thinking true
The initial runtime supports batch-one deterministic greedy generation with linear Psi-Spec and block lengths from 1 through 8. Block 8 is the qualified default. It also supports the pinned single-user, high-reasoning chat template and an autoregressive control mode. String prompts are currently limited to ASCII and fail closed before tokenization otherwise. Stochastic sampling, tree verification, batching, tensor parallelism, quantization, the 0.9B adapter, and long-context qualification remain outside this contract. The committed-token-per-forward receipt is an algorithmic diagnostic, not a wall-clock speedup claim.
Gemma4 Edge ONNX execution
Standalone Gemma4 text/media offload also maps the published 26B-A4B NVFP4 checkpoint on native SM12x, preserving its FP8 KV cache without calibration. Its build and text/image commands execute, but recorded MC/direct text/image divergence and an unavailable independent FP32 reference prevent an accuracy qualification claim. See the owning Gemma adapter notes for exact boundaries; quality failures do not disable executable requests.
Use trtmc gemma build MODEL -o model.bundle with the owning
family's options. trtmc gemma build --help works offline without
a checkpoint or GPU imports. This uses the existing
family CLI protocol, not an extension to the shared parser.
The Gemma family also owns explicit Gemma4-12B target/assistant MTP and Gemma4-12B/DSpark block7 execution through the optional pinned native Edge-LLM SDK. These are text-only FP16 paired profiles, qualified on SM80; selecting a Gemma4 checkpoint alone does not enable them or claim standalone native support.
Provision the native SDK,
then pass --execution-variant mtp or --execution-variant dspark with
--companion draft=/path/to/checkpoint to the build CLI. MTP is greedy-only;
DSpark preserves the supported sampling controls. Exact checkpoint revisions,
capacity bounds, validation results, unsupported controls and source-faithful
chat-template handling are documented in the
owning Gemma recipe.
These local qualifications are separate from the registered manifest inventory
and do not imply that CI executes the paired cases.
Qwen3.6 / Qwen3.8 Edge-LLM execution
Use trtmc qwen3_8 build MODEL -o model.bundle. The default Edge SDK
remains 0.11.0; a runtime compiled against 0.12.0 adds opt-in routes for
dense 27B original and prepared checkpoints. Use the
family CLI to select a companion explicitly:
--execution-variant dspark|dflash|dflash_tree|domino|domino_tree and
--companion draft=/path/to/draft. DFlash2 tree and Domino are 0.12 Edge routes;
Domino and DFlash2 tree support greedy decoding only. See the
0.12 recipe and validation scope.
A mapped route is not an accuracy qualification.
An ordinary build (no --execution-variant) of a checkpoint that carries MTP
weights builds only the base engine. Add --mtp-seq-len N (N >= 2: one real
token plus N-1 drafted tokens verified per round) to also build the embedded MTP
engines and add them to the bundle; this option is separate from
--execution-variant mtp. Without it the bundle holds no MTP engines and is
about half the size, because every engine embeds its own copy of the weights.
The adapter additionally maps uniform NVFP4/INT4-AWQ embedded MTP and INT4-AWQ
DFlash2. These have Python/native contract-test coverage, not local model-engine
or accuracy qualification. For MTP, use --execution-variant mtp without an
external companion. Prepared checkpoint metadata must match the owning recipe;
Model Connect does not calibrate or quantize weights during this integration.
For the earlier 0.11 runs, local text requests included exact independent FP32 matches, with separate quality failures retained. Qwen3.8 original single-image passed; ordered-image and video accuracy failed. Mixed-NVFP4 ordinary and both paired raw-text profiles build and run, matching direct Edge exactly, but fail the independent FP32 NED gate. Accuracy failures remain executable and are not described as fully qualified. Original-weight speculative execution and batch-8 MTP were not validated by those 0.11 results.
Provision the native SDK. See the owning recipe for exact checkpoints, commands, platform limits, and evidence scope. Local profile results do not imply registered CI or catalog-wide qualification.
Qwen3.6 / Qwen3.8 native fallback
Without compatible Edge offload, the owner constructs TensorRT graphs directly and runs them through the Model Connect C++ runtime, without native ONNX export. Prepared source quantization and exported FP8 KV scales are preserved. Native paths cover ordinary text/media, embedded MTP, DSpark, DFlash2 chain/tree, Domino chain/tree, and original FP16 TP2. Paired builds do not substitute target-only decoding.
Exact full-checkpoint and small integration results are distinguished in the family recipe. Original Qwen3.6 and mixed-quantized accuracy failures remain runnable with the unchanged reference gates. Prepared MTP, AWQ-DFlash2, and exported FP8 KV have small integration evidence, not full-checkpoint qualification. Test GPU types are evidence scope, not a native family allowlist.
Qwen3.8 native multi-token prefill
A compatible native Qwen3.8 TP1 text bundle ships a multi-token prefill engine
(prefill_engine.plan) next to the one-token decode engine. The runtime feeds
the prompt --prefill-chunk-len tokens per call (default 128; the last chunk may
be partial) instead of running one decoder step per prompt token. Projections,
norms and MLPs run as GEMMs over the chunk, Gated DeltaNet layers use the chunked
delta rule, and full-attention layers use one masked attention over the chunk.
Explicit --prefill-chunk-len is native-owned and bypasses Edge offload. Native
media, external drafts, TP2, exported FP8 KV, and prepared MTP projections use
per-token prefill to retain their exact input/state contract. For these modes,
omit the option or use zero; an explicit positive chunk size is rejected.
Bundles with an embedded MTP head also ship mtp_prefill_engine.plan, which
warms the MTP cache for a whole chunk in one call.
--prefill-chunk-len 0 builds the previous token-by-token prefill. Valid values
are 0, a power of two below 64, or a multiple of 64. Each extra engine carries
its own copy of the weights, so it adds to the bundle size and build time.
Bundles built before this engine existed still load and prefill token by token.
When the decode and prefill engines' weights do not both fit in 80% of the GPU
memory (a 27B FP16 checkpoint on a 128 GB unified-memory GPU), an ordinary
TP1 text bundle with chunked prefill and no MTP ships only prefill_engine.plan
(decoder_engine_layout: "chunked"). It also decodes, one row per call.
Older runtimes reject this layout. For ordinary native text decoding with either
layout, the prompt must fit the KV cache (--max-sequence-length).
Generation stops when the cache is full; neither layout discards prompt rows.
Nemotron-H Edge-LLM execution
Use trtmc nemotron_h build MODEL -o model.bundle with the owning
family's options. trtmc nemotron_h build --help works offline without
a checkpoint or GPU imports. This uses the existing
family CLI protocol, not an extension to the shared parser.
The Nemotron-H family owns optional pinned Edge-LLM whole-network offload.
Ordinary compatible text builds use the experimental builder; the explicit
Lightning NVFP4/DFlash pair uses ONNX with
--execution-variant dflash --companion draft=/path/to/draft.
Native fallback is attempted only during ordinary preparation; it cannot
interpret unsupported packed checkpoints or replace a requested pair.
See the owning Nemotron-H recipe for the six recorded ordinary profiles, the qualified greedy DFlash pair, immutable revisions and unchanged quality gates. These are bounded historical local qualifications, not catalog-wide or current-head CI proof. The separate direct-Edge 9B-NVFP4 quality failure and longer-context failures remain open. The original plain 9B case is registered in the owning E2E inventory; the other exact profiles are not implied to run in CI.
Runtime and validation
The directory name is also the runtime DSO identity:
libtrtmc_model_<family>.so. The family factory implements one or more
abstract interfaces in trtmc/task.h and owns all preprocessing,
postprocessing, dispatch, state, sampling, and engine binding.
Tests, exact checkpoint manifests, fixtures, thresholds, and reference/oracle
logic live in the same directory. A family with extra build or reference
dependencies declares them in its own plain requirements.txt.
Live inventory
The website's Models & Recipes pages are
generated from families/*/support.py and tests/manifests/*.json. Validate the
physical inventory with:
python3 -m tools.model_ci validate
The project covers text decoders and encoders, MoE and recurrent networks, vision-language, speech/audio, diffusion, perception, time-series, robotics, and world-model tasks. Support remains exact and model-owned: a similar architecture, parser option, or sibling family's passing test is not evidence for another checkpoint.
Isolation rule
Families never import, include, or link siblings. Similar model code is copied by design so a team can implement, validate, change, and revert one family without modifying another. Shared code is limited to model-agnostic contracts and mechanics described in the Architecture.
Optional InternVL Edge execution
Use trtmc internvl build MODEL -o model.bundle with the owning
family's options. trtmc internvl build --help works offline without
a checkpoint or GPU imports. This uses the existing
family CLI protocol, not an extension to the shared parser.
The InternVL family can offload the recorded original-source InternVL3 1B/2B/8B HF configurations on native x86 SM80 and 14B on native x86 SM120 to the pinned Edge-LLM 0.10.1 SDK. These FP16, batch-one, TP-one profiles have historical local public/direct/HF qualification; this is not catalog-wide or fresh-head CI qualification. The existing 2B/8B image-health test reads actual Edge visual features through a small family-owned test helper without changing its gates. Quantized sources, InternVL3.5, and multi-image public requests are excluded. See the family recipe for exact source revisions, evidence boundaries, and replay requirements.
Optional Qwen3.5 Edge execution
Use trtmc qwen3_5 build MODEL -o model.bundle with the owning
family's options. trtmc qwen3_5 build --help works offline without
a checkpoint or GPU imports. This uses the existing
family CLI protocol, not an extension to the shared parser.
The default Edge SDK remains 0.11.0. To opt in to 0.12.0, configure
-DTRTMC_EDGELLM_RELEASE=0.12.0, build with --precision fp16, and, if
needed, supply --edge-builder-python /absolute/path/to/python to select
a matching wheel or source installation. This does not replace the native SDK.
The 2B, 4B and 9B ordinary FP16 text profiles, including their Base
checkpoints, passed the short reference and the greedy/sampled release checks.
The 4B embedded MTP profile passed the short, long greedy and input-limit
checks. The original 4B, 9B and 27B DFlash pairs passed the measured short
and long greedy checks with both linear and top-k-four tree decoding. Some other
ordinary text profiles remain runnable but miss sampled quality; see the
family recipe below for the per-checkpoint results and tested scope.
The prepared 4B NVFP4 target and its matching NVFP4 DFlash draft use the
0.12 ONNX exporter (install the Edge Python onnx extra and configure
-DTRTMC_EDGELLM_ONNX=ON). The native fallback preserves paired decoding
without ONNX.
For the 27B TP2 image case, the recipe also identifies a tested A100 pair
where both Edge runners failed in prefill and MC selects native TensorRT.
Use --task images_text_to_text for ordered images; the legacy single-image
task is vision_language_generation.
The Qwen3.5 family maps the recorded original-source dense 0.8B/2B/4B/9B configurations (Instruct and Base), embedded MTP, and explicit 4B/9B DFlash pairs to the pinned Edge-LLM 0.11.0 SDK on native x86 SM80/SM120, FP16 compute, batch one. Dense 27B uses TP2 for its LLM and TP1 for its visual component. The SM120 route preserves admitted ModelOpt weight formats; the recorded 2B FP8-KV and NVFP4 LM-head component flows are checkpoint-driven. Compatible PyPI Python tools are discovered automatically, with the source-built SDK interpreter as fallback; a matching native C++ SDK is still required. Execution admission is not a blanket accuracy claim: recorded quality-only failures remain runnable and existing gates are unchanged. Qwen3 or older, MoE, Qwen3.6/3.8 and speculative TP2 are outside this owner. See the family recipe for commands, paired execution, validation boundaries and known quality issues.
Visual bundles expose the existing typed video and mixed image/video APIs; decoded frame order and optional timestamps are preserved. The recorded 2B two-frame appearance case passed Model Connect/direct parity and independent FP32 NED0.0; it is not a motion-quality or all-configuration qualification. The generic image CLI is unchanged. See the owning recipe for API boundaries.
A native single-GPU Qwen3.5 bundle without MTP or a draft ships prefill.plan
next to engine.plan. The runtime prefills text and media prompts, NVFP4
included, up to 64 rows per call and decodes with engine.plan. A bundle whose
two engines need more than 80% of the GPU memory fails to build instead.
When Edge offload is unavailable or fails, this family builds with the TensorRT Python API and executes with the Model Connect C++ runtime. Native execution owns the prepared projections, FP8 KV storage, visual processing, TP2 and speculative orchestration; it does not require an Edge installation or ONNX. The existing TP1 image premerge case accepts this native fallback without changing its reference or accuracy checks. Prepared and speculative mappings are not blanket accuracy qualifications; the family recipe separates local results from unexecuted combinations and known quality limitations.
Optional Qwen3.5/3.6 MoE Edge execution
On Edge 0.12, original-weight requests use the ONNX exporter and native SDK
compilers (TRTMC_EDGELLM_ONNX=ON) because the direct builder expects
individual experts rather than fused weights. The documented original Qwen3.6
35B DFlash and JetSpec pairs use separate base and draft engine roles. Packed
checkpoints keep the direct path. If Edge preparation fails, Model Connect
warns and builds the requested configuration through the family’s native path.
trtmc qwen3_5_moe build MODEL -o model.bundle owns the GPTQ Qwen3.5 35B-A3B
and NVFP4 Qwen3.6 35B-A3B routes. Its family-local options select explicit
DFlash companions, greedy DDTree, or the documented embedded NVFP4 MTP recipe.
Visual bundles map the existing image and video Task interfaces directly to
Edge preprocessing and runtime APIs. Shared model selection remains unchanged.
Edge-LLM 0.11.0 is the default. To use 0.12.0, build with
-DTRTMC_EDGELLM_RELEASE=0.12.0 on the target and install matching Python
tools from PyPI or source. With 0.12.0, a documented JetSpec pair uses
--execution-variant jetspec --companion draft=PATH; a DFlash draft is not
interchangeable with a JetSpec draft.
The native fallback preserves the checkpoint recipe. For example, the mixed Qwen3.6 35B NVFP4 source uses FP8 projections and W4A16 experts with FP16 KV. The prepared Qwen3.5 122B source uses W4A4 routed experts. Its metadata advertises FP8 KV, but the checkpoint lacks the text K scales that Edge 0.12 requires for FP8 KV, so the adapter selects FP16 KV. This source check is not a full-model validation result. In ordinary decoding with Qwen3.5 35B GPTQ-Int4, both 0.12 Edge execution and native TensorRT matched the independent packed-checkpoint reference on the tested text and image requests. The original Qwen3.5 35B checkpoint also matched the independent reference on raw text, chat and image through both the 0.12 ONNX and native routes. For the original Qwen3.6 35B checkpoint, use the 0.12 ONNX flow: its ordinary vision bundle matched the independent reference token IDs on the tested raw-text, chat and image requests. With the documented JetSpec draft, Edge ONNX also matched the original target and reference on raw text and chat. These measurements do not qualify other checkpoints, pairs or modalities.
Runtime availability is not an accuracy claim: speculative decoding and NVFP4 repeatability have recorded quality failures. Those routes remain executable with unchanged validation gates. See the family recipe for exact recipes, commands, Task boundaries and qualification limitations.
When no compatible Edge route exists or Edge preparation fails, the same family
owns native TensorRT Python graph construction and Model Connect C++ execution,
including prepared routed experts and media inputs. Publication errors,
cancellation and runtime errors do not trigger this fallback. Native execution
needs neither Edge nor ONNX.
A native single-GPU GPTQ bundle without MTP or a draft also ships prefill.plan
when two copies of the checkpoint weights fit in 80% of the GPU memory. The
runtime then prefills text and media prompts up to 64 rows per call and decodes
with engine.plan; other bundles prefill one token at a time, as before.
The existing validation checks seed rejection on Edge and seeded request-local
repeatability on native, retaining capacity recovery, the independent checkpoint
reference and the unchanged accuracy gate. Native speculative mappings and
incomplete full-model builds are not presented as completed qualification; see
the owning recipe for limitations.
Optional Llama Edge execution
Use trtmc llama build MODEL -o model.bundle with the owning
family's options. trtmc llama build --help works offline without
a checkpoint or GPU imports. This uses the existing
family CLI protocol, not an extension to the shared parser.
The Llama family owns an optional native Edge-LLM 0.10.1 route for original unquantized sources with FP16 compute. Recorded ordinary Llama 3.1 8B and 3.2 1B/3B profiles use SM80; the explicit Llama 3.1 8B + EAGLE3 pair uses SM120. Other requests retain native behavior, and a failed explicit pair never silently becomes base-only decoding. Quantized Llama routes are outside this publication.
These are bounded historical build/inference results, not catalog-wide support or an assertion that every profile is registered in CI. Passing engine payloads were retired; publication checks are reported separately. See the family-owned recipe for exact revisions, capacities, controls and validation boundaries.