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

Method __init__

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

Source from the content-addressed store, hash-verified

347class MossForCausalLM(Module):
348
349 def __init__(self, config):
350 super(MossForCausalLM, self).__init__()
351 self.config = config
352 self.transformer = MossModel(config)
353 self.lm_head = nn.Linear(config.n_embd, config.vocab_size)
354
355 # Initialize weights and apply final processing
356 self.apply(partial(_init_weights, config))
357
358 def execute(
359 self,

Callers

nothing calls this directly

Calls 2

MossModelClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected