WOD-E2E Fast-dDrive SASD TPU-ready Parquet (400-sample subset, private)
Browse files- README.md +82 -0
- dataset_info_train.json +32 -0
- load_example.py +26 -0
- train-00000-of-00007.parquet +3 -0
- train-00001-of-00007.parquet +3 -0
- train-00002-of-00007.parquet +3 -0
- train-00003-of-00007.parquet +3 -0
- train-00004-of-00007.parquet +3 -0
- train-00005-of-00007.parquet +3 -0
- train-00006-of-00007.parquet +3 -0
README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: WOD-E2E Fast-dDrive SASD (TPU-ready)
|
| 3 |
+
license: other
|
| 4 |
+
license_name: waymo-open-dataset-license
|
| 5 |
+
license_link: https://waymo.com/open/terms/
|
| 6 |
+
tags:
|
| 7 |
+
- autonomous-driving
|
| 8 |
+
- waymo-open-dataset
|
| 9 |
+
- vision-language-action
|
| 10 |
+
- diffusion-language-model
|
| 11 |
+
- tpu
|
| 12 |
+
size_categories:
|
| 13 |
+
- n<1K
|
| 14 |
+
configs:
|
| 15 |
+
- config_name: default
|
| 16 |
+
data_files:
|
| 17 |
+
- split: train
|
| 18 |
+
path: train-*.parquet
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# WOD-E2E Fast-dDrive SASD — TPU-ready training shards
|
| 22 |
+
|
| 23 |
+
Pre-tokenized **Section-Aware Structured Diffusion (SASD)** training samples for the
|
| 24 |
+
Fast-dDrive Qwen2.5-VL-3B block-diffusion driving model, packaged as sharded Apache
|
| 25 |
+
Parquet for **multi-host TPU training** (grain / `datasets` / MaxText `hf` data path).
|
| 26 |
+
|
| 27 |
+
Each row is one Waymo Open Dataset End-to-End (WOD-E2E) front-camera frame, already run
|
| 28 |
+
through the Fast-dDrive prep (chat template + Qwen2.5-VL processor + deep-JSON scaffold +
|
| 29 |
+
3D M-RoPE positions + per-section block indices), so the TPU side needs **no tokenizer,
|
| 30 |
+
no processor, no torch** — it just loads arrays and trains.
|
| 31 |
+
|
| 32 |
+
> ⚠️ **PRIVATE / license-restricted.** This data is derived from the Waymo Open Dataset and
|
| 33 |
+
> is shared **privately** under the [WOD License](https://waymo.com/open/terms/), which
|
| 34 |
+
> prohibits redistribution. Do not make this dataset public or share it outside your
|
| 35 |
+
> licensed use.
|
| 36 |
+
|
| 37 |
+
## Honest limitations (read before using)
|
| 38 |
+
- **Pseudo text labels.** WOD-E2E ships **no native text targets**. `trajectory` and
|
| 39 |
+
`future_meta_behavior` derive from real GT / ego-intent; `critical_objects` and
|
| 40 |
+
`explanation` are **heuristic pseudo-labels**. Train/eval accordingly.
|
| 41 |
+
- **Subset.** This is a ~400-frame representative subset. The full 263-shard WOD-E2E train
|
| 42 |
+
split runs through the identical 3-stage pipeline (see "Provenance").
|
| 43 |
+
- **Not TPU-verified by the author.** The packaging + decode is bit-exact verified on CPU/GPU;
|
| 44 |
+
end-to-end TPU training is the intended downstream use, validated on emulation + a single GPU.
|
| 45 |
+
|
| 46 |
+
## Schema (per row)
|
| 47 |
+
Scalars: `sample_id (str)`, `L (int32)`, `n_blocks (int32)`.
|
| 48 |
+
Arrays — each a little-endian binary blob + a `<name>_shape` int list:
|
| 49 |
+
|
| 50 |
+
| column | dtype | shape | meaning |
|
| 51 |
+
|---|---|---|---|
|
| 52 |
+
| `input_ids` | int64 | [L] | token ids (mask-padded to multiple of bd_size=32) |
|
| 53 |
+
| `labels` | int64 | [L] | -100 except assistant-response tokens |
|
| 54 |
+
| `rbi` | int32 | [L] | response-block index per token (-1 = none) |
|
| 55 |
+
| `turn` | int32 | [L] | turn index for the hybrid block-causal mask |
|
| 56 |
+
| `scaffold` | bool | [L] | fixed JSON-scaffold positions (never noised) |
|
| 57 |
+
| `weight_vec` | float32 | [L] | per-token section-importance weight |
|
| 58 |
+
| `block_alpha` / `block_beta` | float32 | [n_blocks] | per-block Beta noise schedule |
|
| 59 |
+
| `position_ids` | int32 | [3, L] | 3D M-RoPE positions |
|
| 60 |
+
| `vision_mask` | bool | [L] | image/vision-start token positions |
|
| 61 |
+
| `pixel_values` | float16 | [N, 1176] | Qwen2.5-VL patch features (3 front cams) |
|
| 62 |
+
| `image_grid_thw` | int64 | [n_img, 3] | per-image temporal/height/width grid |
|
| 63 |
+
|
| 64 |
+
## Reconstruct (numpy, framework-free)
|
| 65 |
+
```python
|
| 66 |
+
import numpy as np, pyarrow.parquet as pq
|
| 67 |
+
ARRAY_DTYPES = { # see dataset_info_train.json
|
| 68 |
+
"input_ids":"int64","labels":"int64","rbi":"int32","turn":"int32","scaffold":"bool",
|
| 69 |
+
"weight_vec":"float32","block_alpha":"float32","block_beta":"float32",
|
| 70 |
+
"position_ids":"int32","vision_mask":"bool","pixel_values":"float16","image_grid_thw":"int64"}
|
| 71 |
+
row = pq.read_table("train-00000-of-00007.parquet").to_pylist()[0]
|
| 72 |
+
def dec(name): return np.frombuffer(row[name], np.dtype(ARRAY_DTYPES[name])).reshape(row[name+"_shape"])
|
| 73 |
+
input_ids = dec("input_ids"); pixel_values = dec("pixel_values")
|
| 74 |
+
```
|
| 75 |
+
See `load_example.py` for a runnable version.
|
| 76 |
+
|
| 77 |
+
## Provenance (3-stage pipeline, reproducible at full scale)
|
| 78 |
+
1. `fast_ddrive/data/convert_wod_e2e.py` (autovla env): tfrecord → train JSON + JPEGs (`--with_target`).
|
| 79 |
+
2. `jax_ddrive/eval/prep_train_jax.py` (ddrive env): JSON+JPEGs → per-sample SASD npz.
|
| 80 |
+
3. `jax_ddrive/ddrive_jax/convert/prep_to_parquet.py` → these Parquet shards.
|
| 81 |
+
|
| 82 |
+
Model: `Efficient-Large-Model/Fast-dDrive` (Qwen2.5-VL-3B block-diffusion VLA).
|
dataset_info_train.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"split": "train",
|
| 3 |
+
"num_samples": 400,
|
| 4 |
+
"num_shards": 7,
|
| 5 |
+
"shard_size": 64,
|
| 6 |
+
"array_dtypes": {
|
| 7 |
+
"input_ids": "int64",
|
| 8 |
+
"labels": "int64",
|
| 9 |
+
"rbi": "int32",
|
| 10 |
+
"turn": "int32",
|
| 11 |
+
"scaffold": "bool",
|
| 12 |
+
"weight_vec": "float32",
|
| 13 |
+
"block_alpha": "float32",
|
| 14 |
+
"block_beta": "float32",
|
| 15 |
+
"position_ids": "int32",
|
| 16 |
+
"vision_mask": "bool",
|
| 17 |
+
"pixel_values": "float16",
|
| 18 |
+
"image_grid_thw": "int64"
|
| 19 |
+
},
|
| 20 |
+
"shape_suffix": "_shape",
|
| 21 |
+
"byte_order": "little",
|
| 22 |
+
"reconstruct": "np.frombuffer(row[name], dtype=ARRAY_DTYPES[name]).reshape(row[name+'_shape'])",
|
| 23 |
+
"files": [
|
| 24 |
+
"train-00000-of-00007.parquet",
|
| 25 |
+
"train-00001-of-00007.parquet",
|
| 26 |
+
"train-00002-of-00007.parquet",
|
| 27 |
+
"train-00003-of-00007.parquet",
|
| 28 |
+
"train-00004-of-00007.parquet",
|
| 29 |
+
"train-00005-of-00007.parquet",
|
| 30 |
+
"train-00006-of-00007.parquet"
|
| 31 |
+
]
|
| 32 |
+
}
|
load_example.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Runnable example: load the WOD-E2E Fast-dDrive SASD Parquet shards and reconstruct one
|
| 2 |
+
sample, framework-free (numpy + pyarrow only). Works on a TPU host, GPU box, or CPU.
|
| 3 |
+
|
| 4 |
+
python load_example.py # reads local ./train-*.parquet
|
| 5 |
+
python load_example.py <dir> # reads <dir>/train-*.parquet
|
| 6 |
+
"""
|
| 7 |
+
import glob, json, os, sys
|
| 8 |
+
import numpy as np
|
| 9 |
+
import pyarrow.parquet as pq
|
| 10 |
+
|
| 11 |
+
d = sys.argv[1] if len(sys.argv) > 1 else "."
|
| 12 |
+
info = json.load(open(os.path.join(d, "dataset_info_train.json")))
|
| 13 |
+
ADT = info["array_dtypes"]
|
| 14 |
+
|
| 15 |
+
paths = sorted(glob.glob(os.path.join(d, "train-*.parquet")))
|
| 16 |
+
row = pq.read_table(paths[0]).to_pylist()[0]
|
| 17 |
+
|
| 18 |
+
def dec(name):
|
| 19 |
+
return np.frombuffer(row[name], np.dtype(ADT[name])).reshape(tuple(row[name + "_shape"]))
|
| 20 |
+
|
| 21 |
+
print(f"shards={len(paths)} num_samples={info['num_samples']} sample_id={row['sample_id']}")
|
| 22 |
+
print(f"L={row['L']} n_blocks={row['n_blocks']}")
|
| 23 |
+
for name in ADT:
|
| 24 |
+
a = dec(name)
|
| 25 |
+
print(f" {name:16s} {str(a.shape):14s} {a.dtype}")
|
| 26 |
+
print("input_ids[:12] =", dec("input_ids")[:12].tolist())
|
train-00000-of-00007.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd406d05a1296b251c79c14b1d58464b2c59d8b4cd27332ca2d287aba53951b2
|
| 3 |
+
size 30241610
|
train-00001-of-00007.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0594e5dd26b09e7cceaf9d9754daaafb23ef5eabb01b300fce1a2f5bf9e7fb68
|
| 3 |
+
size 28643718
|
train-00002-of-00007.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f45d1951e398072b13254749b19a8349678d728cb0fc3d90745fc59fa0b48a67
|
| 3 |
+
size 28514041
|
train-00003-of-00007.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b806f980f7bcea3d2cc7b3fae745324b2a34b504dcfaed9479316e17ca6da4da
|
| 3 |
+
size 28859901
|
train-00004-of-00007.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ecab0eb5739c8e7cbdae4f2ce5419a05948ecb2437d8ffb1e205cc3d2c68b98f
|
| 3 |
+
size 30087414
|
train-00005-of-00007.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0cfb38fba68cb3e0877b1edbf7e101d72045dc9f537b0baf228d5d3659337b1d
|
| 3 |
+
size 29171254
|
train-00006-of-00007.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b7f73f7f7a611dee2d1c2cf4ad5c37e1d1dc4401523a28cf192506fbc167545a
|
| 3 |
+
size 7620718
|