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

Method eval

deepspeed/runtime/engine.py:3064–3068  ·  view source on GitHub ↗

r

(self)

Source from the content-addressed store, hash-verified

3062 self.module.train(mode)
3063
3064 def eval(self):
3065 r""""""
3066
3067 self.warn_unscaled_loss = True
3068 self.module.train(False)
3069
3070 def _scale_loss_by_gas(self, prescaled_loss, eval_micro_batches=None):
3071 # 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