nemo_automodel.components.models.inkling.model
nemo_automodel.components.models.inkling.model
Standalone NeMo AutoModel implementation of the Inkling multimodal MoE.
Module Contents
Classes
Data
API
Bases: ModelOutput
Inkling logits, optional loss/cache, and multimodal hidden states.
Bases: HFCheckpointingMixin, Module, MoEFSDPSyncMixin
Native Inkling VLM with expert-parallel feed-forwards.
Keep Inkling’s post-embedding norm on the first pipeline stage.
Run native Inkling multimodal conditional generation.
Parameters:
Optional long tensor of shape [batch, sequence]. Non-first
pipeline stages may receive hidden states of shape [batch, sequence, hidden] through this argument.
Optional tensor of shape [patches, time, height, width, channels].
Optional padding tensor of shape [batch, total_sequence].
Optional long tensor of shape [batch, sequence].
Optional model-owned decoding cache.
Optional long tensor of shape [audios, frames, mel_bins].
Optional boolean tensor of shape [audios, frames].
Optional tensor of shape [batch, sequence, hidden].
Optional long tensor of shape [batch, sequence].
Whether to allocate and return a decoding cache.
Number or indices of trailing logits to compute.
Additional text-attention arguments.
Returns: InklingCausalLMOutputWithPast | torch.Tensor
An output whose logits have shape [batch, kept_sequence, vocab] during
Construct an Inkling model from its local AutoModel config.
Construct the native model tree for checkpoint loading.
The NeMo AutoModel bridge and checkpointer own weight loading. This method resolves only the local Inkling config and native module structure.
Encode image/video patches through the native vision tower.
Parameters:
Tensor of shape [patches, time, height, width, channels].
Reserved for the common multimodal calling convention.
Returns: Any
An output whose pooler output has shape [patches, text_hidden].
Return the text token-embedding module.
Return the language-model output projection.
Return PP input/output metadata using Inkling’s unpadded vocabulary.
Initialize every parameter for checkpoint-free construction.
Replace the text token-embedding module.
Replace the language-model output projection.
Keep Inkling’s trained router correction bias unchanged.