diff --git a/README.md b/README.md index f1b87ee..7367484 100644 --- a/README.md +++ b/README.md @@ -343,21 +343,21 @@ python run.py -m 'experiment=glob(*)' ## :whale:  Docker -Docker image for the template is available for download [here](https://hub.docker.com/r/ashleve/lightning-hydra). +I recommend the official [nvidia ngc pytorch container](https://ngc.nvidia.com/catalog/containers/nvidia:pytorch/tags) (size: 6GB, it comes with installed Apex for mixed-precision training), or "devel" version of [pytorch/pytorch](https://hub.docker.com/r/pytorch/pytorch). +Custom dockerfiles for the template are provided on branch [`dockerfiles`](https://github.com/ashleve/lightning-hydra-template/tree/dockerfiles). You can use them as a starting point for building your own images. ```yaml # download image -docker pull ashleve/lightning-hydra:latest +docker pull nvcr.io/nvidia/pytorch:21.03-py3 -# run container from image -docker run --gpus all -it --rm ashleve/lightning-hydra - -# you can also build image by yourself using Dockerfile +# run container from image with GPUs enabled +docker run --gpus all -it --rm nvcr.io/nvidia/pytorch:21.03-py3 +``` +```yaml +# alternatively build image by yourself using Dockerfile from the mentioned template branch docker build -t lightning-hydra . ``` -Dockerfiles are provided on branch [`dockerfiles`](https://github.com/ashleve/lightning-hydra-template/tree/dockerfiles). You can use them as a starting point for building your own images.
-If you want to use some popular official image instead, I recommend the [nvidia ngc pytorch container](https://ngc.nvidia.com/catalog/containers/nvidia:pytorch/tags), or "devel" version of [pytorch/pytorch](https://hub.docker.com/r/pytorch/pytorch) (this one doesn't have installed Apex for mixed-precision training). -


+

@@ -507,7 +507,7 @@ defaults: # we override default configurations with nulls to prevent them from loading at all # instead we define all modules and their paths directly in this config, -# so everything is stored in one place for more readibility +# so everything is stored in one place for more readability seed: 12345 diff --git a/configs/config.yaml b/configs/config.yaml index a456c2d..942b4e8 100644 --- a/configs/config.yaml +++ b/configs/config.yaml @@ -39,7 +39,7 @@ print_config: True # disable python warnings if they annoy you -disable_warnings: True +ignore_warnings: True hydra: @@ -54,7 +54,4 @@ hydra: # you can set here environment variables that are universal for all users # for system specific variables (like data paths) it's better to use .env file! env_set: - # currently there are some issues with running sweeps alongside wandb - # https://github.com/wandb/client/issues/1314 - # this env var fixes that - WANDB_START_METHOD: thread + EXAMPLE_VAR: "example_value" diff --git a/configs/experiment/exp_example_full.yaml b/configs/experiment/exp_example_full.yaml index 494b7a0..1c1b5dd 100644 --- a/configs/experiment/exp_example_full.yaml +++ b/configs/experiment/exp_example_full.yaml @@ -12,7 +12,7 @@ defaults: # we override default configurations with nulls to prevent them from loading at all # instead we define all modules and their paths directly in this config, -# so everything is stored in one place for more readibility +# so everything is stored in one place for more readability seed: 12345 diff --git a/src/utils/template_utils.py b/src/utils/template_utils.py index 034f29a..65286dd 100644 --- a/src/utils/template_utils.py +++ b/src/utils/template_utils.py @@ -43,8 +43,8 @@ def extras(config: DictConfig) -> None: OmegaConf.set_struct(config, False) # disable python warnings if - if config.get("disable_warnings"): - log.info(f"Disabling python warnings! ") + if config.get("ignore_warnings"): + log.info(f"Disabling python warnings! ") warnings.filterwarnings("ignore") # set if