"""Deterministic packed-token windows with epoch permutations and independent probe streams.""" import numpy as np import torch from .records import CONTEXT class TrainingWindows: """Random-access batches let a checkpoint store the next step as its data cursor.""" def __init__(self, filename, seed, batch_size): self.tokens = np.memmap(filename, mode="r", dtype="