Skip to content


[ allennlp.common.tqdm ]

allennlp.common.tqdm.Tqdm wraps tqdm so we can add configurable global defaults for certain tqdm parameters.

Tqdm Objects#

class Tqdm()

These defaults are the same as the argument defaults in tqdm.


default_mininterval = 0.1


 | @staticmethod
 | def set_default_mininterval(value: float) -> None


 | @staticmethod
 | def set_slower_interval(use_slower_interval: bool) -> None

If use_slower_interval is True, we will dramatically slow down tqdm's default output rate. tqdm's default output rate is great for interactively watching progress, but it is not great for log files. You might want to set this if you are primarily going to be looking at output through log files, not the terminal.


 | @staticmethod
 | def tqdm(*args, **kwargs)