fix: rediect logs
This commit is contained in:
parent
e40a4b979f
commit
07ae66b8ff
4 changed files with 11 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -4,6 +4,7 @@ runs/*
|
|||
wandb/
|
||||
outputs/
|
||||
multirun/
|
||||
metrics/
|
||||
|
||||
# Python-generated files
|
||||
__pycache__/
|
||||
|
|
|
|||
|
|
@ -49,4 +49,6 @@ python scripts/train.py --cfg job
|
|||
|
||||
- **Adding a new group**: Create a subdirectory in `configs/` and register the new dataclass in `src/brittle_star_project/configs/register_configs.py`.
|
||||
- **Typo Catching**: If you see a `ConfigAttributeError`, check for typos in your YAML keys or CLI overrides.
|
||||
- **Output Redirection**: Hydra automatically creates `outputs/` directories. On HPC, ensure `hydra.run.dir` is set to a fast scratch storage.
|
||||
- **Output Redirection**: We use `experiment.base_run_dir` to configure where logs and models are stored (defaults to `runs/`).
|
||||
- To change it locally: `python scripts/train.py experiment.base_run_dir=/path/to/custom/dir`
|
||||
- On HPC, ensure this points to a fast scratch storage.
|
||||
|
|
|
|||
|
|
@ -12,3 +12,9 @@ defaults:
|
|||
- arena: default
|
||||
- environment: directed_locomotion
|
||||
- _self_
|
||||
|
||||
hydra:
|
||||
job:
|
||||
chdir: True
|
||||
run:
|
||||
dir: ${experiment.base_run_dir}/${experiment.exp_name}/${now:%Y-%m-%d}/${now:%H-%M-%S}
|
||||
|
|
|
|||
|
|
@ -8,3 +8,4 @@ class ExperimentConfig:
|
|||
torch_deterministic: bool = True
|
||||
cuda: bool = True
|
||||
debug_sanity: bool = False
|
||||
base_run_dir: str = "runs"
|
||||
|
|
|
|||
Reference in a new issue