# Dynamic parameter import

**URL:** https://discuss.dvc.org/t/dynamic-parameter-import/1312
**Category:** Questions
**Created:** [August 29, 2022, 7:13am UTC](https://discuss.dvc.org/t/dynamic-parameter-import/1312 "2022-08-29T07:13:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![RiCk](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@RiCk](https://discuss.dvc.org/u/RiCk)
#### Post date: [August 29, 2022, 7:13am UTC](https://discuss.dvc.org/t/dynamic-parameter-import/1312/1 "2022-08-29T07:13:00Z")

</div>

Hi, I have the following scenario: I’m working with a Computer Vision Deep Learning framework for which I basically can write a config file only and train. This config file is in python. I would like to input this config file as parameter dependency (under params in dvc.yaml) such that I have one place where I can change the parameters. If I don’t I need to maintain two places because some things I have to set in the `config.py` file…

I know I can specify the `config.py `as a params file. However, I have different architectures with potentially different parameters I would like to change. I made a stage using templating that switches the `config.py` based on the architecture name. Is it possible to create a `deps.yaml` (or any file) that contains a list of the keys present in `config.py` that should be considered parameters and ignore all the other valid potential parameters in `config.py`?

Thanks!

---

<div class="post-metadata">

### Author: ![dberenbaum](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@dberenbaum](https://discuss.dvc.org/u/dberenbaum)
#### Post date: [August 29, 2022, 12:07pm UTC](https://discuss.dvc.org/t/dynamic-parameter-import/1312/2 "2022-08-29T12:07:58Z")

</div>

Hi @RiCk, sorry to suggest something that’s not actually released yet, but we have an upcoming integration with [https://hydra.cc/](https://hydra.cc/) that aims to address this kind of scenario. In fact, there is an example in [exp run: Support composing and dumping Hydra config. by daavoo · Pull Request #8093 · iterative/dvc · GitHub](https://github.com/iterative/dvc/pull/8093#issuecomment-1222126884) that seems similar to what you need. Does that look like it would work for you? If so, we will hopefully have that feature released shortly if you can wait a few days.

---

<div class="post-metadata">

### Author: ![RiCk](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@RiCk](https://discuss.dvc.org/u/RiCk)
#### Post date: [September 1, 2022, 11:35am UTC](https://discuss.dvc.org/t/dynamic-parameter-import/1312/3 "2022-09-01T11:35:22Z")

</div>

Hi @dberenbaum, thanks! I skimmed over the hydra documentation as I wasn’t familiar with it. And I saw the feature is now supported in [Release 2.24.0 🦉 · iterative/dvc (github.com)](https://github.com/iterative/dvc/releases/tag/2.24.0). I will need to check it out, but looks useful 🙂 for my case.
