# Saving model trouble

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsaving-model-trouble%2F74152%3E%5C
**Category:** Beginners\
**Created:** [February 21, 2024, 2:25pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsaving-model-trouble%2F74152 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fswtb)%5C
**Post date:** [February 21, 2024, 2:25pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsaving-model-trouble%2F74152%2F1 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FEl-chapoo)%5C
**Post date:** [February 21, 2024, 5:45pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsaving-model-trouble%2F74152%2F2 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fswtb)%5C
**Post date:** [February 21, 2024, 5:57pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsaving-model-trouble%2F74152%2F3 "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.
