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

Method eval

deepspeed/runtime/engine.py:3036–3040  ·  view source on GitHub ↗

r

(self)

Source from the content-addressed store, hash-verified

3034 self.module.train(mode)
3035
3036 def eval(self):
3037 r""""""
3038
3039 self.warn_unscaled_loss = True
3040 self.module.train(False)
3041
3042 def _scale_loss_by_gas(self, prescaled_loss, eval_micro_batches=None):
3043 # In pipeline evaluation, there is an option to use different micro-bs, which creates different number of

Callers 2

get_model_profileFunction · 0.45
eval_batchMethod · 0.45

Calls 1

trainMethod · 0.45

Tested by

no test coverage detected