nemo_automodel.components.models.hy_v3
nemo_automodel.components.models.hy_v3
Submodules
nemo_automodel.components.models.hy_v3.confignemo_automodel.components.models.hy_v3.layersnemo_automodel.components.models.hy_v3.modelnemo_automodel.components.models.hy_v3.state_dict_adapter
Package Contents
Classes
API
Bases: HFCheckpointingMixin, Module, MoEFSDPSyncMixin
Forward pass returning CausalLMOutputWithPast.
Parameters:
Input token IDs. BSHD: [B, S]; THD: [1, T] (squeezed internally).
Optional position indices.
Optional 2D padding mask [B, S].
Optional padding mask used by the THD squeeze helper.
If 0 (default) compute logits for all positions; otherwise
only compute logits for the last logits_to_keep token positions
(avoids materialising the full logit matrix during generation).
Whether to carry the final hidden states on the output.
Additional arguments forwarded to the base model (e.g. qkv_format, cu_seqlens, CP kwargs).
Returns: CausalLMOutputWithPast
class:~transformers.modeling_outputs.CausalLMOutputWithPast with logits