deepseek_ocr 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_type | HF architecture / pipeline class | TRTMC task contract | Exact recipe profiles |
|---|---|---|---|
deepseek_vl_v2 | DeepseekOCR2ForCausalLMSource: config.architecturesMetadata: config.json at aaa02f381194 | vision_language_generation | deepseek-ocrdeepseek-ocr-l0deepseek-ocr-l0-tp2 |
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.
| Recipe | Exact Hugging Face checkpoint | Task | Build configuration | Declared E2E cases | Manifest |
|---|---|---|---|---|---|
deepseek-ocr | deepseek-ai/DeepSeek-OCR-2 | fp16; single device FP32 layers: 6, 7, 8, 9, 10, 11, 12 | deepseek-ocr | tests/e2e/models/deepseek_ocr/manifests/deepseek-ocr.json | |
deepseek-ocr-l0 | deepseek-ai/DeepSeek-OCR-2 | fp16; single device FP32 layers: 6, 7, 8, 9, 10, 11, 12 | deepseek-ocr-l0 | tests/e2e/models/deepseek_ocr/manifests/deepseek-ocr-l0.json | |
deepseek-ocr-l0-tp2 | deepseek-ai/DeepSeek-OCR-2 | family default; TP2 | deepseek-ocr-l0-tp2 | tests/e2e/models/deepseek_ocr/manifests/deepseek-ocr-l0-tp2.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: deepseek-ocr, deepseek-ocr-l0, deepseek-ocr-l0-tp2
trtmc run <bundle.bundle> --prompt "<text>" --image <input.png> [generation options]| Supported input or option | Requirement | Runtime behavior |
|---|---|---|
--prompt <TEXT> | Required | Text prompt for the vision-language recipe. |
--image <PATH> | Required by declared image recipes | Image input consumed by the runtime image-aware generate overload. |
--max-new-tokens <N> | Optional | Limit the number of generated tokens or audio frames. |
--temperature <F> | Optional | Set sampling temperature. |
--top-k <N> | Optional | Restrict sampling to the top K tokens. |
--top-p <F> | Optional | Enable nucleus sampling at probability P. |
--min-p <F> | Optional | Filter tokens below min-p times the maximum probability. |
--seed <N> | Optional | Set the sampling or diffusion seed. |
--greedy | Optional | Select deterministic greedy decoding by setting temperature to zero. |
Code basis
Runtime provider: deepseek_ocr
include/trtmc/pipeline.hsrc/cli/main.cppsrc/runtime/models/deepseek_ocr/pipeline.cppsrc/runtime/models/deepseek_ocr/pipeline.hsrc/runtime/models/deepseek_ocr/sampler.cpptests/e2e/models/deepseek_ocr/manifests/deepseek-ocr-l0-tp2.jsontests/e2e/models/deepseek_ocr/manifests/deepseek-ocr-l0.jsontests/e2e/models/deepseek_ocr/manifests/deepseek-ocr.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.