Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de077de

Browse files
author
Thomas Capelle
committed
added docker info
1 parent e0f7004 commit de077de

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,28 @@ conda activate tf
4848
- Run the training:
4949

5050
```bash
51-
python scripts/keras_pets.py
51+
python scripts/keras_cvp.py --hw "your_gpu_name" --repeat 3 --trainable
5252
```
53-
This script is based on an official keras example by `Francois Chollet`
53+
This will run the training script 3 times with all parameters trainable (not finetuning)
5454

55-
> Note: I also provide a [pytorch training script](scripts/pytorch_wandb.py), but you will need to install pytorch first. It may be useful once pytroch adds GPU support.
55+
> Note: I also provide a [pytorch training script](scripts/pytorch_wandb.py), but you will need to install pytorch first. It may be useful once pytroch adds GPU support.
56+
57+
## NGC Docker
58+
59+
We can also run the benchmarks on linux using nvidia docker containers
60+
61+
- Pull the container:
62+
63+
```bash
64+
pull nvcr.io/nvidia/tensorflow:21.11-tf2-py3
65+
```
66+
67+
- Run the containter:
68+
69+
```bash
70+
docker run --gpus all -it --rm -v path_to_folder/apple_m1_pro_python:/code tensorflow:21.11-tf2-py3
71+
```
72+
73+
- Once inside the container, run the benchmark.
74+
75+
> Note: You may need `sudo` to run docker.

0 commit comments

Comments
 (0)