# Multiple params.yaml

**URL:** <https://discuss.dvc.org/t/multiple-params-yaml/720>\
**Category:** Questions\
**Created:** [April 13, 2021, 9:02am UTC](https://discuss.dvc.org/t/multiple-params-yaml/720 "2021-04-13T09:02:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nsorros](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dvc.org/nsorros/32/104_2.png) [@nsorros](https://discuss.dvc.org/u/nsorros)\
**Post date:** [April 13, 2021, 9:02am UTC](https://discuss.dvc.org/t/multiple-params-yaml/720/1 "2021-04-13T09:02:42Z")

</div>

Is it possible to have more than one params.yaml? If so, how should they be organised and named?

The context is I am considering of breaking up my dvc.yaml to multiple pipelines and would like to do the same for the params as well. Is the answer to save a params.yaml at the same place where the pipeline for dvc.yaml will live? something like pipelines/pip1/dvc.yaml,params.yaml and pipelines/pip2/dvc.yaml,params.yaml

---

<div class="post-metadata">

**Author:** ![jorgeorpinel](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dvc.org/jorgeorpinel/32/46_2.png) [@jorgeorpinel](https://discuss.dvc.org/u/jorgeorpinel)\
**Post date:** [April 14, 2021, 8:09am UTC](https://discuss.dvc.org/t/multiple-params-yaml/720/2 "2021-04-14T08:09:46Z")

</div>

You can have multiple parameters files but only one file named `params.yaml` per directory.

Any valid YAML, JSON, TOML, or Python file can be a params file. It’s up to you how to organize or name them. A good way to think about them is as any other config file in your project (so probably git-tracked).

Please see [params](https://dvc.org/doc/command-reference/params) and [dvc.yaml Files](https://dvc.org/doc/user-guide/project-structure/pipelines-files#parameter-dependencies) for more details.

> [@nsorros](#):
>
> Is the answer to save a params.yaml at the same place where the pipeline for dvc.yaml will live?

That’s a straightforward approach, yes 👍

---

<div class="post-metadata">

**Author:** ![nsorros](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.dvc.org/nsorros/32/104_2.png) [@nsorros](https://discuss.dvc.org/u/nsorros)\
**Post date:** [April 14, 2021, 9:11am UTC](https://discuss.dvc.org/t/multiple-params-yaml/720/3 "2021-04-14T09:11:19Z")

</div>

Thanks for the quick response. I assume the suggestion then is to break up the pipelines currently in one dvc.yaml into separate pipelines within their own directory and create a params.yaml at the same directory as the dvc.yaml that defines each pipeline.

Let me know if I understood it wrong.

---

<div class="post-metadata">

**Author:** ![Paffciu](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@Paffciu](https://discuss.dvc.org/u/Paffciu)\
**Post date:** [April 14, 2021, 12:25pm UTC](https://discuss.dvc.org/t/multiple-params-yaml/720/4 "2021-04-14T12:25:47Z")

</div>

@nsorros Yes, this is a viable approach. Remember, that if you are using params file that is not named `params.yaml`, you need to address those params properly. For example if you have file `other_params.yaml` and want to use `foo` param from inside, you need to address it with `-p other_params.yaml:foo` when defining the stage.
