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

Method eval

deepspeed/runtime/engine.py:2963–2967  ·  view source on GitHub ↗

r

(self)

Source from the content-addressed store, hash-verified

2961 self.module.train(mode)
2962
2963 def eval(self):
2964 r""""""
2965
2966 self.warn_unscaled_loss = True
2967 self.module.train(False)
2968
2969 def _scale_loss_by_gas(self, prescaled_loss, eval_micro_batches=None):
2970 # 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