nemo_automodel.components.models.inkling.processing
nemo_automodel.components.models.inkling.processing
Native processor construction and multimodal token replacement for Inkling.
Module Contents
Classes
Functions
Data
_INKLING_END_OF_SAMPLING_TOKEN
API
Bases: ProcessorMixin
Combine the native Inkling image/audio processors with a tokenizer.
Return the deduplicated model input field names.
Return processor-only fields omitted from model inputs.
Prepare text, image patches, and dMel tokens without version-specific HF hooks.
Transformers releases before Inkling was upstreamed dispatch audio directly to the feature extractor and do not expand multimodal placeholders. Owning this small dispatcher keeps the checkpoint usable with AutoModel’s pinned Transformers version.
Quantize continuous log-mel values into dMel token IDs.
Parameters:
Tensor of shape [batch, frames, mel_bins].
Returns: torch.Tensor
Int tensor of shape [batch, frames, mel_bins].
Normalize one waveform or a batch into a list of clips.
Extract, quantize, and count a batch of audio clips.
Expand media placeholders once per corresponding input, in batch order.
Return one soft placeholder per valid audio frame.
Return one soft placeholder per encoded image patch.
Bases: ProcessingKwargs
Processor kwargs with Inkling’s reference audio-loading default.
Load Inkling’s native processor without Transformers model registration.
Parameters:
Hugging Face model ID or local snapshot.
Download/cache arguments accepted by Transformers from_pretrained methods.
Returns: InklingProcessor
A configured native Inkling processor.