MCPcopy
hub / github.com/hpcaitech/ColossalAI / train

Method train

colossalai/legacy/engine/_base_engine.py:210–213  ·  view source on GitHub ↗

Sets the model to training mode.

(self)

Source from the content-addressed store, hash-verified

208 return output, label, loss
209
210 def train(self):
211 """Sets the model to training mode."""
212 self.training = True
213 self._model.train()
214
215 def eval(self):
216 """Sets the model to evaluation mode."""

Callers 15

init_mem_statsMethod · 0.45
_train_epochMethod · 0.45
fitMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
fsdp_mainFunction · 0.45
fitFunction · 0.45
bench_shardformerFunction · 0.45
mainFunction · 0.45
benchFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected