nhnk's picture
Release frozen FactCascade utility router checkpoint and loading code
08bd580 verified
Raw History Blame Contribute Delete
387 Bytes
"""4000 balanced oracle-evidence claims;1592families;not retrieval-task scores."""
from pathlib import Path
import numpy as np
def load_cached(path):
with np.load(Path(path),allow_pickle=False) as z: arrays={k:z[k] for k in z.files}
if not any(v.ndim and v.shape[0]==4000 for v in arrays.values()):
raise ValueError("FROZEN_HOVER_CARDINALITY_MISMATCH")
return arrays