Skip to content

vllm.model_executor.models.nemotron_parse3_5

Classes:

BartScaledWordEmbedding

Bases: VocabParallelEmbedding

This module overrides VocabParallelEmbedding's forward by multiplying with embeddings scale.

MBartDecoderNoPos

Bases: Module, EagleModelMixin

Transformer decoder consisting of config.decoder_layers layers. Each layer is a causal pre-normalized MBart decoder layer.

Parameters:

  • config

    (BartConfig) –

    BartConfig

  • embed_tokens

    (Embedding, default: None ) –

    output embedding

Methods:

forward(decoder_input_ids, *, inputs_embeds=None, **kwargs)

Parameters:

  • decoder_input_ids

    (Tensor | None) –

    Indices of decoder input sequence tokens in the vocabulary. Padding will be ignored by default should you provide it.

Returns:

NemotronParsePackedPixelInputs

Bases: TensorSchema

Packed 16x16 RADIO patches and their per-image pixel geometry.

RadioMBartPrefixForCausalLM

Bases: Module, SupportsMultiModal, SupportsEagle3

Native Parse 3.5 causal visual-prefix architecture.

Methods:

  • load_weights –

    Load Parse 3.5 weights and report loaded destination parameters.

load_weights(weights)

Load Parse 3.5 weights and report loaded destination parameters.

Returning fully-prefixed destinations lets DefaultModelLoader detect missing parameters. Individual source shards of fused parameters are not independently tracked, matching the common vLLM loader convention.

RadioWithNeck

Bases: Module

Vision encoder using RADIO model with custom neck.

_content_normalized_positions(patches, embeddings, image_size, content_size)

Apply Parse 3.5's content-normalized positional field to one page.