# Which data parallel does trainer use? DP or DDP?

**URL:** <https://discuss.huggingface.co/t/which-data-parallel-does-trainer-use-dp-or-ddp/16021>\
**Category:** 🤗Transformers\
**Created:** [March 24, 2022, 6:03am UTC](https://discuss.huggingface.co/t/which-data-parallel-does-trainer-use-dp-or-ddp/16021 "2022-03-24T06:03:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![brando](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/brando/32/30114_2.png) [@brando](https://discuss.huggingface.co/u/brando)\
**Post date:** [August 17, 2022, 3:03pm UTC](https://discuss.huggingface.co/t/which-data-parallel-does-trainer-use-dp-or-ddp/16021/3 "2022-08-17T15:03:18Z")

</div>

perhaps useful to you: [Using Transformers with DistributedDataParallel — any examples?](https://discuss.huggingface.co/t/using-transformers-with-distributeddataparallel-any-examples/10775)

---

_[View the full topic](https://discuss.huggingface.co/t/which-data-parallel-does-trainer-use-dp-or-ddp/16021)._
