MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / __init__

Method __init__

sat/dit_video_concat.py:547–561  ·  view source on GitHub ↗
(self, num_layers, in_features, hidden_features, bias=False)

Source from the content-addressed store, hash-verified

545
546class SwiGLUMixin(BaseMixin):
547 def __init__(self, num_layers, in_features, hidden_features, bias=False):
548 super().__init__()
549 self.w2 = nn.ModuleList(
550 [
551 ColumnParallelLinear(
552 in_features,
553 hidden_features,
554 gather_output=False,
555 bias=bias,
556 module=self,
557 name="dense_h_to_4h_gate",
558 )
559 for i in range(num_layers)
560 ]
561 )
562
563 def mlp_forward(self, hidden_states, **kw_args):
564 x = hidden_states

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected