Skip to content

Fix LeRobot v3 export metadata compatibility - #815

Open
harsh21234i wants to merge 3 commits into
Hebbian-Robotics:mainfrom
harsh21234i:fix/778-lerobot-v3-metadata
Open

harsh21234i wants to merge 3 commits into
Hebbian-Robotics:mainfrom
harsh21234i:fix/778-lerobot-v3-metadata

Conversation

@harsh21234i

@harsh21234i harsh21234i commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #778 by writing LeRobot v3 metadata and task registries in the format expected by lerobot==0.4.4.

  • Add codebase_version, total_tasks, range-form splits.train, and standard chunk/file-size metadata.
  • Write tasks.parquet with pandas index metadata using PyArrow, so the exporter does not add a pandas runtime dependency.
  • Preserve sparse source task IDs for LeRobot's positional task lookup, reject IDs above 100,000 before allocating the padded table, and read names from unnamed source indexes.
  • Validate the official-loader metadata fields and document that earlier exports need regeneration.
  • Add regression coverage and an opt-in test using LeRobot's public metadata loader (HFLOW_LEROBOT_TESTS=1).

Validation

  • Ruff checks and formatting passed.
  • Python syntax compilation and git diff --check passed.
  • An isolated Parquet round-trip passed for an unnamed source index and sparse positional lookup.
  • The focused pytest suite could not collect on this Windows host because HFlow imports Linux-only fcntl. The official-loader opt-in test was not run.

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the previously reported test failure is fixed.

Summary

Updates LeRobot v3 exports with loader-compatible metadata and task tables.

  • LeRobot exports now include the metadata its v3 loader expects.
  • Sparse task IDs keep their positions in exported task tables.

Reviews (3) · Last reviewed commit: "Fix metadata validation tests and option..." · Reviewed by Greptile

Comment thread examples/lerobot/export.py Resolved
Comment thread examples/lerobot/export.py Resolved
Comment thread examples/lerobot/export.py Resolved

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: LeRobot v3 exports cannot be opened by the official lerobot loader (KeyError: 'codebase_version')

1 participant