diff --git a/src/lightning/pytorch/callbacks/progress/tqdm_progress.py b/src/lightning/pytorch/callbacks/progress/tqdm_progress.py index 74abb8ecd850c..2030c207a0489 100644 --- a/src/lightning/pytorch/callbacks/progress/tqdm_progress.py +++ b/src/lightning/pytorch/callbacks/progress/tqdm_progress.py @@ -463,5 +463,4 @@ def convert_inf(x: Optional[Union[int, float]]) -> Optional[Union[int, float]]: def _update_n(bar: _tqdm, value: int) -> None: if not bar.disable: - bar.n = value - bar.refresh() + bar.update(value - bar.n)