nemo_automodel.components.models.d1.decision_head
nemo_automodel.components.models.d1.decision_head
D1 readouts with explicit option order and frozen vocabulary semantics.
Module Contents
Classes
API
Bases: Module
Differentiable released Omni head; noul markers retain false/true order.
State-dict names match the published checkpoint’s head subtree. Text-only temperature calibration belongs outside this module so media paths can skip it.
Score each option marker in internal checkpoint order.
Parameters:
Tensor of shape [batch, sequence, hidden], excluding media prefixes.
Boolean Tensor of shape [batch, sequence], true for non-padding tokens.
Long Tensor of shape [batch, options], indexing text positions.
Boolean Tensor of shape [batch, options], true for declared options.
Long Tensor of shape [batch] with choice=0, score=1, noul=2.
Returns: torch.Tensor
Float32 Tensor of shape [batch, options], with padding options set to -10000.
Released Omni marker head configuration.
Parameters:
Encoder width, a positive multiple of the 64-wide head dimension.
Number of bidirectional transformer layers in the readout.
Build an uncalibrated, checkpoint-compatible Omni head.
Bases: Module
Train additive answer-row updates while preserving input/output tying.
This is an adaptation of the released readout, not an independent classifier. The zero-initialized adapter preserves the max-over-alias option contract.
Score declared options by their maximum answer-alias logit.
Parameters:
Tensor of shape […, hidden], with arbitrary leading dimensions, at each causal chain’s answer position.
Adapter row indices for each option, in target order.
Returns: torch.Tensor
Float32 Tensor of shape […, options], before option softmax.
Select answer-token rows without untying the released vocabulary head.
Parameters:
Width of the normalized final backbone states.
Unique answer-alias vocabulary IDs in adapter row order.
Build an adapter from the frozen released vocabulary weight.
Parameters:
Tensor of shape [vocabulary, hidden_size].
Returns: D1TokenReadout
Zero-initialized row adapter, with detached base rows.