File tree Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 55# GPU-ready with Apex for mixed-precision support
66# https://ngc.nvidia.com/catalog/containers/nvidia:pytorch
77# 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
99
1010
1111# Copy all files
12- ADD . /workspace/project
13- WORKDIR /workspace/project
12+ ADD . /workspace/hyperbox
13+ WORKDIR /workspace/hyperbox
1414
1515
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
1818RUN conda init bash
1919
2020
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
22
33channels :
44 - pytorch
Original file line number Diff line number Diff line change 11import os
22import sys
33
4- import dotenv
54import hydra
6- from ipdb import set_trace
75from omegaconf import DictConfig
86
97# load environment variables from `.env` file if it exists
108# recursively searches for `.env` in all folders starting from work dir
11- dotenv .load_dotenv (override = True )
129
1310
1411@hydra .main (version_base = "1.2" , config_path = "configs/" , config_name = "config.yaml" )
@@ -33,6 +30,7 @@ def main(config: DictConfig):
3330
3431 # Train model
3532 if config .ipdb_debug :
33+ from ipdb import set_trace
3634 set_trace ()
3735 return train (config )
3836
Original file line number Diff line number Diff line change 11# --------- pytorch --------- #
22torch >= 1.8.1
33torchvision
4- pytorch-lightning = =1.5.8
4+ pytorch-lightning > =1.5.8
55torchmetrics >= 0.3.2
66lightning-bolts >= 0.3.3
77
You can’t perform that action at this time.
0 commit comments