# Are huggingface models downloaded on my machine?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fare-huggingface-models-downloaded-on-my-machine%2F39946%3E%5C
**Category:** Beginners\
**Created:** [May 15, 2023, 12:43pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fare-huggingface-models-downloaded-on-my-machine%2F39946 "2023-05-15T12:43:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ferraria](https://avatars.discourse-cdn.com/v4/letter/f/258eb7/32.png) [@Ferraria](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FFerraria)%5C
**Post date:** [May 15, 2023, 12:43pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fare-huggingface-models-downloaded-on-my-machine%2F39946%2F1 "2023-05-15T12:43:27Z")

</div>

Hi there,  
While reading the documentation for the huggingface transformers, i came across a statement which says that the models are downloaded locally and cached on my computer. And although i have found the files that the documentation points to, i don’t entirely understand how an entire transformer model can be cached on my laptop without taking up significant space on my harddrive…the files i have found are less then 1mb…

> **[Installation](https://huggingface.co/docs/transformers/installation)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

can someone please point to further documentation or help me clarify whether the pipeline function acts as an API between my computer and huggingface hub to process the inputs?

---

<div class="post-metadata">

**Author:** ![mariosasko](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mariosasko/32/31548_2.png) [@mariosasko](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmariosasko)%5C
**Post date:** [May 15, 2023, 2:39pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fare-huggingface-models-downloaded-on-my-machine%2F39946%2F2 "2023-05-15T14:39:16Z")

</div>

Hi! `transformers` uses `huggingface_hub` to structure the cache. You can find detailed docs on it [here](https://huggingface.co/docs/huggingface_hub/guides/manage-cache#refs) (it’s also possible to scan it).

> can someone please point to further documentation or help me clarify whether the pipeline function acts as an API between my computer and huggingface hub to process the inputs?

`pipeline` downloads the specified `model` from the Hub and runs inference on it locally. To run inference on a model hosted on the Hub, you can use the [Inference API](https://huggingface.co/docs/api-inference/index).
