| class nemo_automodel.components.models.deepseek_v4.config.DeepseekV4Config( |
| vocab_size: int = 129280, |
| hidden_size: int = 4096, |
| moe_intermediate_size: int = 2048, |
| num_hidden_layers: int = 43, |
| num_attention_heads: int = 64, |
| num_key_value_heads: int = 1, |
| head_dim: int = 512, |
| qk_rope_head_dim: int = 64, |
| q_lora_rank: int = 1024, |
| o_lora_rank: int = 1024, |
| o_groups: int = 8, |
| n_routed_experts: int = 256, |
| n_shared_experts: int = 1, |
| num_experts_per_tok: int = 6, |
| routed_scaling_factor: float = 1.5, |
| norm_topk_prob: bool = True, |
| scoring_func: str = 'sqrtsoftplus', |
| topk_method: str = 'noaux_tc', |
| hidden_act: str = 'silu', |
| swiglu_limit: float = 10.0, |
| max_position_embeddings: int = 1048576, |
| rope_theta: float = 10000.0, |
| rope_scaling: dict | None = None, |
| compress_rope_theta: float = 160000.0, |
| compress_ratios: list | None = None, |
| sliding_window: int = 128, |
| num_hash_layers: int = 3, |
| hc_eps: float = 1e-06, |
| hc_mult: int = 4, |
| hc_sinkhorn_iters: int = 20, |
| index_head_dim: int = 128, |
| index_n_heads: int = 64, |
| index_topk: int = 512, |
| vision_n_layers: int = 0, |
| vision_dim: int = 1024, |
| vision_n_heads: int = 16, |
| vision_inter_dim: int = 2816, |
| vision_patch_size: int = 14, |
| vision_rope_theta: float = 10000.0, |
| vision_downsample_ratio: int = 3, |
| vision_max_n_token: int = 384, |
| vision_min_pixels: int = 147456, |
| vision_max_wh_ratio: float | None = 8, |
| num_nextn_predict_layers: int = 1, |
| rms_norm_eps: float = 1e-06, |
| attention_bias: bool = False, |
| attention_dropout: float = 0.0, |
| use_cache: bool = True, |
| pad_token_id: int | None = None, |
| bos_token_id: int = 0, |
| eos_token_id: int = 1, |
| pretraining_tp: int = 1, |
| tie_word_embeddings: bool = False, |
| initializer_range: float = 0.02, |
| torch_dtype: str | None = None, |
| kwargs = {} |
| ) |