Skip to content

feat: add tqdm progress bars to TimesFMFinetuner#377

Open
yasumorishima wants to merge 3 commits intogoogle-research:masterfrom
yasumorishima:feat/tqdm-progress-bar
Open

feat: add tqdm progress bars to TimesFMFinetuner#377
yasumorishima wants to merge 3 commits intogoogle-research:masterfrom
yasumorishima:feat/tqdm-progress-bar

Conversation

@yasumorishima
Copy link
Copy Markdown
Contributor

Summary

Add optional tqdm progress bars to TimesFMFinetuner training and validation loops.

  • Add progress_bar: bool = True flag to FinetuningConfig
  • Wrap _train_epoch and _validate DataLoader loops with tqdm (rank 0 only)
  • Show running loss via set_postfix during training
  • Default True, can be disabled with config.progress_bar = False

Fixes #289

Changes

File Change
v1/src/finetuning/finetuning_torch.py Add tqdm import, config flag, and progress bar wrapping

- Add progress_bar flag to FinetuningConfig (default: True)
- Wrap train and validation DataLoader loops with tqdm
- Show running loss in training progress bar via set_postfix
- Only display on rank 0 in distributed training
- Can be disabled with config.progress_bar = False

Fixes google-research#289
- Add progress_bar field to FinetuningConfig docstring
- Update set_postfix to use log_every_n_steps interval with running avg loss
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.

Add tqdm progress bars to TimesFMFinetuner (finetuning_torch.py)

1 participant