* update readme

* make Rich printing more general
This commit is contained in:
Łukasz Zalewski authored and GitHub committed 2021-03-12 18:40:24 +01:00
1 parent 3586f355b9
commit 5f1c85e9bf
8 files changed
+185 -190

No files matched your search

+30 -42
View File
@@ -2,51 +2,45 @@
_target_: pytorch_lightning.Trainer
# set -1 to train on all GPUs available, set 0 to train on CPU only
gpus: 0
# auto_select_gpus: True
min_epochs: 3
gpus: 0
min_epochs: 1
max_epochs: 3
# overfit on 10 of the same training set batches
# overfit_batches: 10
# prints
progress_bar_refresh_rate: null
weights_summary: null
profiler: null
# overfit on 5% of the training data
# overfit_batches: 0.05
# all of the parameters below are set to Lightning defaults
# run validation loop every 5 training epochs
# check_val_every_n_epoch: 5
# tricks
gradient_clip_val: 0
accumulate_grad_batches: 1
val_check_interval: 1.0
check_val_every_n_epoch: 1
stochastic_weight_avg: False
# run validation loop 2 times during a training epoch
val_check_interval: 0.5
# run validation loop every 100 training batches
# val_check_interval: 100
# run for 1 train, 1 val and 1 test batch
# 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
# use only 20% of the data
limit_train_batches: 0.2
limit_val_batches: 0.2
limit_test_batches: 0.2
# others
amp_backend: "native"
amp_level: "02"
precision: 32
accelerator: null
num_nodes: 1
tpu_cores: null
deterministic: False
# number of sanity validation steps
num_sanity_val_steps: 3
# print execution time profiling after training end
# profiler: "simple"
# print full weight summary of all modules and submodules
# weights_summary: "full"
# weights_summary: "top"
# use gradient clipping because why not
gradient_clip_val: 0.5
# perform optimisation after accumulating gradient from 5 batches
accumulate_grad_batches: 5
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}
@@ -54,9 +48,3 @@ accumulate_grad_batches: 5
# automatically find the largest batch size that fits into memory and is power of 2
# (requires calling trainer.tune(model=model, datamodule=datamodule))
# auto_scale_batch_size:'power'
# set tensor precision to 16 (default is 32 bits)
# precision: 16
# apex backend for mixed precision training https://github.com/NVIDIA/apex
# amp_backend: 'apex'
+22 -23
View File
@@ -8,36 +8,35 @@ min_epochs: 1
max_epochs: 10
# prints
progress_bar_refresh_rate: null
# progress_bar_refresh_rate: null
weights_summary: null
profiler: 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
# 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
# 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
# amp_backend: "native"
# amp_level: "02"
# precision: 32
# accelerator: null
# num_nodes: 1
# tpu_cores: null
# deterministic: False
# resume
resume_from_checkpoint: null
# resume_from_checkpoint: null