MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / eval

Method eval

deepspeed/runtime/engine.py:2625–2629  ·  view source on GitHub ↗

r

(self)

Source from the content-addressed store, hash-verified

2623 self.module.train(mode)
2624
2625 def eval(self):
2626 r""""""
2627
2628 self.warn_unscaled_loss = True
2629 self.module.train(False)
2630
2631 def _scale_loss_by_gas(self, prescaled_loss, eval_micro_batches=None):
2632 # In pipeline evaluation, there is an option to use different micro-bs, which creates different number of

Callers 3

get_model_profileFunction · 0.45
eval_batchMethod · 0.45
_runFunction · 0.45

Calls 1

trainMethod · 0.45

Tested by

no test coverage detected