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

Method training_step

tests/lightning/test_simple.py:34–37  ·  view source on GitHub ↗
(self, batch, batch_idx)

Source from the content-addressed store, hash-verified

32 return self.layer(x)
33
34 def training_step(self, batch, batch_idx):
35 loss = self(batch).sum()
36 self.log("train_loss", loss)
37 return {"loss": loss}
38
39 def validation_step(self, batch, batch_idx):
40 loss = self(batch).sum()

Callers

nothing calls this directly

Calls 1

logMethod · 0.45

Tested by

no test coverage detected