vllm.model_executor.models.nemotron_h
¶
Inference-only NemotronH model.
Classes:
NemotronHForCausalLM
¶
Bases: Module, HasInnerState, SupportsLoRA, SupportsPP, SupportsEagle, SupportsEagle3, IsHybrid, SupportsQuant, MixtureOfExperts, SupportsReplaySSM
Methods:
-
get_mamba_state_shape_from_config–Calculate shapes for Mamba's convolutional and state caches.
get_mamba_state_shape_from_config(vllm_config)
classmethod
¶
Calculate shapes for Mamba's convolutional and state caches.
Parameters:
-
(vllm_config¶VllmConfig) –vLLM config
Returns:
-
MambaStateShapes–Tuple containing:
-
MambaStateShapes–- conv_state_shape: Shape for convolutional state cache
-
MambaStateShapes–- temporal_state_shape: Shape for state space model cache
-
MambaStateShapes–- x_cache/dt_cache/B_cache ring-buffer shapes (use_replayssm only)
NemotronHModel
¶
Bases: Module, EagleModelMixin
_get_max_n_routed_experts()
¶
Get max n_routed_experts from config or block_configs for puzzle models.
For heterogeneous models with varying expert counts per layer, returns the MAX to ensure all expert weights can be loaded.