Add dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
pretty_name: jepa.cpp parity fixtures
|
| 4 |
+
size_categories:
|
| 5 |
+
- n<1K
|
| 6 |
+
tags:
|
| 7 |
+
- jepa
|
| 8 |
+
- jepa.cpp
|
| 9 |
+
- ggml
|
| 10 |
+
- gguf
|
| 11 |
+
- parity
|
| 12 |
+
- golden-references
|
| 13 |
+
- regression-testing
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# jepa.cpp parity fixtures
|
| 17 |
+
|
| 18 |
+
PyTorch golden reference dumps for [**jepa.cpp**](https://github.com/aselimc/jepa.cpp), a ggml-based
|
| 19 |
+
C/C++ inference engine for the JEPA family. `tests/test-parity` and `tests/test-predictor` replay
|
| 20 |
+
these tensors through the engine and gate per-token cosine, pooled outputs and classifier top-1/top-5
|
| 21 |
+
against per-family thresholds.
|
| 22 |
+
|
| 23 |
+
Generated from jepa.cpp `main` @ [`4665029`](https://github.com/aselimc/jepa.cpp/commit/4665029) with
|
| 24 |
+
`scripts/dump_reference.py --model all`, in float32 eval mode on 32 CPU threads, no autocast:
|
| 25 |
+
torch 2.13.0+cpu, transformers 5.16.1.
|
| 26 |
+
|
| 27 |
+
## Contents
|
| 28 |
+
|
| 29 |
+
| directory | model | samples | size |
|
| 30 |
+
|---|---|---|---|
|
| 31 |
+
| `ref/ijepa-vith14-1k/` | I-JEPA ViT-H/14 | 8 COCO images | 15 MB |
|
| 32 |
+
| `ref/lejepa-vits16/` | LeJEPA ViT-S/16 | 8 COCO images | 7.1 MB |
|
| 33 |
+
| `ref/lewm-pusht/` | LeWorldModel Push-T | 2 images + a 3-frame causal rollout | 3.4 MB |
|
| 34 |
+
| `ref/vjepa2-vitl-fpc64-256/` | V-JEPA 2 ViT-L/16 | 2 clips x {16, 64} frames, encoder + predictor | 350 MB |
|
| 35 |
+
| `ref/vjepa2-vitl-fpc16-256-ssv2/` | V-JEPA 2 ViT-L SSv2 classifier | 2 clips x 16 frames, encoder + pooler + logits | 54 MB |
|
| 36 |
+
| `ref/vjepa2_1-vitb-384/` | V-JEPA 2.1 ViT-B/16 @384 | 1 clip x 16 frames + 2 images | 102 MB |
|
| 37 |
+
| `ref/levjepa-vitl16/` | LeVJEPA ViT-L/16 | 2 clips x 16 frames + 2 still images | 130 MB |
|
| 38 |
+
|
| 39 |
+
156 files, 660 MB in total.
|
| 40 |
+
|
| 41 |
+
## Layout
|
| 42 |
+
|
| 43 |
+
One directory per model, each with a `manifest.json` and one `.npy` per tensor per sample, named
|
| 44 |
+
`<sample>.<tensor>.npy`. All arrays are float32 C-order except `frames_u8` (uint8) and `top5_idx`
|
| 45 |
+
(int64). Shapes carry no batch dimension except `input`, which is stored exactly as fed to the model
|
| 46 |
+
(batch = 1).
|
| 47 |
+
|
| 48 |
+
The manifest records the model id, the exact hyper-parameters, the preprocessing pipeline that
|
| 49 |
+
produced `input` (resize mode, resampler, crop, mean/std), the PyTorch forward wall time per sample
|
| 50 |
+
(`timing_s.forward_s`, the baseline for the speed tables of the jepa.cpp docs), the frame indices
|
| 51 |
+
sampled from each clip, and the 174 Something-Something-v2 label strings for the classifier. The
|
| 52 |
+
`source` field is the absolute path of the checkout that generated the dump.
|
| 53 |
+
|
| 54 |
+
Per-model tensor lists and the exact preprocessing recipe:
|
| 55 |
+
[**docs/fixtures.md**](https://aselimc.github.io/jepa.cpp/fixtures/).
|
| 56 |
+
|
| 57 |
+
## How jepa.cpp consumes it
|
| 58 |
+
|
| 59 |
+
```bash
|
| 60 |
+
git clone --recursive https://github.com/aselimc/jepa.cpp && cd jepa.cpp
|
| 61 |
+
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release && cmake --build build -j
|
| 62 |
+
|
| 63 |
+
scripts/download_fixtures.sh # this dataset -> tests/fixtures/ref, plus the media it needs
|
| 64 |
+
scripts/download_models.sh small # GGUFs from https://huggingface.co/jepacpp
|
| 65 |
+
|
| 66 |
+
cmake -S . -B build && ctest --test-dir build # parity suites register once ref/ and models/gguf/ exist
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
A single replay, without ctest:
|
| 70 |
+
|
| 71 |
+
```bash
|
| 72 |
+
build/test-parity models/gguf/lejepa-vits16-pretrain-in1k-f16.gguf \
|
| 73 |
+
tests/fixtures/ref/lejepa-vits16 --threads 32 --json out.json
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
`test-parity` runs two passes per file: first the stored `input` tensor (bypassing preprocessing, so a
|
| 77 |
+
graph bug shows up alone), then jepa.cpp's own preprocessor on the source media (so a preprocessing
|
| 78 |
+
mismatch shows up separately). The second pass needs `tests/fixtures/media/`, which is **not** part of
|
| 79 |
+
this dataset — see below.
|
| 80 |
+
|
| 81 |
+
## Input provenance
|
| 82 |
+
|
| 83 |
+
The dumps are model outputs computed on two public research sets. Neither the source images nor the
|
| 84 |
+
source videos are redistributed here; only the reference activations and the decoded frame tensors the
|
| 85 |
+
tests replay are.
|
| 86 |
+
|
| 87 |
+
| input | source | fetched by |
|
| 88 |
+
|---|---|---|
|
| 89 |
+
| 8 images `coco_*.jpg` | [COCO val2017](https://cocodataset.org/), images subject to their original Flickr terms | tracked in the jepa.cpp git repo |
|
| 90 |
+
| 6 clips (`archery`, `bowling`, `flying_kite`, `high_jump`, `high_jump2`, `marching`) | [`nateraw/kinetics-mini`](https://huggingface.co/datasets/nateraw/kinetics-mini), a small sample of Kinetics-400 | `scripts/download_fixtures.sh` |
|
| 91 |
+
|
| 92 |
+
The `input` and `frames_u8` arrays inside `ref/` are preprocessed pixels of those 8 images and 6 clips
|
| 93 |
+
(16 or 64 sampled frames each), kept because the parity tests must feed the network exactly the tensor
|
| 94 |
+
PyTorch saw. If you hold rights in any of the underlying material and want it removed, open an issue on
|
| 95 |
+
[github.com/aselimc/jepa.cpp](https://github.com/aselimc/jepa.cpp/issues).
|
| 96 |
+
|
| 97 |
+
## Licence
|
| 98 |
+
|
| 99 |
+
`cc-by-nc-4.0`, the most restrictive licence among the checkpoints whose outputs are stored here:
|
| 100 |
+
`ref/ijepa-vith14-1k` and `ref/levjepa-vitl16` are outputs of CC BY-NC 4.0 models
|
| 101 |
+
([facebook/ijepa_vith14_1k](https://huggingface.co/facebook/ijepa_vith14_1k),
|
| 102 |
+
[galilai-group/LeVJEPA-VideoMix-Large](https://huggingface.co/galilai-group/LeVJEPA-VideoMix-Large));
|
| 103 |
+
the other five directories are outputs of MIT / Apache-2.0 models. Research and non-commercial use.
|
| 104 |
+
|
| 105 |
+
## Regenerating instead of downloading
|
| 106 |
+
|
| 107 |
+
```bash
|
| 108 |
+
scripts/download_fixtures.sh # media
|
| 109 |
+
scripts/download_models.sh all # source checkpoints
|
| 110 |
+
.venv/bin/python scripts/dump_reference.py --model all # ~1 min on 32 cores
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
Needs the project venv (torch CPU, transformers, av, pillow, timm, einops).
|
| 114 |
+
|
| 115 |
+
## Links
|
| 116 |
+
|
| 117 |
+
- Code: <https://github.com/aselimc/jepa.cpp>
|
| 118 |
+
- Documentation: <https://aselimc.github.io/jepa.cpp/>
|
| 119 |
+
- GGUF models: <https://huggingface.co/jepacpp>
|