nemo_automodel.components.models.hy_v4_flash.config
nemo_automodel.components.models.hy_v4_flash.config
Hugging Face checkpoint configuration for tencent/Hy4-flash (model_type hy_v4_flash).
Field names follow the released config.json (revision eccd3123eec73f2040f4c9ed0de1883593470510).
The transformers reference (PR 50903) renames a few of them; the aliases it accepts are accepted here too
so either spelling of the same checkpoint loads.
Module Contents
Classes
Functions
Data
API
Bases: PretrainedConfig
Composite image-text configuration (HYV4FlashForConditionalGeneration).
Model FLOPs of one step of the text backbone; the vision tower is not counted.
Bases: typing.TypedDict
Rotary parameters of one attention type, as stored in rope_parameters.
Bases: PretrainedConfig
Text backbone: hyper-connected gated MLA with SWA / compressed-indexer layers, latent MoE and Engram.
Layer indices in engram_layer_ids are one-based: the reference builds the Engram block of decoder
layer i (zero-based) when i + 1 in engram_layer_ids, so the released [2, 12, 22, 32] means
zero-based layers 1, 11, 21 and 31, matching the model card.
Attention type of every decoder layer, independent of how layer_types is spelled.
Zero-based indices of the built decoder layers that carry an Engram block.
Return (qk_nope_head_dim, qk_rope_head_dim, v_head_dim) of the given attention type.
Number of query heads of a layer of the given attention type.
Model FLOPs of one step (see hy_v4_flash.flops); picked up by get_flops_formula_for_hf_config.
Bases: PretrainedConfig
Vision tower hyper-parameters (a 27-layer ViT plus the rmsnorm_mlp_adapter projector).
Call the FLOPs formula, imported on use because flops imports this module.