src/transformers/generation/stopping_criteria.py/MaxTimeCriteria/__call__
class MaxTimeCriteria:    def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -> bool:
        return time.time() - self.initial_timestamp > self.max_time