Closed mzweilin closed 1 year ago
This PR disables print_config by default, because the configuration trees have grown so much that it's hard to examine in console anyway.
print_config
The config will still be available in logs/<experiment>/<timestamp>/.hydra/config.yaml.
logs/<experiment>/<timestamp>/.hydra/config.yaml
We can also print the final config (no interpolation) as a file in logs/<experiment>/<timestamp>/config.txt in the future.
logs/<experiment>/<timestamp>/config.txt
Please check all relevant options.
Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.
pytest
CUDA_VISIBLE_DEVICES=0 python -m mart experiment=CIFAR10_CNN_Adv trainer=gpu trainer.precision=16
CUDA_VISIBLE_DEVICES=0,1 python -m mart experiment=CIFAR10_CNN_Adv trainer=ddp trainer.precision=16 trainer.devices=2 model.optimizer.lr=0.2 trainer.max_steps=2925 datamodule.ims_per_batch=256 datamodule.world_size=2
pre-commit run -a
Make sure you had fun coding 🙃
FWIW I still examine the config output. Easy to do in with a modern console (I use tmux) and its search capabilities.
OK. I would close the PR then.
What does this PR do?
This PR disables
print_config
by default, because the configuration trees have grown so much that it's hard to examine in console anyway.The config will still be available in
logs/<experiment>/<timestamp>/.hydra/config.yaml
.We can also print the final config (no interpolation) as a file in
logs/<experiment>/<timestamp>/config.txt
in the future.Type of change
Please check all relevant options.
Testing
Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.
pytest
CUDA_VISIBLE_DEVICES=0 python -m mart experiment=CIFAR10_CNN_Adv trainer=gpu trainer.precision=16
reports 70% (21 sec/epoch).CUDA_VISIBLE_DEVICES=0,1 python -m mart experiment=CIFAR10_CNN_Adv trainer=ddp trainer.precision=16 trainer.devices=2 model.optimizer.lr=0.2 trainer.max_steps=2925 datamodule.ims_per_batch=256 datamodule.world_size=2
reports 70% (14 sec/epoch).Before submitting
pre-commit run -a
command without errorsDid you have fun?
Make sure you had fun coding 🙃