Lightning-AI / Lightning-AI/pytorch-lightning

Make it easier to setup a multi-line progress bar

Open
#20,608 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

### Description & Motivation

I'm currently learning ML stuff and made my own model using PyTorch and started using Lightning to wrap it all nicely, because that was suggested to me.

Now when running my training in the terminal, I have my metrics squeezed into the right hand corner of the progress bar, especially when watching more than the "default" loss metric.

I tried changing the RichProgressBar using various LLM assistance, but couldn't get it done in a good way. From my understanding, I would have to rewrite the whole code to allow for a second line, because

### Pitch

I'd like to have an easy way to place the metrics, e.g. last column or new row (with full colspan), and the way I format it.

This could either be a parameter to RichProgressBar or an easy, documented way to overload a function in the class.

### Alternatives

_No response_

### Additional context

_No response_

cc @lantiga @borda

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

Start by locating the RichProgressBar implementation and its current metric layout. Review how progress-bar columns and metric formatting are configured, then determine an API for placing metrics on another row or column. Done means users can configure a multi-line layout and format metrics without rewriting the progress bar.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.