Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exposes fast_dev_run #44

Merged
merged 1 commit into from
Jun 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config/ce-vae/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ train:
profile:
value: false
desc: "Whether to profile the training run (only for debugging)."
fast_dev_run:
value: false
desc: "Runs n if set to ``n`` (int) else 1 if set to ``True`` batch(es) of train, val and test to find any bugs (ie: a sort of unit test)."
early_stopping:
value: true
desc: "Whether to enable early stopping."
Expand Down
1 change: 1 addition & 0 deletions src/sdo/sood/algorithms/ce_vae.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ def main(
monitor="val_loss", mode="min", patience=10))
trainer = pl.Trainer(logger=wandb_logger,
max_epochs=config.train.n_epochs.value,
fast_dev_run=config.train.fast_dev_run.value,
# https://pytorch-lightning.readthedocs.io/en/1.4.7/common/single_gpu.html
# distributed training does not yet work because the data loader lambda cannot be pickled
gpus=config.devices.gpus.value,
Expand Down