# Bypassing tokenizers

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbypassing-tokenizers%2F2162%3E%5C
**Category:** 🤗Tokenizers\
**Created:** [November 22, 2020, 11:08am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbypassing-tokenizers%2F2162 "2020-11-22T11:08:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thenoone](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/thenoone/32/626_2.png) [@thenoone](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fthenoone)%5C
**Post date:** [November 22, 2020, 11:08am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbypassing-tokenizers%2F2162%2F1 "2020-11-22T11:08:23Z")

</div>

Hi everyone,  
Is it possible to bypass the tokenizer and directly provide the input embeddings to train the BERT model?  
Thanks!

---

<div class="post-metadata">

**Author:** ![BramVanroy](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/bramvanroy/32/47360_2.png) [@BramVanroy](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FBramVanroy)%5C
**Post date:** [November 22, 2020, 4:51pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbypassing-tokenizers%2F2162%2F2 "2020-11-22T16:51:35Z")

</div>

You can just create a subclass of the model that you want and modify its forward pass.

---

<div class="post-metadata">

**Author:** ![sgugger](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/sgugger/32/2291_2.png) [@sgugger](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsgugger)%5C
**Post date:** [November 23, 2020, 1:49pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbypassing-tokenizers%2F2162%2F3 "2020-11-23T13:49:30Z")

</div>

You can also feed `input_embeds` instead of `input_ids` to your mdel.
