Refactoring configs (#248)
- make every run be an experiment by default - deprecate `mode` configs - introduce `debug` configs - introduce `log_dir` configs - remove unnecessary utilities from `utils.extras()` - add config flag for skipping training - update README.md
This commit is contained in:
1 parent
2ff8e053bf
commit
19f5454d13
27 files changed
+210
-238
No files matched your search
@@ -0,0 +1,27 @@
|
||||
# @package _global_
|
||||
|
||||
# default debugging setup, runs 1 full epoch
|
||||
|
||||
defaults:
|
||||
- override /log_dir: debug.yaml
|
||||
|
||||
trainer:
|
||||
max_epochs: 1
|
||||
gpus: 0 # debuggers don't like gpus
|
||||
detect_anomaly: true
|
||||
track_grad_norm: 2
|
||||
|
||||
datamodule:
|
||||
num_workers: 0 # debuggers don't like multiprocessing
|
||||
pin_memory: False
|
||||
|
||||
# sets level of all command line loggers to 'DEBUG'
|
||||
# https://hydra.cc/docs/tutorials/basic/running_your_app/logging/
|
||||
hydra:
|
||||
verbose: True
|
||||
|
||||
# use this to set level of only chosen command line loggers to 'DEBUG'
|
||||
# verbose: [src.train, src.utils]
|
||||
|
||||
# config is already printed by hydra when `hydra/verbose: True`
|
||||
print_config: False
|
||||
@@ -0,0 +1,12 @@
|
||||
# @package _global_
|
||||
|
||||
# debugs by using only 1% of the data
|
||||
|
||||
defaults:
|
||||
- default.yaml
|
||||
|
||||
trainer:
|
||||
max_epochs: 3
|
||||
limit_train_batches: 0.01
|
||||
limit_val_batches: 0.01
|
||||
limit_test_batches: 0.01
|
||||
@@ -0,0 +1,10 @@
|
||||
# @package _global_
|
||||
|
||||
# overfits to 3 batches
|
||||
|
||||
defaults:
|
||||
- default.yaml
|
||||
|
||||
trainer:
|
||||
max_epochs: 20
|
||||
overfit_batches: 3
|
||||
@@ -0,0 +1,12 @@
|
||||
# @package _global_
|
||||
|
||||
# debugs with execution time profiling
|
||||
|
||||
defaults:
|
||||
- default.yaml
|
||||
|
||||
trainer:
|
||||
max_epochs: 1
|
||||
profiler: "simple"
|
||||
# profiler: "advanced"
|
||||
# profiler: "pytorch"
|
||||
@@ -0,0 +1,9 @@
|
||||
# @package _global_
|
||||
|
||||
# debugs by running 1 train, 1 validation and 1 test step
|
||||
|
||||
defaults:
|
||||
- default.yaml
|
||||
|
||||
trainer:
|
||||
fast_dev_run: true
|
||||
@@ -0,0 +1,9 @@
|
||||
# @package _global_
|
||||
|
||||
# debugs by running only test epoch
|
||||
|
||||
defaults:
|
||||
- default.yaml
|
||||
|
||||
train: False
|
||||
test_after_training: True
|
||||
Reference in new issue
Block a user