# T5-xxl mlm distributed training?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ft5-xxl-mlm-distributed-training%2F31925%3E%5C
**Category:** 🤗Transformers\
**Created:** [February 17, 2023, 4:34pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ft5-xxl-mlm-distributed-training%2F31925 "2023-02-17T16:34:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanielDIQA](https://avatars.discourse-cdn.com/v4/letter/d/b3f665/32.png) [@DanielDIQA](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FDanielDIQA)%5C
**Post date:** [February 17, 2023, 4:34pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ft5-xxl-mlm-distributed-training%2F31925%2F1 "2023-02-17T16:34:40Z")

</div>

Hi there,  
I want to train T5-XXL on a domain corpus (unsupervised, masked training). I’ve got 2 GPU á 40GB at hand, so I need to make use of Acclerator and Deepspeed.  
The example script [run\_t5\_mlm\_flax.py](https://github.com/huggingface/transformers/blob/main/examples/flax/language-modeling/run_t5_mlm_flax.py) from the flax-examples does not support Accelerator ☹

The script [run\_mlm\_no\_trainer.py](https://github.com/huggingface/transformers/blob/main/examples/pytorch/language-modeling/run_mlm_no_trainer.py) from the pytorch-examples supports Accelerator but not the T5’s particular training mode.

Is it true that huggingface’s Flax support is in “maintenance mode”?

thanks 🙂  
Daniel

---

<div class="post-metadata">

**Author:** ![atharsefid](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@atharsefid](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fatharsefid)%5C
**Post date:** [February 15, 2024, 2:26pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ft5-xxl-mlm-distributed-training%2F31925%2F2 "2024-02-15T14:26:51Z")

</div>

I think accelerator is designed for toch not flax.
