|
6 | 6 | from dataclasses import asdict, dataclass
|
7 | 7 | from typing import TYPE_CHECKING, Any, Dict, List, Optional
|
8 | 8 |
|
9 |
| -import tqdm |
10 | 9 | import yaml
|
| 10 | +from tqdm import auto |
11 | 11 |
|
12 | 12 | from composer.core.logging import LogLevel, TLogData, TLogDataValue, format_log_data_value
|
13 | 13 | from composer.core.logging.base_backend import BaseLoggerBackend
|
@@ -35,7 +35,7 @@ class _TQDMLoggerInstance:
|
35 | 35 |
|
36 | 36 | def __init__(self, state: _TQDMLoggerInstanceState) -> None:
|
37 | 37 | self.state = state
|
38 |
| - self.pbar = tqdm.tqdm(total=state.total, |
| 38 | + self.pbar = auto.tqdm(total=state.total, |
39 | 39 | desc=state.description,
|
40 | 40 | position=state.position,
|
41 | 41 | bar_format="{l_bar}{bar:10}{r_bar}{bar:-10b}")
|
@@ -65,12 +65,12 @@ class TQDMLoggerBackend(BaseLoggerBackend):
|
65 | 65 |
|
66 | 66 | Example output::
|
67 | 67 |
|
68 |
| - Epoch 1: 100%|██████████| 64/64 [00:01<00:00, 53.17it/s, loss/train=2.3023] |
69 |
| - Epoch 1 (val): 100%|██████████| 20/20 [00:00<00:00, 100.96it/s, accuracy/val=0.0995] |
| 68 | + Epoch 1: 100%|██████████| 64/64 [00:01<00:00, 53.17it/s, loss/train=2.3023] |
| 69 | + Epoch 1 (val): 100%|██████████| 20/20 [00:00<00:00, 100.96it/s, accuracy/val=0.0995] |
70 | 70 |
|
71 | 71 | .. note::
|
72 | 72 |
|
73 |
| - It is currently not possible to show additional metrics. |
| 73 | + It is currently not possible to show additional metrics. |
74 | 74 | Custom metrics for the TQDM progress bar will be supported in a future version.
|
75 | 75 |
|
76 | 76 | Args:
|
|
0 commit comments