def next_token_metrics_step(self, batch):
    (loss, scores) = self(batch)[:2]
    return {'loss': loss}
def next_token_metrics_step(self, batch):
    (loss, scores) = self(batch)[:2]
    return {'loss': loss}