Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/hpcaitech/ColossalAI
/ eval
Method
eval
colossalai/legacy/engine/_base_engine.py:215–218 ·
view source on GitHub ↗
Sets the model to evaluation mode.
(self)
Source
from the content-addressed store, hash-verified
213
self._model.train()
214
215
def
eval(self):
216
""
"Sets the model to evaluation mode."
""
217
self.training = False
218
self._model.eval()
Callers
15
get_act_scales
Method · 0.45
from_pretrained
Method · 0.45
get_act_dict
Method · 0.45
initialize
Method · 0.45
_eval
Method · 0.45
predict
Method · 0.45
inference
Function · 0.45
new_from_pretrained
Function · 0.45
init_model
Method · 0.45
_init_model
Method · 0.45
__init__
Method · 0.45
generate_step_one_stage
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected