nemo_automodel.components.models.muse_spark.processing
nemo_automodel.components.models.muse_spark.processing
Native Transformers processor construction for Muse Spark Open.
Module Contents
Classes
Functions
Data
API
Bases: ProcessorMixin
Combine the Muse Spark Open tokenizer with native multimodal preprocessing.
Return model inputs produced by this processor.
Tokenize prompts after expanding image/video/audio placeholders.
Expansion goes through ProcessorMixin.get_text_with_replacements so the
processor can return text_replacement_offsets; apply_chat_template
needs them to keep {% generation %} spans aligned with expanded media.
Bases: ProcessingKwargs
Standard text/image/video/audio processing arguments.
Flatten per-sample nested media while retaining sample counts.
Load the checkpoint’s nonstandard Muse chat-template filename.
Check that every sample has exactly one placeholder per media value.
Build the native processor directly from a Muse Spark Open checkpoint.