Views
No views yet
f_θ + EMA target encoder f_θ̄ +
causal multi-offset predictor g_φ; loss = latent smooth-L1 vs stop-grad EMA target
+ VICReg variance/covariance (anti-collapse). Offsets 1/2/4/8.RESULTS.md.jepa_fma_grounded.ckpt — a PyTorch Lightning checkpoint (state dict +
hyper-parameters). ~103 MB.1import copy, torch
2from huggingface_hub import hf_hub_download
3from tajepa.models.jepa import JEPA # pip install "tajepa @ git+https://github.com/thias42/ta-jepa.git"
4
5ck = torch.load(hf_hub_download("Maeich/ta-jepa-anticipation", "jepa_fma_grounded.ckpt"),
6 map_location="cpu", weights_only=False)
7hp, sd = ck["hyper_parameters"], ck["state_dict"]
8jepa = JEPA(in_dim=hp["in_dim"], dim=hp["dim"], enc_depth=hp["enc_depth"],
9 pred_depth=hp["pred_depth"], heads=hp["heads"],
10 offsets=tuple(hp["offsets"]), dropout=hp.get("dropout", 0.0))
11jepa.load_state_dict({k[5:]: v for k, v in sd.items() if k.startswith("jepa.")}, strict=False)
12target = copy.deepcopy(jepa.encoder) # EMA target encoder (prediction targets)
13target.load_state_dict({k[7:]: v for k, v in sd.items() if k.startswith("target.")})
14jepa.eval(); target.eval()