nemo_automodel.components.models.qwen3_next.model
nemo_automodel.components.models.qwen3_next.model
Module Contents
Classes
Data
API
Bases: Module
Bases: HFCheckpointingMixin, Module, MoEFSDPSyncMixin
Run Qwen3Next without unsupported packed FA4 recurrent attention.
Parameters:
Token IDs of shape [batch, sequence].
Optional positions of shape [batch, sequence].
Padding/document IDs of shape [batch, sequence] or an explicit mask of shape [batch, 1, sequence, sequence].
Optional padding mask of shape [batch, sequence].
Number of trailing logits, or indices of shape [kept_tokens].
Whether to return the final hidden states.
Attention metadata, including cumulative document lengths of shape [documents + 1] and packed indices of shape [tokens].
Returns: CausalLMOutputWithPast
Model output with logits of shape [batch, kept_sequence, vocab] and
Raises:
ValueError: If packed FA4 is requested, since recurrent layers do not reset state at document boundaries.
Bases: Module