MCPcopy
hub / github.com/InternLM/InternLM / eval

Method eval

internlm/core/engine.py:133–136  ·  view source on GitHub ↗

Sets the model to evaluation mode.

(self)

Source from the content-addressed store, hash-verified

131 self._model.train()
132
133 def eval(self):
134 """Sets the model to evaluation mode."""
135 self.training = False
136 self._model.eval()
137
138 def backward(self, loss: torch.Tensor):
139 """

Callers 2

evaluate_on_val_dlsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected