# How Can I use cashed models from HuggingFace?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-use-cashed-models-from-huggingface%2F61679%3E%5C
**Category:** 🤗Transformers\
**Created:** [November 9, 2023, 4:45pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-use-cashed-models-from-huggingface%2F61679 "2023-11-09T16:45:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![khabibulloevms](https://avatars.discourse-cdn.com/v4/letter/k/a6a055/32.png) [@khabibulloevms](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fkhabibulloevms)%5C
**Post date:** [November 9, 2023, 4:45pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-use-cashed-models-from-huggingface%2F61679%2F1 "2023-11-09T16:45:17Z")

</div>

I want to use models from: [https://huggingface.co/ARTeLab/mbart-summarization-mlsum](https://stackoverflow.com/) in offline mode, meaning that after downloading them from Hugging Face, they will be saved locally and I will be able to use them offline. However, I don’t know how to do this. If anyone has already figured this out, please advise me. I use these lines to download models:

```auto
from transformers import MBartTokenizer, MBartForConditionalGeneration
tokenizer = MBartTokenizer.from_pretrained("ARTeLab/mbart-summarization-mlsum")
model = MBartForConditionalGeneration.from_pretrained("ARTeLab/mbart-summarization-mlsum")

```

The problem is that when I run this line, I download several files from the repository at once, and I don’t know which one is then used for tokenization:

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/9/6/96dc036932fc219bb9296a777a8bea569a224f97.png)

If they are all used, how can I know how to use them?
