Expose root tables as named dataset configs
Browse files
README.md
CHANGED
|
@@ -9,6 +9,20 @@ tags:
|
|
| 9 |
- pretraining
|
| 10 |
- v-jepa
|
| 11 |
- deduplication
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
# V-JEPA Reproduce Recipe
|
|
@@ -39,14 +53,13 @@ remains reachable.
|
|
| 39 |
## Layout
|
| 40 |
|
| 41 |
```text
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
runs/<run_id>/source_coverage.parquet
|
| 50 |
```
|
| 51 |
|
| 52 |
- `samples`: exact `(platform, video_id, millisecond interval)` identities.
|
|
@@ -69,9 +82,10 @@ from this release.
|
|
| 69 |
## Load with Hugging Face Datasets
|
| 70 |
|
| 71 |
Authentication is required because the repository is private; export a token
|
| 72 |
-
with read access as `HF_TOKEN`.
|
| 73 |
-
|
| 74 |
-
|
|
|
|
| 75 |
|
| 76 |
Assign the 256 hash buckets across workers so each worker opens only its own
|
| 77 |
shards:
|
|
@@ -80,21 +94,7 @@ shards:
|
|
| 80 |
from datasets import load_dataset
|
| 81 |
|
| 82 |
repo_id = "BootsofLagrangian/V-JEPA-Reproduce-Recipe"
|
| 83 |
-
|
| 84 |
-
run_id = "823483f781094a668cf6682828723d16"
|
| 85 |
-
bucket = "00"
|
| 86 |
-
|
| 87 |
-
samples = load_dataset(
|
| 88 |
-
"parquet",
|
| 89 |
-
data_files={
|
| 90 |
-
"train": (
|
| 91 |
-
f"hf://datasets/{repo_id}@{revision}/runs/{run_id}/samples/"
|
| 92 |
-
f"dedup_bucket={bucket}/*.parquet"
|
| 93 |
-
)
|
| 94 |
-
},
|
| 95 |
-
split="train",
|
| 96 |
-
streaming=True,
|
| 97 |
-
)
|
| 98 |
|
| 99 |
web_train = samples.filter(
|
| 100 |
lambda row: (
|
|
@@ -105,7 +105,9 @@ web_train = samples.filter(
|
|
| 105 |
)
|
| 106 |
```
|
| 107 |
|
| 108 |
-
For source lineage, load
|
|
|
|
|
|
|
| 109 |
|
| 110 |
```python
|
| 111 |
dataset_id = "howto100m"
|
|
@@ -113,7 +115,7 @@ memberships = load_dataset(
|
|
| 113 |
"parquet",
|
| 114 |
data_files={
|
| 115 |
"train": (
|
| 116 |
-
f"hf://datasets/{repo_id}
|
| 117 |
f"dataset_id={dataset_id}/**/*.parquet"
|
| 118 |
)
|
| 119 |
},
|
|
@@ -122,6 +124,12 @@ memberships = load_dataset(
|
|
| 122 |
)
|
| 123 |
```
|
| 124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
## Exact-dedup boundary
|
| 126 |
|
| 127 |
This release removes exact repeated memberships at identical platform, video
|
|
@@ -132,10 +140,10 @@ dataset membership.
|
|
| 132 |
|
| 133 |
## Publication verification
|
| 134 |
|
| 135 |
-
Data commit `
|
| 136 |
-
|
| 137 |
-
41,557,605,
|
| 138 |
-
|
| 139 |
its remote Hub object. Pinned streaming loads each returned a row from one
|
| 140 |
representative `samples` shard, one `assets` shard, and one `memberships`
|
| 141 |
partition.
|
|
|
|
| 9 |
- pretraining
|
| 10 |
- v-jepa
|
| 11 |
- deduplication
|
| 12 |
+
configs:
|
| 13 |
+
- config_name: samples
|
| 14 |
+
data_files:
|
| 15 |
+
- split: train
|
| 16 |
+
path: "samples/**/*.parquet"
|
| 17 |
+
default: true
|
| 18 |
+
- config_name: assets
|
| 19 |
+
data_files:
|
| 20 |
+
- split: train
|
| 21 |
+
path: "assets/**/*.parquet"
|
| 22 |
+
- config_name: memberships
|
| 23 |
+
data_files:
|
| 24 |
+
- split: train
|
| 25 |
+
path: "memberships/**/*.parquet"
|
| 26 |
---
|
| 27 |
|
| 28 |
# V-JEPA Reproduce Recipe
|
|
|
|
| 53 |
## Layout
|
| 54 |
|
| 55 |
```text
|
| 56 |
+
manifest.json
|
| 57 |
+
samples/dedup_bucket=00..ff/*.parquet
|
| 58 |
+
assets/dedup_bucket=00..ff/*.parquet
|
| 59 |
+
memberships/dataset_id=<name>/dedup_bucket=00..ff/*.parquet
|
| 60 |
+
dataset_roles.parquet
|
| 61 |
+
dataset_stats.parquet
|
| 62 |
+
source_coverage.parquet
|
|
|
|
| 63 |
```
|
| 64 |
|
| 65 |
- `samples`: exact `(platform, video_id, millisecond interval)` identities.
|
|
|
|
| 82 |
## Load with Hugging Face Datasets
|
| 83 |
|
| 84 |
Authentication is required because the repository is private; export a token
|
| 85 |
+
with read access as `HF_TOKEN`. The repository exposes three named
|
| 86 |
+
configurations. `samples` is the default, so both the bare call and an explicit
|
| 87 |
+
`"samples"` select the deduplicated interval table. Use `"assets"` or
|
| 88 |
+
`"memberships"` for the other schemas.
|
| 89 |
|
| 90 |
Assign the 256 hash buckets across workers so each worker opens only its own
|
| 91 |
shards:
|
|
|
|
| 94 |
from datasets import load_dataset
|
| 95 |
|
| 96 |
repo_id = "BootsofLagrangian/V-JEPA-Reproduce-Recipe"
|
| 97 |
+
samples = load_dataset(repo_id, "samples", split="train", streaming=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
|
| 99 |
web_train = samples.filter(
|
| 100 |
lambda row: (
|
|
|
|
| 105 |
)
|
| 106 |
```
|
| 107 |
|
| 108 |
+
For source lineage, load the memberships configuration and filter by
|
| 109 |
+
`dataset_id`, or address a source partition directly when minimizing shard
|
| 110 |
+
discovery matters:
|
| 111 |
|
| 112 |
```python
|
| 113 |
dataset_id = "howto100m"
|
|
|
|
| 115 |
"parquet",
|
| 116 |
data_files={
|
| 117 |
"train": (
|
| 118 |
+
f"hf://datasets/{repo_id}/memberships/"
|
| 119 |
f"dataset_id={dataset_id}/**/*.parquet"
|
| 120 |
)
|
| 121 |
},
|
|
|
|
| 124 |
)
|
| 125 |
```
|
| 126 |
|
| 127 |
+
`revision=` is optional for ordinary use because `main` is the current release.
|
| 128 |
+
For reproducible training, pass the immutable data commit shown below to
|
| 129 |
+
`load_dataset(repo_id, "samples", ..., revision=revision)` or add
|
| 130 |
+
`@<revision>` to an `hf://` URL. The manifest run ID remains inside
|
| 131 |
+
`manifest.json` as provenance; it is not part of the Hub path.
|
| 132 |
+
|
| 133 |
## Exact-dedup boundary
|
| 134 |
|
| 135 |
This release removes exact repeated memberships at identical platform, video
|
|
|
|
| 140 |
|
| 141 |
## Publication verification
|
| 142 |
|
| 143 |
+
Data commit `ROOT_DATA_COMMIT_PENDING` is the immutable revision for this
|
| 144 |
+
release. The upload was checked as 3,293 data objects totaling
|
| 145 |
+
41,557,605,070 bytes: 3,292 Parquet shards plus `manifest.json`. Every local
|
| 146 |
+
object size and SHA-256 matched
|
| 147 |
its remote Hub object. Pinned streaming loads each returned a row from one
|
| 148 |
representative `samples` shard, one `assets` shard, and one `memberships`
|
| 149 |
partition.
|