Lightning-AI / Lightning-AI/pytorch-lightning

Support skipping the first iteration time in process bar

Open
#19,357 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature help wanted progress bar: tqdm torch.compile
Dominant language
Python
Stars
31.4k
Forks
3.8k
Avg merge
6d 7h
Merged PRs (30d)
6

Description

### Description & Motivation

Because the first iteration time is incorrect (model initialization and torch.compile when first interation)

### Pitch

_No response_

### Alternatives

_No response_

### Additional context

_No response_

cc @borda @awaelchli @carmocca

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file, test, or entry point. Start by locating the process-bar implementation and its iteration-time calculation, then inspect how the first iteration includes model initialization and torch.compile. Done should mean the first iteration can be skipped when calculating the displayed process-bar timing.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.