The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: ValueError
Message: Dataset 'ep_len' has length 1000 but expected 60000
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 150, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 274, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 130, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 579, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3074, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2578, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2603, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 577, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/hdf5/hdf5.py", line 76, in _generate_tables
num_rows = _check_dataset_lengths(h5, self.info.features)
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/hdf5/hdf5.py", line 353, in _check_dataset_lengths
raise ValueError(f"Dataset '{path}' has length {dset.shape[0]} but expected {num_rows}")
ValueError: Dataset 'ep_len' has length 1000 but expected 60000Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Grid9 L0: empty board
Level L0 of Grid9, a suite of six 9x9 grid worlds (L0-L5) for action-conditioned world models.
Each level adds one difficulty to the same small world, so a model can be trained in minutes and
its failures attributed to one cause. This level tests plain movement, the baseline for the other levels. The worlds are exactly known: the
state is recorded with every frame, and grid9_env.py computes exact shortest-path distances and
transition matrices for L0, L1, L2 and L4.
| Level | Dataset | Difficulty |
|---|---|---|
| L0 | grid9-l0-empty | empty board: plain movement, the baseline for the other levels |
| L1 | grid9-l1-maze | S-maze: walls and one-cell doorways that force detours |
| L2 | grid9-l2-distractor | maze with distractors: exogenous motion the model should ignore |
| L3 | grid9-l3-push | pushable block: sparse contact and irreversible corners |
| L4 | grid9-l4-stochastic | bimodal slip: two-outcome stochastic dynamics |
| L5 | grid9-l5-wind | hidden wind, biased policy: partial observability and off-uniform data |
World
- Empty 9x9 board. The agent moves one cell per step; a move off the board leaves it in place.
- Frames: 72x72 RGB, 8x8 pixels per cell. Light background (235) with grid lines (210), walls in dark slate (45, 52, 64), the agent as a blue disc (38, 110, 235).
- Actions: 5 discrete moves (stay, up, down, left, right), stored as
(d_row, d_col)vectors in {-1, 0, 1}^2. The environment also accepts continuous actions in [-1, 1]^2, mapped to the dominant axis, or to stay when both components are below 0.25, so continuous planners such as CEM run on it. - Behavior policy: uniform over the 5 actions.
- Episodes: 1000 episodes of 60 frames, each starting at a uniform free cell.
Columns
One row per frame (60000 rows), in the LeWM / stable-worldmodel HDF5 layout:
| Column | Type | Shape | Meaning |
|---|---|---|---|
pixels |
uint8 | (N, 72, 72, 3) | Frame t |
action |
float32 | (N, 2) | Commanded action from frame t to t + 1, as (d_row, d_col) (the last action of an episode has no recorded result) |
state |
float32 | (N, 6) | [agent_row, agent_col, 0, 0, 0, 0] |
ep_idx |
int32 | (N,) | Episode id |
step_idx |
int64 | (N,) | Frame index t within the episode |
id |
int64 | (N,) | Row index |
ep_len |
int32 | (1000,) | Episode lengths (all 60) |
ep_offset |
int64 | (1000,) | First row of each episode |
Rows and columns count from the top-left cell. pixels is gzip-compressed with one chunk per frame;
h5py reads it without extra plugins. Each row is one environment step, so train with frameskip 1.
Generation
grid9_env.py (the worlds and exact solvers) and gen_grid9_datasets.py (the generator) are in this
repository. All six levels come from one command:
python gen_grid9_datasets.py --out-dir . --num-episodes 1000 --ep-len 60 --seed 0
The generator seeds level i (L0 = 0, ..., L5 = 5) with seed + 100 * i by its position in
--levels, so this level uses seed 0. Generating it alone with --levels l0 would use seed 0;
call generate_level("l0", out_dir, 1000, 60, seed=0) instead. The arrays of this file are
identical to a regeneration with that seed (checked before upload).
Download
hf download CleanJepa/grid9-l0-empty grid_l0.h5 --repo-type dataset --local-dir data/grid9
With CleanJepa, train on it directly:
python recipes/train_wm.py --preset lewm --data data/grid9/grid_l0.h5 --frameskip 1 --save-dir runs/grid9_l0
python recipes/eval_grid9.py --ckpt runs/grid9_l0/epoch_10.pt --level l0
eval_grid9.py plans with the model in the same world (cleanjepa.data.grid9, a PyTorch version
of grid9_env.py that draws the same frames) and reports the success rate next to a random-move
baseline.
License
MIT
- Downloads last month
- 34