Skip to navigation

nemo_automodel.components.models.ernie5_5.mtp_router

View as MarkdownOpen in Claude

Independent persistent correction bias for the shared MTP router call.

Module Contents

Classes

NameDescription
Ernie5_5MTPRouterStateOwn the frozen FP32 selection bias of shape [experts].

API

class nemo_automodel.components.models.ernie5_5.mtp_router.Ernie5_5MTPRouterState(
experts: int
)

Bases: Module

Own the frozen FP32 selection bias of shape [experts].

Shared router weights belong to the decoder and are never registered here. The admitted SFT policy does not update this bias or accumulate MTP loads.

nemo_automodel.components.models.ernie5_5.mtp_router.Ernie5_5MTPRouterState.reset_parameters() -> None

Initialize after construction or meta-device materialization.