# Backend for the hub models executed by widgets

**URL:** <https://discuss.huggingface.co/t/backend-for-the-hub-models-executed-by-widgets/12631>\
**Category:** 🤗Hub\
**Created:** [December 8, 2021, 10:57am UTC](https://discuss.huggingface.co/t/backend-for-the-hub-models-executed-by-widgets/12631 "2021-12-08T10:57:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mchochowski](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@mchochowski](https://discuss.huggingface.co/u/mchochowski)\
**Post date:** [December 8, 2021, 10:57am UTC](https://discuss.huggingface.co/t/backend-for-the-hub-models-executed-by-widgets/12631/1 "2021-12-08T10:57:12Z")

</div>

Hi, what is the backend used when I run my model through the widget on model-card page ? Is this a GPU or CPU ?

---

<div class="post-metadata">

**Author:** ![osanseviero](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/osanseviero/32/38738_2.png) [@osanseviero](https://discuss.huggingface.co/u/osanseviero)\
**Post date:** [December 8, 2021, 9:13pm UTC](https://discuss.huggingface.co/t/backend-for-the-hub-models-executed-by-widgets/12631/2 "2021-12-08T21:13:46Z")

</div>

This uses the Inference API and is CPU by default. Subscribers can get GPUs and pin the models so they load very quickly, but you can read more about it at [Inference API - Hugging Face](https://huggingface.co/inference-api) and [Overview — Api inference documentation](https://api-inference.huggingface.co/docs/python/html/quicktour.html)
