Skip to content

[python] Reduce LeRobot DataLoader worker startup time - #9888

Draft
XiaoHongbo-Hope wants to merge 4 commits into
apache:masterfrom
XiaoHongbo-Hope:codex/atomic-s3-metadata-independent
Draft

XiaoHongbo-Hope wants to merge 4 commits into
apache:masterfrom
XiaoHongbo-Hope:codex/atomic-s3-metadata-independent

Conversation

@XiaoHongbo-Hope

@XiaoHongbo-Hope XiaoHongbo-Hope commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

LeRobot's in-memory episode Dataset makes forkserver worker payloads exceed the process pipe capacity, delaying the first batch. Compress the standard pickle for Paimon-created episode metadata; workers restore the original Dataset state.

ALOHA CPU/local, 8 forkserver workers: first-batch median 7.83s (3 seeds; unoptimized: 27.72s). Hot throughput stays near 62 samples/s, and sample order matches. PyArrow 19/22: 87 LeRobot tests passed on each.

Long term, use datasets 5's Arrow-only InMemoryTable serialization, which rebuilds derived batch indexes in each worker, and remove this compression after LeRobot and PyPaimon compatibility is verified.

@XiaoHongbo-Hope
XiaoHongbo-Hope deleted the codex/atomic-s3-metadata-independent branch September 16, 2026 09:21
@XiaoHongbo-Hope
XiaoHongbo-Hope restored the codex/atomic-s3-metadata-independent branch September 17, 2026 02:41
@XiaoHongbo-Hope
XiaoHongbo-Hope force-pushed the codex/atomic-s3-metadata-independent branch from 826f7b7 to 5417e14 Compare September 17, 2026 02:42
@XiaoHongbo-Hope XiaoHongbo-Hope changed the title [python] Prevent concurrent S3/OSS metadata overwrites [python] Reduce LeRobot DataLoader worker startup time Sep 17, 2026
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.

1 participant