Support for Compositional Guild Files

Hi @yutarochan - welcome!

Guild provides two mechanisms to compose Guild files:

For example, you can define reusable config for a base model in a separate file like this:

# guild-model-base.yml

- config: model-base
  operations:
    prepare-data: ...
    train: ...

And then use that in the Guild file this way:

- include: guild-model-base.yml

- model: model-1
  extends: model-base

model-1 inherits the config defined for mode-base, which is specified in the file guild-model.base.yml.

Of course this is just an example of how you can factor your configuration. Feel free to break your config up however you like.

1 Like