# How to use Seq2SeqTrainer (Seq2SeqDataCollator) in v4.2.1

**URL:** <https://discuss.huggingface.co/t/how-to-use-seq2seqtrainer-seq2seqdatacollator-in-v4-2-1/3243>\
**Category:** 🤗Transformers\
**Created:** [January 17, 2021, 9:27am UTC](https://discuss.huggingface.co/t/how-to-use-seq2seqtrainer-seq2seqdatacollator-in-v4-2-1/3243 "2021-01-17T09:27:04Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![sgugger](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/sgugger/32/2291_2.png) [@sgugger](https://discuss.huggingface.co/u/sgugger)\
**Post date:** [January 19, 2021, 9:15pm UTC](https://discuss.huggingface.co/t/how-to-use-seq2seqtrainer-seq2seqdatacollator-in-v4-2-1/3243/5 "2021-01-19T21:15:43Z")

</div>

The PR has been merged, so you should be able to use a similar workflow. Note that the processing that used to be done in `Seq2SeqDataCollator` is now done on the dataset directly.

---

_[View the full topic](https://discuss.huggingface.co/t/how-to-use-seq2seqtrainer-seq2seqdatacollator-in-v4-2-1/3243)._
