# Download a model from Hugging face hub and upload it to opensearch

**URL:** <https://forum.opensearch.org/t/download-a-model-from-hugging-face-hub-and-upload-it-to-opensearch/16523>\
**Category:** Machine Learning\
**Created:** [November 2, 2023, 12:27am UTC](https://forum.opensearch.org/t/download-a-model-from-hugging-face-hub-and-upload-it-to-opensearch/16523 "2023-11-02T00:27:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexmlopez](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@alexmlopez](https://forum.opensearch.org/u/alexmlopez)\
**Post date:** [November 2, 2023, 12:27am UTC](https://forum.opensearch.org/t/download-a-model-from-hugging-face-hub-and-upload-it-to-opensearch/16523/1 "2023-11-02T00:27:43Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
Does anyone downloaded a model from  
huggingface hub and uploaded it to opensearch,? if so, can you share the details ?

**Describe the issue** :

**Configuration** :

**Relevant Logs or Screenshots** :

---

<div class="post-metadata">

**Author:** ![ylwu](https://avatars.discourse-cdn.com/v4/letter/y/a9a28c/32.png) [@ylwu](https://forum.opensearch.org/u/ylwu)\
**Post date:** [November 18, 2023, 1:09am UTC](https://forum.opensearch.org/t/download-a-model-from-hugging-face-hub-and-upload-it-to-opensearch/16523/2 "2023-11-18T01:09:07Z")

</div>

Model downloaded from Huggingface can’t be uploaded to OpenSearch. You should trace the model to Pytorch .pt file, then you can upload. OpenSearch already published some pretrained models. that’s the easiest way to upload model [Pretrained models - OpenSearch documentation](https://opensearch.org/docs/latest/ml-commons-plugin/pretrained-models/)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [January 17, 2024, 1:09am UTC](https://forum.opensearch.org/t/download-a-model-from-hugging-face-hub-and-upload-it-to-opensearch/16523/3 "2024-01-17T01:09:19Z")

</div>

Closed on January 17, 2024, 1:09am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
