-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pierre.delaunay
committed
Oct 26, 2023
1 parent
7199fbe
commit d36760c
Showing
7 changed files
with
224 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.11 | ||
# by the following command: | ||
# | ||
# pip-compile --config=pyproject.toml --output-file=benchmarks/flops/requirements.cuda.txt --resolver=backtracking .pin/tmp-constraints-cuda-torchvision.txt benchmarks/flops/requirements.in | ||
# | ||
--extra-index-url https://download.pytorch.org/whl/cu118 | ||
|
||
certifi==2023.7.22 | ||
# via | ||
# -c .pin/../.pin/constraints-cuda-torch.txt | ||
# requests | ||
charset-normalizer==3.3.1 | ||
# via | ||
# -c .pin/../.pin/constraints-cuda-torch.txt | ||
# requests | ||
filelock==3.12.4 | ||
# via | ||
# -c .pin/../.pin/constraints-cuda-torch.txt | ||
# torch | ||
# triton | ||
fsspec==2023.1.0 | ||
# via | ||
# -c .pin/../.pin/constraints-cuda-torch.txt | ||
# torch | ||
idna==3.4 | ||
# via | ||
# -c .pin/../.pin/constraints-cuda-torch.txt | ||
# requests | ||
jinja2==3.1.2 | ||
# via | ||
# -c .pin/../.pin/constraints-cuda-torch.txt | ||
# torch | ||
markupsafe==2.1.3 | ||
# via | ||
# -c .pin/../.pin/constraints-cuda-torch.txt | ||
# jinja2 | ||
mpmath==1.3.0 | ||
# via | ||
# -c .pin/../.pin/constraints-cuda-torch.txt | ||
# sympy | ||
networkx==3.2 | ||
# via | ||
# -c .pin/../.pin/constraints-cuda-torch.txt | ||
# torch | ||
numpy==1.26.1 | ||
# via | ||
# -c .pin/../.pin/constraints-cuda-torch.txt | ||
# torchvision | ||
pillow==10.1.0 | ||
# via | ||
# -c .pin/../.pin/constraints-cuda-torch.txt | ||
# torchvision | ||
requests==2.31.0 | ||
# via | ||
# -c .pin/../.pin/constraints-cuda-torch.txt | ||
# torchvision | ||
sympy==1.12 | ||
# via | ||
# -c .pin/../.pin/constraints-cuda-torch.txt | ||
# torch | ||
torch==2.1.0+cu118 | ||
# via | ||
# -r benchmarks/flops/requirements.in | ||
# torchvision | ||
torchvision==0.16.0+cu118 | ||
# via -r benchmarks/flops/requirements.in | ||
tqdm==4.66.1 | ||
# via -r benchmarks/flops/requirements.in | ||
triton==2.1.0 | ||
# via | ||
# -c .pin/../.pin/constraints-cuda-torch.txt | ||
# torch | ||
typing-extensions==4.8.0 | ||
# via | ||
# -c .pin/../.pin/constraints-cuda-torch.txt | ||
# torch | ||
urllib3==1.26.18 | ||
# via | ||
# -c .pin/../.pin/constraints-cuda-torch.txt | ||
# requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
torch | ||
torchvision | ||
tqdm | ||
voir>=0.2.9,<0.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.11 | ||
# by the following command: | ||
# | ||
# pip-compile --config=pyproject.toml --output-file=benchmarks/flops/requirements.rocm.txt --resolver=backtracking .pin/tmp-constraints-rocm-torchvision.txt benchmarks/flops/requirements.in | ||
# | ||
--extra-index-url https://download.pytorch.org/whl/rocm5.6/ | ||
|
||
certifi==2023.7.22 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# requests | ||
charset-normalizer==3.3.1 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# requests | ||
cmake==3.27.7 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# pytorch-triton-rocm | ||
filelock==3.12.4 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# pytorch-triton-rocm | ||
# torch | ||
fsspec==2023.1.0 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# torch | ||
idna==3.4 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# requests | ||
jinja2==3.1.2 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# torch | ||
lit==17.0.3 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# pytorch-triton-rocm | ||
markupsafe==2.1.3 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# jinja2 | ||
mpmath==1.3.0 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# sympy | ||
networkx==3.2 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# torch | ||
numpy==1.26.1 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# torchvision | ||
pillow==10.1.0 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# torchvision | ||
pytorch-triton-rocm==2.1.0 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# torch | ||
requests==2.31.0 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# torchvision | ||
sympy==1.12 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# torch | ||
torch==2.1.0+rocm5.6 | ||
# via | ||
# -r benchmarks/flops/requirements.in | ||
# pytorch-triton-rocm | ||
# torchvision | ||
torchvision==0.16.0+rocm5.6 | ||
# via -r benchmarks/flops/requirements.in | ||
tqdm==4.66.1 | ||
# via -r benchmarks/flops/requirements.in | ||
typing-extensions==4.8.0 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# torch | ||
urllib3==1.26.18 | ||
# via | ||
# -c .pin/../.pin/constraints-rocm-torch.txt | ||
# requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
from dataclasses import dataclass | ||
|
||
from voir import configurable | ||
from voir.instruments import dash, early_stop, gpu_monitor, log, rate | ||
|
||
|
||
@dataclass | ||
class Config: | ||
"""voir configuration""" | ||
|
||
# Whether to display the dash or not | ||
dash: bool = False | ||
|
||
# How often to log the rates | ||
interval: str = "1s" | ||
|
||
# Number of rates to skip before logging | ||
skip: int = 5 | ||
|
||
# Number of rates to log before stopping | ||
stop: int = 1 | ||
|
||
# Number of seconds between each gpu poll | ||
gpu_poll: int = 3 | ||
|
||
|
||
@configurable | ||
def instrument_main(ov, options: Config): | ||
import torch | ||
|
||
yield ov.phases.init | ||
|
||
if options.dash: | ||
ov.require(dash) | ||
|
||
ov.require( | ||
log("value", "progress", "rate", "units", "loss", "gpudata", context="task"), | ||
early_stop(n=options.stop, key="rate", task="train"), | ||
gpu_monitor(poll_interval=options.gpu_poll), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters