Skip to content

Commit 2ff6426

Browse files
authored
Make progress bar prettier (#786)
1 parent 9fa7bbf commit 2ff6426

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

helion/autotuner/base_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import torch.multiprocessing as mp
3030
from torch.utils._pytree import tree_flatten
3131
from torch.utils._pytree import tree_map
32-
from tqdm.auto import tqdm
32+
from tqdm.rich import tqdm
3333
from triton.testing import do_bench
3434

3535
from .. import exc

helion/autotuner/benchmarking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import statistics
55
from typing import Callable
66

7-
from tqdm.auto import tqdm
7+
from tqdm.rich import tqdm
88
from triton import runtime
99

1010

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ dependencies = [
2121
"typing_extensions>=4.0.0",
2222
"filecheck",
2323
"psutil",
24-
"tqdm"
24+
"tqdm",
25+
"rich"
2526
]
2627

2728
[project.optional-dependencies]

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ filecheck
55
expecttest
66
numpy
77
tqdm
8+
rich

0 commit comments

Comments
 (0)