# Download models for local loading

**URL:** <https://discuss.huggingface.co/t/download-models-for-local-loading/1963>\
**Category:** Beginners\
**Created:** [November 10, 2020, 2:04pm UTC](https://discuss.huggingface.co/t/download-models-for-local-loading/1963 "2020-11-10T14:04:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![thomwolf](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/thomwolf/32/2198_2.png) [@thomwolf](https://discuss.huggingface.co/u/thomwolf)\
**Post date:** [November 12, 2020, 1:01pm UTC](https://discuss.huggingface.co/t/download-models-for-local-loading/1963/2 "2020-11-12T13:01:06Z")

</div>

You can now (since the switch to git models explained here: [[Announcement] Model Versioning: Upcoming changes to the model hub](https://discuss.huggingface.co/t/announcement-model-versioning-upcoming-changes-to-the-model-hub/1914/27)) just git clone a model to your laptop and make `from_pretrained` point to it:

```python
# In a google colab install git-lfs
!sudo apt-get install git-lfs
!git lfs install

# Then
!git clone https://huggingface.co/ORGANIZATION_OR_USER/MODEL_NAME

from transformers import AutoModel

model = AutoModel.from_pretrained('./MODEL_NAME')

```

For instance:

```python
# In a google colab install git-lfs
!sudo apt-get install git-lfs
!git lfs install

# Then
!git clone https://huggingface.co/facebook/bart-base

from transformers import AutoModel

model = AutoModel.from_pretrained('./bart-base')

```

cc @julien-c for confirmation

---

_[View the full topic](https://discuss.huggingface.co/t/download-models-for-local-loading/1963)._
