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

Method eval

deepspeed/runtime/engine.py:2552–2556  ·  view source on GitHub ↗

r

(self)

Source from the content-addressed store, hash-verified

2550 self.module.train(mode)
2551
2552 def eval(self):
2553 r""""""
2554
2555 self.warn_unscaled_loss = True
2556 self.module.train(False)
2557
2558 def _scale_loss_by_gas(self, prescaled_loss, eval_micro_batches=None):
2559 # 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