import pickle


def read_lm_outputs(fname):
    """
    This function reads LM predictions to be used for distillation loss
    """
    with open(fname, 'rb') as handle:
        preds = pickle.load(handle)
        return preds
    return {}