# How pretrain ELECTRA on custom dataset?

**URL:** <https://discuss.huggingface.co/t/how-pretrain-electra-on-custom-dataset/968>\
**Category:** Beginners\
**Created:** [September 2, 2020, 6:27pm UTC](https://discuss.huggingface.co/t/how-pretrain-electra-on-custom-dataset/968 "2020-09-02T18:27:59Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![valhalla](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/valhalla/32/4179_2.png) [@valhalla](https://discuss.huggingface.co/u/valhalla)\
**Post date:** [September 6, 2020, 10:53am UTC](https://discuss.huggingface.co/t/how-pretrain-electra-on-custom-dataset/968/6 "2020-09-06T10:53:40Z")

</div>

> [@ELECTRA training reimplementation and discussion](https://discuss.huggingface.co/t/electra-training-reimplementation-and-discussion/1004):
>
> After months of development and debugging, I finally successfully train a model from scratch and replicate the official results. [ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators](https://arxiv.org/abs/2003.10555) by Kevin Clark. Minh-Thang Luong. Quoc V. Le. Christopher D. Manning computer Code: [electra\_pytorch](https://github.com/richarddwang/electra_pytorch) AFAIK, the closest reimplementation to the original one, taking care of many easily overlooked details (described below). AFAIK, the only one successfully validate itself by replica…

---

_[View the full topic](https://discuss.huggingface.co/t/how-pretrain-electra-on-custom-dataset/968)._
