(self, module, *inputs, **kwargs)
| 240 | self.module.transformer.build_alibi_tensor = build_bloom_alibi_tensor |
| 241 | |
| 242 | def _pre_forward_hook(self, module, *inputs, **kwargs): |
| 243 | if self.use_cuda_events: |
| 244 | self.timers(INFERENCE_MODEL_TIMER).start() |
| 245 | else: |
| 246 | get_accelerator().synchronize() |
| 247 | self._start = time.time() |
| 248 | |
| 249 | def _post_forward_hook(self, module, input, output): |
| 250 | if self.use_cuda_events: |
nothing calls this directly
no test coverage detected