# Same loss on multiple nodes

**URL:** <https://discuss.huggingface.co/t/same-loss-on-multiple-nodes/60803>\
**Category:** 🤗Accelerate\
**Created:** [November 2, 2023, 9:57am UTC](https://discuss.huggingface.co/t/same-loss-on-multiple-nodes/60803 "2023-11-02T09:57:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cwallenwein](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/cwallenwein/32/21752_2.png) [@cwallenwein](https://discuss.huggingface.co/u/cwallenwein)\
**Post date:** [November 2, 2023, 9:57am UTC](https://discuss.huggingface.co/t/same-loss-on-multiple-nodes/60803/1 "2023-11-02T09:57:02Z")

</div>

Hi Friends 😊  
I’m training a model on two nodes (using Huggingface Trainer) and in the console, both nodes log the same loss. Is that expected or are both nodes seeing the same training data?

---

<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:** [November 2, 2023, 11:09am UTC](https://discuss.huggingface.co/t/same-loss-on-multiple-nodes/60803/2 "2023-11-02T11:09:04Z")

</div>

Yes, that is how DDP works 🙂
