MCPcopy
hub / github.com/deepspeedai/DeepSpeed / forward

Method forward

tests/unit/simple_model.py:74–77  ·  view source on GitHub ↗
(self, x, y, **kwargs)

Source from the content-addressed store, hash-verified

72 super(Curriculum_SimpleModel, self).__init__(hidden_dim, empty_grad)
73
74 def forward(self, x, y, **kwargs):
75 seqlen = kwargs.get('curriculum_seqlen', None)
76 loss = super(Curriculum_SimpleModel, self).forward(x, y)
77 return loss, seqlen
78
79
80class SimpleMoEModel(torch.nn.Module):

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
forwardMethod · 0.45

Tested by

no test coverage detected