MicroGPT::ContextRouter
Inherits MicroGPT::Router < Reference < Object
Constructors
Instance methods
adam_emb
SourceBackward: given d_router_probs [seq_len, n_routed], compute gradients and return d_stream contribution from router. Updates own params.
d_router_emb
SourceForward: compute per-position blended router probs [seq_len, n_routed] Also caches state needed for backward.
router_emb
Sourcew_router
Source