Skip to content

Conversation

@whats2000
Copy link

What this does

This PR adds a progress bar for policy-training steps using tqdm, providing users with real-time progress updates and an ETA. Since training can often take hours, showing an estimated completion time greatly improves usability and transparency during long runs.

Title Label
Add training progress bar with ETA (🧩 Enhancement)

How it was tested

  • Ran a training session and verified that the progress bar updates step counts and ETA correctly.
  • No performance overhead or logging conflicts when using tqdm.

How to checkout & try? (for the reviewer)

lerobot-train --some.option=true

A short training test will immediately display the tqdm progress bar.

Added progress bar for training steps using tqdm.

Signed-off-by: whats2000 <[email protected]>
Copilot AI review requested due to automatic review settings November 17, 2025 15:28
Copilot finished reviewing on behalf of whats2000 November 17, 2025 15:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR integrates tqdm to provide real-time training progress visualization with ETA during policy training. Since training can take hours, this improvement enhances usability by showing users step counts and estimated completion time.

Key changes:

  • Added tqdm progress bar for the main training loop
  • Progress bar is disabled in SLURM environments to avoid log clutter
  • Progress bar is only created and updated on the main process in distributed training

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <[email protected]>
Signed-off-by: whats2000 <[email protected]>
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