MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / model_times

Method model_times

deepspeed/inference/engine.py:561–570  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

559 return self.static_output
560
561 def model_times(self):
562 assert self.model_profile_enabled, "model profiling is not enabled"
563 model_times = self._model_times
564 if self._config.enable_cuda_graph and len(self._model_times) == 0:
565 raise ValueError("Model times are empty and cuda graph is enabled. If "
566 "this is a GPT-style model this combo is not supported. If this is a "
567 "BERT-style model this is a bug, please report it. "
568 f"Model type is: {type(self.module)}")
569 self._model_times = []
570 return model_times
571
572 def _module_match(self, module):
573 for policy in generic_policies:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected