Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • neurips-2021-the-nethack-challenge neurips-2021-the-nethack-challenge
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nethack
  • neurips-2021-the-nethack-challengeneurips-2021-the-nethack-challenge
  • Issues
  • #13

Closed
Open
Created Jul 05, 2021 by max_reeder@max_reeder

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 Jul 05, 2021 by max_reeder
Assignee
Assign to
Time tracking