aselimc commited on
Commit
5b6a7d4
·
verified ·
1 Parent(s): 246cf6b

Update dataset card

Browse files
Files changed (1) hide show
  1. README.md +31 -49
README.md CHANGED
@@ -15,43 +15,37 @@ tags:
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
@@ -63,14 +57,7 @@ cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release && cmake --build build -
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
@@ -87,31 +74,26 @@ tests replay are.
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>
 
15
 
16
  # jepa.cpp parity fixtures
17
 
18
+ PyTorch golden reference dumps for [**jepa.cpp**](https://github.com/aselimc/jepa.cpp), a ggml-based C/C++ inference engine for the
19
+ JEPA family. `tests/test-parity` and `tests/test-predictor` replay these tensors through the engine and
20
+ gate per-token cosine, pooled outputs and classifier top-1/top-5 against per-family thresholds.
 
21
 
22
+ Generated from jepa.cpp `main` @ [`3c9d60b`](https://github.com/aselimc/jepa.cpp/commit/3c9d60b) with
23
+ `scripts/dump_reference.py --model all`, in float32 eval mode on 32 CPU threads, no autocast.
 
24
 
25
  ## Contents
26
 
27
+ | directory | model | files | size |
28
+ |---|---|---:|---:|
29
+ | `ref/ijepa-vith14-1k/` | I-JEPA ViT-H/14 (IN1k) | 25 | 15 MB |
30
+ | `ref/lejepa-vits16/` | LeJEPA ViT-S/16 (IN1k) | 41 | 7 MB |
31
+ | `ref/levjepa-vitl16/` | LeVJEPA ViT-L/16 (VideoMix) | 21 | 136 MB |
32
+ | `ref/lewm-pusht/` | LeWorldModel Push-T | 20 | 3 MB |
33
+ | `ref/vjepa2-vitl-fpc16-256-ssv2/` | V-JEPA 2 ViT-L/16 SSv2 classifier | 13 | 56 MB |
34
+ | `ref/vjepa2-vitl-fpc64-256/` | V-JEPA 2 ViT-L/16 (fpc64, 256) | 21 | 366 MB |
35
+ | `ref/vjepa2_1-vitb-384/` | V-JEPA 2.1 ViT-B/16 @384 | 15 | 107 MB |
36
 
37
+ 156 files, 691 MB in total.
38
 
39
  ## Layout
40
 
41
  One directory per model, each with a `manifest.json` and one `.npy` per tensor per sample, named
42
  `<sample>.<tensor>.npy`. All arrays are float32 C-order except `frames_u8` (uint8) and `top5_idx`
43
+ (int64). Shapes carry no batch dimension except `input`, which is stored exactly as fed to the model.
 
44
 
45
+ The manifest records the model id, the hyper-parameters, the preprocessing pipeline that produced
46
+ `input`, the PyTorch forward wall time per sample (`timing_s.forward_s`, the baseline for the speed
47
+ tables of the jepa.cpp docs), the frame indices sampled from each clip, and the label strings for the
48
+ classifier. Per-model tensor lists and the exact preprocessing recipe:
 
 
 
49
  [**docs/fixtures.md**](https://aselimc.github.io/jepa.cpp/fixtures/).
50
 
51
  ## How jepa.cpp consumes it
 
57
  scripts/download_fixtures.sh # this dataset -> tests/fixtures/ref, plus the media it needs
58
  scripts/download_models.sh small # GGUFs from https://huggingface.co/jepacpp
59
 
60
+ cmake -S . -B build && ctest --test-dir build # the parity suites register at configure time
 
 
 
 
 
 
 
61
  ```
62
 
63
  `test-parity` runs two passes per file: first the stored `input` tensor (bypassing preprocessing, so a
 
74
  | input | source | fetched by |
75
  |---|---|---|
76
  | 8 images `coco_*.jpg` | [COCO val2017](https://cocodataset.org/), images subject to their original Flickr terms | tracked in the jepa.cpp git repo |
77
+ | 6 short clips | [`nateraw/kinetics-mini`](https://huggingface.co/datasets/nateraw/kinetics-mini), a small sample of Kinetics-400 | `scripts/download_fixtures.sh` |
78
 
79
+ The `input` and `frames_u8` arrays inside `ref/` are preprocessed pixels of those images and clips, kept
80
+ because the parity tests must feed the network exactly the tensor PyTorch saw. If you hold rights in any
81
+ of the underlying material and want it removed, open an issue on [github.com/aselimc/jepa.cpp](https://github.com/aselimc/jepa.cpp/issues).
 
82
 
83
  ## Licence
84
 
85
+ `cc-by-nc-4.0`, the most restrictive licence among the checkpoints whose outputs are stored here: the
86
+ dumps of I-JEPA ViT-H/14 (IN1k) and LeVJEPA ViT-L/16 (VideoMix) are outputs of CC BY-NC 4.0 models, the rest of MIT / Apache-2.0 ones.
87
+ Research and non-commercial use.
 
 
88
 
89
  ## Regenerating instead of downloading
90
 
91
  ```bash
92
+ scripts/download_fixtures.sh media # the source media
93
+ scripts/download_models.sh --convert all # the source checkpoints
94
+ .venv/bin/python scripts/dump_reference.py --model all # ~1 min on 32 cores
95
  ```
96
 
 
 
97
  ## Links
98
 
99
  - Code: <https://github.com/aselimc/jepa.cpp>