CLI: Properly detect encoder-decoder models
# What does this PR do?

Micro-PR that does what the title says. Some models have the encoder-decoder structure nested, and we now have access to the config file.
_The documentation is not available anymore as the PR was closed or merged._