Dev (#98)
* remove conda_env_cpu * remove setup.py * optimize tab completion by nesting imports * add .env * fix rich printing bug * general improvements * update readme
This commit is contained in:
1 parent
5f1c85e9bf
commit
d571a4e2c2
22 files changed
+253
-221
No files matched your search
+6
-6
@@ -7,14 +7,14 @@ defaults:
|
||||
- optimizer: adam.yaml
|
||||
- datamodule: mnist_datamodule.yaml
|
||||
- callbacks: default_callbacks.yaml # set this to null if you don't want to use callbacks
|
||||
- logger: null # set logger here or use command line (e.g. `python train.py logger=wandb`)
|
||||
- logger: null # set logger here or use command line (e.g. `python run.py logger=wandb`)
|
||||
|
||||
# enable color logging
|
||||
# - override hydra/hydra_logging: colorlog
|
||||
# - override hydra/job_logging: colorlog
|
||||
|
||||
|
||||
# path to original working directory (that `train.py` was executed from in command line)
|
||||
# path to original working directory (that `run.py` was executed from in command line)
|
||||
# hydra hijacks working directory by changing it to the current log directory,
|
||||
# so it's useful to have path to original work dir as a special variable
|
||||
# read more here: https://hydra.cc/docs/next/tutorials/basic/running_your_app/working_directory
|
||||
@@ -25,9 +25,9 @@ work_dir: ${hydra:runtime.cwd}
|
||||
data_dir: ${work_dir}/data/
|
||||
|
||||
|
||||
# use `python train.py debug=true` for easy debugging!
|
||||
# use `python run.py debug=true` for easy debugging!
|
||||
# this will run 1 train, val and test loop with only 1 batch
|
||||
# equivalent to running `python train.py trainer.fast_dev_run=true`
|
||||
# equivalent to running `python run.py trainer.fast_dev_run=true`
|
||||
# (this is placed here just for easier access from command line)
|
||||
debug: False
|
||||
|
||||
@@ -44,7 +44,6 @@ disable_warnings: True
|
||||
disable_lightning_logs: False
|
||||
|
||||
|
||||
# # hydra configuration
|
||||
hydra:
|
||||
# output paths for hydra logs
|
||||
run:
|
||||
@@ -54,7 +53,8 @@ hydra:
|
||||
subdir: ${hydra.job.num}
|
||||
|
||||
job:
|
||||
# you can set environment variables here
|
||||
# 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
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# @package _global_
|
||||
|
||||
# example hyperparameter optimization of some experiment with optuna:
|
||||
# python train.py -m --config-name config_optuna.yaml +experiment=exp_example_simple logger=wandb
|
||||
# python run.py -m --config-name config_optuna.yaml +experiment=exp_example_simple logger=wandb
|
||||
|
||||
defaults:
|
||||
# load everything from main config file
|
||||
@@ -16,7 +16,7 @@ optimized_metric: "val/acc_best"
|
||||
|
||||
|
||||
hydra:
|
||||
# here we define optuna objective
|
||||
# here we define Optuna hyperparameter search
|
||||
# it optimizes for value returned from function with @hydra.main decorator
|
||||
# learn more here: https://hydra.cc/docs/next/plugins/optuna_sweeper
|
||||
sweeper:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# @package _global_
|
||||
|
||||
# to execute this experiment run:
|
||||
# python train.py +experiment=exp_example_full
|
||||
# python run.py +experiment=exp_example_full
|
||||
|
||||
defaults:
|
||||
- override /trainer: null # override trainer to null so it's not loaded from main config defaults...
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# @package _global_
|
||||
|
||||
# to execute this experiment run:
|
||||
# python train.py +experiment=exp_example_simple
|
||||
# python run.py +experiment=exp_example_simple
|
||||
|
||||
defaults:
|
||||
- override /trainer: default_trainer.yaml # choose trainer from 'configs/trainer/' folder or set to null
|
||||
|
||||
@@ -13,7 +13,7 @@ progress_bar_refresh_rate: null
|
||||
weights_summary: null
|
||||
profiler: null
|
||||
|
||||
# all of the parameters below are set to Lightning defaults
|
||||
# all parameters below are set to Lightning defaults
|
||||
|
||||
# tricks
|
||||
gradient_clip_val: 0
|
||||
@@ -42,8 +42,6 @@ deterministic: False
|
||||
|
||||
resume_from_checkpoint: null
|
||||
|
||||
# no accumulation for epochs 1-4. accumulate 3 for epochs 5-10. accumulate 20 after that
|
||||
# accumulate_grad_batches: {5: 3, 10: 20}
|
||||
|
||||
# automatically find the largest batch size that fits into memory and is power of 2
|
||||
# (requires calling trainer.tune(model=model, datamodule=datamodule))
|
||||
|
||||
@@ -1,42 +1,10 @@
|
||||
_target_: pytorch_lightning.Trainer
|
||||
|
||||
# set -1 to train on all GPUs available
|
||||
# set 0 to train on CPU only
|
||||
# set `1` to train on GPU, `0` to train on CPU only
|
||||
gpus: 0
|
||||
|
||||
min_epochs: 1
|
||||
max_epochs: 10
|
||||
|
||||
# prints
|
||||
# progress_bar_refresh_rate: null
|
||||
weights_summary: null
|
||||
# profiler: null
|
||||
|
||||
# all of the parameters below are set to Lightning defaults
|
||||
|
||||
# tricks
|
||||
# gradient_clip_val: 0
|
||||
# accumulate_grad_batches: 1
|
||||
# val_check_interval: 1.0
|
||||
# check_val_every_n_epoch: 1
|
||||
# stochastic_weight_avg: False
|
||||
|
||||
# debug
|
||||
# num_sanity_val_steps: 2
|
||||
# fast_dev_run: False
|
||||
# overfit_batches: 0
|
||||
# limit_train_batches: 1.0
|
||||
# limit_val_batches: 1.0
|
||||
# limit_test_batches: 1.0
|
||||
# track_grad_norm: -1
|
||||
|
||||
# others
|
||||
# amp_backend: "native"
|
||||
# amp_level: "02"
|
||||
# precision: 32
|
||||
# accelerator: null
|
||||
# num_nodes: 1
|
||||
# tpu_cores: null
|
||||
# deterministic: False
|
||||
|
||||
# resume_from_checkpoint: null
|
||||
progress_bar_refresh_rate: 10
|
||||
Reference in new issue
Block a user