Release/1.0 (#156)
* update to Hydra 1.1 * add bash folder with scripts for conda setup and run scheduling * add saving seed in `log_hyperparameters()` method * redesign Dockerfile to make it weight less * add `test_after_training` parameter to config * add inheritance to trainer configs * remove forcing ddp-friendly configuration * refactor tests * remove conda_env_gpu.yaml * remove default langage version from pre-commit config * add mnist datamodule unit test * rename test folder from 'smoke' to 'shell' * remove wandb import from utils.py * change 'use_artifact' to 'log_artifact' in wandb callbacks * add rank zero decorator to wandb callbacks * add dumping rich tree config to file * get rid of `=` character in ckpt names * update requirements.txt * update LICENSE * update README.md
This commit is contained in:
1 parent
362a4beebb
commit
d45f604bc8
35 files changed
+398
-424
No files matched your search
@@ -0,0 +1,35 @@
|
||||
import pytest
|
||||
|
||||
from tests.helpers.run_command import run_command
|
||||
|
||||
"""
|
||||
Use the following command to skip slow tests:
|
||||
pytest -k "not slow"
|
||||
"""
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
def test_default_sweep():
|
||||
"""Test default Hydra sweeper."""
|
||||
command = [
|
||||
"run.py",
|
||||
"-m",
|
||||
"datamodule.batch_size=64,128",
|
||||
"model.lr=0.01,0.02",
|
||||
"trainer=default",
|
||||
"++trainer.fast_dev_run=true",
|
||||
]
|
||||
run_command(command)
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
def test_optuna_sweep():
|
||||
"""Test Optuna sweeper."""
|
||||
command = [
|
||||
"run.py",
|
||||
"-m",
|
||||
"hparams_search=mnist_optuna",
|
||||
"trainer=default",
|
||||
"++trainer.fast_dev_run=true",
|
||||
]
|
||||
run_command(command)
|
||||
Reference in new issue
Block a user