MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS / __init__

Method __init__

models_jittor/model.py:199–205  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

197
198class MossBlock(Module):
199 def __init__(self, config):
200 super(MossBlock, self).__init__()
201 self.config = config
202 inner_dim = config.n_inner if config.n_inner is not None else 4 * config.n_embd
203 self.ln_1 = nn.LayerNorm(config.n_embd, eps=config.layer_norm_epsilon)
204 self.attn = MossAttention(config)
205 self.mlp = MossMLP(inner_dim, config)
206
207 def execute(
208 self,

Callers

nothing calls this directly

Calls 3

MossAttentionClass · 0.70
MossMLPClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected