fb-hydra Questions

4

Solved

Recently I have started to use hydra to manage the configs in my application. I use Structured Configs to create schema for .yaml config files. Structured Configs in Hyda uses dataclasses for type ...
Brookhouse asked 9/1, 2022 at 8:22

3

Solved

I have a very simple Python script: import hydra from omegaconf import DictConfig, OmegaConf @hydra.main(version_base="1.3", config_path=".", config_name="config") d...
Proprietary asked 27/6, 2023 at 18:24

6

Solved

Let's say we have following setup (copied & shortened from the Hydra docs): Configuration file: config.yaml db: driver: mysql user: omry pass: secret Python file: my_app.py import hydra...
Paquette asked 13/3, 2020 at 16:26

3

Solved

Assuming I prevent Hydra from changing the current working directory, how can I still retrieve the job's output directory (i.e., the folder Hydra created for storing the results of the particular j...
Receiver asked 16/7, 2022 at 20:3

3

Solved

I have a main config file, let's say config.yaml: num_layers: 4 embedding_size: 512 learning_rate: 0.2 max_steps: 200000 I'd like to be able to override this, on the command-line, with another fil...
Heti asked 29/10, 2020 at 15:9

2

Solved

I'd like to convert a OmegaConf/Hydra config to a nested dictionary/list. How can I do this?
Really asked 12/10, 2021 at 20:9

2

I wonder what are the advantages of using Hydra to manage my configuration files, versus loading .yaml configuration file directly (using import yaml)?
Guilford asked 6/10, 2022 at 17:27

1

Solved

I'm trying to install Hydra 2.5 on a Windows 10 system. I have Visual Studio Build Tools 2022 installed with the desktop C++ development option. When I use pip I get the error attached below. I've ...

2

Solved

I'm using hydra to log hyperparameters of experiments. @hydra.main(config_name="config", config_path="../conf") def evaluate_experiment(cfg: DictConfig) -> None: print(Omega...
Joesphjoete asked 2/12, 2020 at 7:54

1

Solved

I am trying to write a hierarchical configuration structure such that config files in the inner directories inherit from the config files in the outer directories. For example, in the following sce...
Altercate asked 27/5, 2021 at 3:11

3

I know that I can change the working dir in config by setting hydra.run.dir=XXX from the command line. But how to do it properly from script w/o using CLI arguments in a way that even the logs are ...
Bedwarmer asked 1/11, 2020 at 15:5

1

Solved

I'm using pipreqs for generating requirements.txt. I started using hydra package (see https://hydra.cc/ or hydra-core package on PyPI). So I would like pipreqs to add hydra-core dependency automati...
Sig asked 9/4, 2021 at 14:0

1

Solved

I'd like to add a key + value after my Hydra Config is loaded. Essentially I want to run my code and check if a gpu is available or not. If it is, log the device as gpu, else keep the cpu. Essentia...
Perseus asked 20/2, 2021 at 18:50
1

© 2022 - 2024 — McMap. All rights reserved.