nemo_automodel.components.models.flint.config
nemo_automodel.components.models.flint.config
Local configuration for Flint’s hybrid-attention MoE architecture.
Module Contents
Classes
API
Bases: PreTrainedConfig
Architecture settings matching the source Flint checkpoint.
The local class removes dependence on checkpoint remote code. Full layers
have no RoPE; sliding layers rotate all head channels with NeoX RoPE. The
window counts the current token. router_aux_loss_coef is preserved as
checkpoint metadata; the native training implementation requires an explicit
zero value until the original auxiliary objective is specified.
attention_compute_dtype='fp16' is an explicit TE-only QKV/kernel-output
boundary within otherwise FP32 projection compute. It does not change the
bulk parameter dtype or enable autocast. Small-gradient training requires an
appropriate loss-scaling policy; the default None retains native precision.
Resolve schedules and upstream RoPE fields, then validate the contract.
Construct a native model without changing these declarative settings.
Parameters:
Runtime kernel choices; defaults to the verified eager/torch path.
Returns: FlintForCausalLM
An initialized native causal language model.
Validate the preserved source schedule independently of active prefix depth.