Dev (#118)
* update readme * remove optimizer * make parameters more explicit * add .autoenv * update dockerfile * fix paths * update configs * update train.py * fix test
This commit is contained in:
1 parent
42f8acddd0
commit
2dcbdcdaf9
27 files changed
+253
-165
No files matched your search
+6
-9
@@ -3,7 +3,7 @@
|
||||
|
||||
# Build container:
|
||||
# docker build -t lightning-hydra .
|
||||
# Run container:
|
||||
# Run container:
|
||||
# sudo docker run --gpus all -it --rm lightning-hydra
|
||||
|
||||
ARG CUDA_VERSION=11.1
|
||||
@@ -11,7 +11,7 @@ ARG CUDA_VERSION=11.1
|
||||
# build from official cuda image, devel version is needed for apex
|
||||
FROM nvidia/cuda:${CUDA_VERSION}-devel
|
||||
|
||||
ENV CONDA_ENV_NAME=env
|
||||
ENV CONDA_ENV_NAME=myenv
|
||||
ENV PYTHON_VERSION=3.8
|
||||
ENV PYTORCH_VERSION=1.8.1
|
||||
ENV CUDA_TOOLKIT_VERSION=11.1
|
||||
@@ -67,16 +67,13 @@ RUN source activate ${CONDA_ENV_NAME} \
|
||||
RUN source activate ${CONDA_ENV_NAME} \
|
||||
&& git clone https://github.com/ashleve/lightning-hydra-template \
|
||||
&& cd lightning-hydra-template \
|
||||
&& pip install -r requirements.txt \
|
||||
&& pip install -r requirements.txt \
|
||||
&& pre-commit install
|
||||
|
||||
|
||||
# Install tab completion for template
|
||||
# RUN source activate ${CONDA_ENV_NAME} \
|
||||
# && cd lightning-hydra-template \
|
||||
# && RUN_PATH=$(realpath run.py) \
|
||||
# && echo "eval \"\$(python ${RUN_PATH} -sc install=bash)\" " >> ~/.bashrc
|
||||
# Install .autoenv for automatic conda env activation and tab completion
|
||||
RUN echo "autoenv() { [[ -f \"\$PWD/.autoenv\" ]] && source .autoenv ; } ; cd() { builtin cd \"\$@\" ; autoenv ; } ; autoenv" >> ~/.bashrc
|
||||
|
||||
|
||||
# Set conda env to default
|
||||
# Set ${CONDA_ENV_NAME} to default virutal environment
|
||||
RUN echo "source activate ${CONDA_ENV_NAME}" > ~/.bashrc
|
||||
Reference in new issue
Block a user