vllm.models.nemotron_shortcut.nvidia.mlp
¶
Nemotron Shortcut dense MLP with the soft-clamped squared-ReLU activation.
Shared by the dense MLP blocks and by the MoE's shared experts, so it lives apart from both the model and the MoE package.
Classes:
-
NemotronShortcutClampedActivation–Soft-clamps the pre-activation to
activation_clamp_valuebefore relu2.
NemotronShortcutClampedActivation
¶
Bases: Module
Soft-clamps the pre-activation to activation_clamp_value before relu2.