1 episode has a stale shard pointer from the v3 converter rollover (396)

#3
by vedevpatel - opened

While auditing v3 datasets for the converter bug from huggingface/lerobot#2401, I found this dataset has 1 affected episode out of 418. At the converter's file-size rollover, the boundary episode was written into the new shard but its meta/episodes data/chunk_index + data/file_index still point at the previous one.

Checked at revision 02cb29161f5adb2981a072aa35b408d82a556d07:

episode metadata points at rows actually in
396 data/chunk-000/file-000.parquet data/chunk-000/file-001.parquet

Episode 396 is the first episode of file-001 - the rollover boundary (file-000 ends at episode 395).

Impact: LeRobot's v3 metadata-driven loader only reads the metadata-named files, so this episode drops out of training. Loaders that read shards directly still see all 418.

The upstream bug is fixed in lerobot (#2401 closed March 2026), so re-exporting the dataset with a current lerobot repairs it. Patching the episode's data/chunk_index and data/file_index in meta/episodes directly would also work.

Found with kinema's new episode-file-pointers check (github.com/vedevpatel/kinema)

Sign up or log in to comment