def METHOD_NAME(self, sample, model, criterion):
    model.eval()
    with torch.no_grad():
        loss, sample_size, logging_output = criterion(model, sample['gpt'])
    return loss, sample_size, logging_output