baseline doesn't support hydra 1.1
Lots of errors here, if you follow the instructions inside nethack_baselines/torchbeast/polyhydra.py, that says to install hydra with --upgrade, but that installs hydra-core==1.1 and now i am sad. Please consolidate all your instructions in one place, maybe with two conda(or requirements) files for vanilla vs. baseline for those customers, so i am not chasing my tail.
Installation for hydra:
pip install hydra-core hydra_colorlog --upgrade
then i get some deal about overrides, so i added that to config.yaml
defaults:
- override hydra/job_logging: colorlog
- override hydra/hydra_logging: colorlog
Trying again i get the below error. Note that Be aware that cfg.pretty() is now deprecated and you should use OmegaConf.to_yaml(cfg) instead.
via https://github.com/facebookresearch/hydra/blob/2808e71248ac5a04a1b1a770d3a60f8ec9a38569/NEWS.md#L220
(nethack) 88665a14b754:torchbeast maxreede$ python polyhydra.py
[DEBUG:79067 cmd:814 2021-07-05 16:16:49,799] Popen(['git', 'version'], cwd=/Volumes/workplace/ml/aicrowd/neurips-2021-the-nethack-challenge/nethack_baselines/torchbeast, universal_newlines=False, shell=None, istream=None)
[DEBUG:79067 cmd:814 2021-07-05 16:16:49,836] Popen(['git', 'version'], cwd=/Volumes/workplace/ml/aicrowd/neurips-2021-the-nethack-challenge/nethack_baselines/torchbeast, universal_newlines=False, shell=None, istream=None)
polyhydra.py:108: UserWarning:
config_path is not specified in @hydra.main().
See https://hydra.cc/docs/next/upgrades/1.0_to_1.1/changes_to_hydra_main_config_path for more information.
@hydra.main(config_name="config")
[DEBUG:79067 utils:252 2021-07-05 16:16:50,090] Setting JobRuntime:name=UNKNOWN_NAME
[DEBUG:79067 utils:252 2021-07-05 16:16:50,091] Setting JobRuntime:name=polyhydra
Error executing job with overrides: []
Traceback (most recent call last):
File "polyhydra.py", line 123, in main
logging.info(flags.pretty(resolve=True))
omegaconf.errors.ConfigAttributeError: Key 'pretty' is not in struct
full_key: pretty
object_type=dict
Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
(nethack) 88665a14b754:torchbeast maxreede$
Edited by max_reeder