I have a config file,
config.yaml in which I am defining the various run parameters of model that I want to train. I am defining my guildfile as follows -
- operations: train: description: 'Training script' main: 'train' flags-import: no requires: - config: config/config.yaml
From inside my
train.py, I am doing
yaml.load(open("train_config.yaml") to get all the param values.
However, when I do
guild view, it says that “There are no flags for this run” and all the parameters that I defined in the config file show up as
Scalars. I realize that if I define the variables that I want to be considered as flags as
flags inside the
guild.yml and give them to
train.py as command line arguments, the problem will be solved, but I imagined a similar behavior if I define a config file and pass it to guild as a
requires/config parameter. Is there any way for guild to consider the values defined under the yaml as flags?