-
Notifications
You must be signed in to change notification settings - Fork 3
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
Scott Davidson
committed
Sep 22, 2023
1 parent
1de85bf
commit f749954
Showing
3 changed files
with
17 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# TODO: Try newer versions of base image - 23.08 fails with | ||
# 'CUDA on host is too old' type error but something in between | ||
# should work. Latest 23.08 might also work on Ubuntu-22.04. | ||
FROM nvcr.io/nvidia/pytorch:22.12-py3 | ||
|
||
RUN pip install -U pip | ||
RUN pip install torchvision torchaudio | ||
RUN git clone https://github.com/pytorch/benchmark | ||
WORKDIR /workspace/benchmark | ||
# Add other benchmarks here? | ||
RUN python install.py alexnet resnet50 llama | ||
|
||
COPY run-benchmark.sh /usr/local/bin/ |
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,3 @@ | ||
#!/bin/bash | ||
# Env vars should be set in container spec | ||
python run.py $BENCHMARK_NAME -t $BENCHMARK_TYPE -d $BENCHMARK_DEVICE --bs $INPUT_DATA_BATCH_SIZE |