# Using Electra model

**URL:** <https://discuss.huggingface.co/t/using-electra-model/2406>\
**Category:** Beginners\
**Created:** [December 2, 2020, 7:55am UTC](https://discuss.huggingface.co/t/using-electra-model/2406 "2020-12-02T07:55:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergio](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Sergio](https://discuss.huggingface.co/u/Sergio)\
**Post date:** [December 2, 2020, 7:55am UTC](https://discuss.huggingface.co/t/using-electra-model/2406/1 "2020-12-02T07:55:41Z")

</div>

Hi everyone,  
I would to like to use an Electra model instead of a Bert model.  
In order to do this, do I need to replace only the path to the model in my code?  
So, for example, instead of “bert-base-uncased” I have to use " electra-base-uncased-discriminator".

---

<div class="post-metadata">

**Author:** ![Jung](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/jung/32/21989_2.png) [@Jung](https://discuss.huggingface.co/u/Jung)\
**Post date:** [December 3, 2020, 6:46am UTC](https://discuss.huggingface.co/t/using-electra-model/2406/2 "2020-12-03T06:46:09Z")

</div>

Hi Sergio, there is an example in Electra manual that you can follow : [https://huggingface.co/transformers/model\_doc/electra.html#tfelectraforsequenceclassification](https://huggingface.co/transformers/model_doc/electra.html#tfelectraforsequenceclassification)

---

<div class="post-metadata">

**Author:** ![Sergio](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Sergio](https://discuss.huggingface.co/u/Sergio)\
**Post date:** [December 3, 2020, 7:12am UTC](https://discuss.huggingface.co/t/using-electra-model/2406/3 "2020-12-03T07:12:25Z")

</div>

Thank you, Jung. From the doc it seems I need to change only the bert model with the electra discriminator. I’ll do some tests
