-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
featureIs an improvement or enhancementIs an improvement or enhancementgood first issueGood for newcomersGood for newcomershelp wantedOpen to be worked onOpen to be worked on
Milestone
Description
🚀 Feature
If running on google colab, automatically assign progress_bar_refresh_rate=20 if the user didn't override the default of 1.
Motivation
Google colab is notorious for crashing because of the tqdm progress bar while training. We usually solve that by assigning a larger number to progress_bar_refresh_rate flag of Trainer. However, this is super annoying since you have to do it all the time.
Also, when writing up examples for beginners, it would be nice to just say pl.Trainer() instead of having to pass the refresh rate flag, as that may confuse newcomers.
Pitch
Put this logic in CallbackConnector, or ProgressBarBase. I'm not sure which makes more sense.
import sys
def check_if_on_google_colab():
return 'google.colab' in sys.modulesAlternatives
Additional context
edenlightning and marcospiau
Metadata
Metadata
Assignees
Labels
featureIs an improvement or enhancementIs an improvement or enhancementgood first issueGood for newcomersGood for newcomershelp wantedOpen to be worked onOpen to be worked on