# Load local model with WhisperModel

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fload-local-model-with-whispermodel%2F93422%3E%5C
**Category:** Models\
**Created:** [June 21, 2024, 7:03pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fload-local-model-with-whispermodel%2F93422 "2024-06-21T19:03:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aben118](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@aben118](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Faben118)%5C
**Post date:** [June 21, 2024, 7:03pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fload-local-model-with-whispermodel%2F93422%2F1 "2024-06-21T19:03:22Z")

</div>

I am trying to load a local model but get the error `OSError: Incorrect path_or_model_id`  
`# save model locally`  
`model = WhisperModel.from_pretrained("openai/whisper-tiny")`  
`PreTrainedModel.save_pretrained(model, <my_path>`

Error when doing following:  
`model = WhisperModel.from_pretrained(pretrained_model_name_or_path=<my_path>, local_files_only=True)`
