File tree 4 files changed +10
-12
lines changed
4 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 5
5
# GPU-ready with Apex for mixed-precision support
6
6
# https://ngc.nvidia.com/catalog/containers/nvidia:pytorch
7
7
# https://docs.nvidia.com/deeplearning/frameworks/support-matrix/
8
- FROM nvcr.io/nvidia/pytorch:21.03 -py3
8
+ FROM nvcr.io/nvidia/pytorch:22.07 -py3
9
9
10
10
11
11
# Copy all files
12
- ADD . /workspace/project
13
- WORKDIR /workspace/project
12
+ ADD . /workspace/hyperbox
13
+ WORKDIR /workspace/hyperbox
14
14
15
15
16
- # Create myenv
17
- RUN conda env create -f conda_env_gpu.yaml -n myenv
16
+ # Create hyperbox
17
+ RUN conda env create -f conda_env_gpu.yaml -n hyperbox
18
18
RUN conda init bash
19
19
20
20
21
- # Set myenv to default virtual environment
22
- RUN echo "source activate myenv " >> ~/.bashrc
21
+ # Set hyperbox to default virtual environment
22
+ RUN echo "source activate hyperbox " >> ~/.bashrc
Original file line number Diff line number Diff line change 1
- name : myenv
1
+ name : hyperbox
2
2
3
3
channels :
4
4
- pytorch
Original file line number Diff line number Diff line change 1
1
import os
2
2
import sys
3
3
4
- import dotenv
5
4
import hydra
6
- from ipdb import set_trace
7
5
from omegaconf import DictConfig
8
6
9
7
# load environment variables from `.env` file if it exists
10
8
# recursively searches for `.env` in all folders starting from work dir
11
- dotenv .load_dotenv (override = True )
12
9
13
10
14
11
@hydra .main (version_base = "1.2" , config_path = "configs/" , config_name = "config.yaml" )
@@ -33,6 +30,7 @@ def main(config: DictConfig):
33
30
34
31
# Train model
35
32
if config .ipdb_debug :
33
+ from ipdb import set_trace
36
34
set_trace ()
37
35
return train (config )
38
36
Original file line number Diff line number Diff line change 1
1
# --------- pytorch --------- #
2
2
torch >= 1.8.1
3
3
torchvision
4
- pytorch-lightning = =1.5.8
4
+ pytorch-lightning > =1.5.8
5
5
torchmetrics >= 0.3.2
6
6
lightning-bolts >= 0.3.3
7
7
You can’t perform that action at this time.
0 commit comments