# Host gpt2 model in a browser

**URL:** <https://discuss.huggingface.co/t/host-gpt2-model-in-a-browser/3231>\
**Category:** 🤗Transformers\
**Created:** [January 16, 2021, 5:19pm UTC](https://discuss.huggingface.co/t/host-gpt2-model-in-a-browser/3231 "2021-01-16T17:19:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![striki-ai](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/striki-ai/32/4624_2.png) [@striki-ai](https://discuss.huggingface.co/u/striki-ai)\
**Post date:** [January 16, 2021, 5:19pm UTC](https://discuss.huggingface.co/t/host-gpt2-model-in-a-browser/3231/1 "2021-01-16T17:19:54Z")

</div>

Is there any way to host gpt2 model in a browser? WASM maybe, even better?

---

<div class="post-metadata">

**Author:** ![s4sarath](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@s4sarath](https://discuss.huggingface.co/u/s4sarath)\
**Post date:** [January 19, 2021, 3:39pm UTC](https://discuss.huggingface.co/t/host-gpt2-model-in-a-browser/3231/2 "2021-01-19T15:39:19Z")

</div>

I don’t think so. Only way is to use tflite model, which is not easy to get converted forvauto regressive tasks.
