# Files required for offline running

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffiles-required-for-offline-running%2F27719%3E%5C
**Category:** Beginners\
**Created:** [December 13, 2022, 12:08am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffiles-required-for-offline-running%2F27719 "2022-12-13T00:08:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashic](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ashic/32/13018_2.png) [@ashic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fashic)%5C
**Post date:** [December 13, 2022, 12:08am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ffiles-required-for-offline-running%2F27719%2F1 "2022-12-13T00:08:09Z")

</div>

Due to various corporate network hoops, downloading models on the is not possible. Searching posts in this regard, I can see that others have downloaded and saved the models locally, but again, the initial download is a problem. At this point, I can see two options: git lfs to download the repo, and the huggingface\_hub python library.

For the git lfs option, I think it downloads the whole repository (well, one commit deep). As an example, I’m looking at: [sshleifer/distilbart-cnn-12-6 · Hugging Face](https://huggingface.co/sshleifer/distilbart-cnn-12-6) . I see this has a pytorch model, a rust model, and a msgpack model - each over 1GB in size. I’m looking to use this for local development, as well as embedding in a container to run on servers (so as not to download on each run - which would be a massive waste). The git lfs option downloads the whole thing.

With the huggingface\_hub library, I can select individual files. And this seems to work on our network. However, I’m a bit confused about which files I need to be able to load the model. We’re running with pytorch - so can I just download the pytorch bin model? Or would I need the msgpack and rust models too? Would I require the config.json, merges.txt, tokenizer\_config.json, and vocab.json as well?
