# \`accelerate config\` alternative for multi-node training

**URL:** <https://discuss.huggingface.co/t/accelerate-config-alternative-for-multi-node-training/22567>\
**Category:** 🤗Accelerate\
**Created:** [September 5, 2022, 2:06pm UTC](https://discuss.huggingface.co/t/accelerate-config-alternative-for-multi-node-training/22567 "2022-09-05T14:06:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyk1337](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/cyk1337/32/24460_2.png) [@cyk1337](https://discuss.huggingface.co/u/cyk1337)\
**Post date:** [September 5, 2022, 2:06pm UTC](https://discuss.huggingface.co/t/accelerate-config-alternative-for-multi-node-training/22567/1 "2022-09-05T14:06:33Z")

</div>

For multi-node training, the `accelerate` library requires manually running `accelerate config` on each machine. It is inconvenient if the node number exceeds 10+ (manually setting the configuration for 10+ times). Is there a solution that we can automatically generate the config file on each machine?

---

<div class="post-metadata">

**Author:** ![muellerzr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/muellerzr/32/21583_2.png) [@muellerzr](https://discuss.huggingface.co/u/muellerzr)\
**Post date:** [September 5, 2022, 9:29pm UTC](https://discuss.huggingface.co/t/accelerate-config-alternative-for-multi-node-training/22567/2 "2022-09-05T21:29:47Z")

</div>

> [@cyk1337](#):
>
> Is there a solution that we can automatically generate the config file on each machine?

You can just use the same single yaml and tweak it for the node number, and copy/paste onto each machine.

> **[Launching your 🤗 Accelerate scripts](https://huggingface.co/docs/accelerate/basic_tutorials/launch#custom-configurations)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![cyk1337](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/cyk1337/32/24460_2.png) [@cyk1337](https://discuss.huggingface.co/u/cyk1337)\
**Post date:** [September 6, 2022, 2:04am UTC](https://discuss.huggingface.co/t/accelerate-config-alternative-for-multi-node-training/22567/3 "2022-09-06T02:04:40Z")

</div>

Hi @muellerzr, I was wondering whether there is such a tool. If not, I would develop one. Thank you very much for your answers.
