# Load local model with WhisperModel

**URL:** <https://discuss.huggingface.co/t/load-local-model-with-whispermodel/93422>\
**Category:** Models\
**Created:** [June 21, 2024, 7:03pm UTC](https://discuss.huggingface.co/t/load-local-model-with-whispermodel/93422 "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](https://discuss.huggingface.co/u/aben118)\
**Post date:** [June 21, 2024, 7:03pm UTC](https://discuss.huggingface.co/t/load-local-model-with-whispermodel/93422/1 "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)`
