# Saving model trouble

**URL:** <https://discuss.huggingface.co/t/saving-model-trouble/74152>\
**Category:** Beginners\
**Created:** [February 21, 2024, 2:25pm UTC](https://discuss.huggingface.co/t/saving-model-trouble/74152 "2024-02-21T14:25:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swtb](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@swtb](https://discuss.huggingface.co/u/swtb)\
**Post date:** [February 21, 2024, 2:25pm UTC](https://discuss.huggingface.co/t/saving-model-trouble/74152/1 "2024-02-21T14:25:22Z")

</div>

Hello,

I am trying to save my model using the from\_pretrained. However I get an error:  
NotADirectoryError: [Errno 20] Not a directory: ‘{directory}/huggingface\_hub/templates/modelcard\_template.md’

---

<div class="post-metadata">

**Author:** ![El-chapoo](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/el-chapoo/32/23658_2.png) [@El-chapoo](https://discuss.huggingface.co/u/El-chapoo)\
**Post date:** [February 21, 2024, 5:45pm UTC](https://discuss.huggingface.co/t/saving-model-trouble/74152/2 "2024-02-21T17:45:18Z")

</div>

you should provide path to the directory where you want to save the model

---

<div class="post-metadata">

**Author:** ![swtb](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@swtb](https://discuss.huggingface.co/u/swtb)\
**Post date:** [February 21, 2024, 5:57pm UTC](https://discuss.huggingface.co/t/saving-model-trouble/74152/3 "2024-02-21T17:57:26Z")

</div>

I do,

Besides the error is to do with locating the model card. Not a destination for the model.
