# Import trained model to ElastichSearch

**URL:** <https://discuss.elastic.co/t/import-trained-model-to-elastichsearch/342197>\
**Category:** Elasticsearch\
**Created:** [September 3, 2023, 4:46pm UTC](https://discuss.elastic.co/t/import-trained-model-to-elastichsearch/342197 "2023-09-03T16:46:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khanh\_Dao\_Minh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khanh_dao_minh/32/125152_2.png) [@Khanh\_Dao\_Minh](https://discuss.elastic.co/u/Khanh_Dao_Minh)\
**Post date:** [September 3, 2023, 4:46pm UTC](https://discuss.elastic.co/t/import-trained-model-to-elastichsearch/342197/1 "2023-09-03T16:46:08Z")

</div>

hello everyone. I have a question about importing my model to Elasticsearch.  
When i imported the model for task text embedding and started deployment mode on Kibana web, i got an error message  
" Couldn't start trained model deployment, the following nodes failed with errors [Failed to connect to PyTorch process to job]".

I struggled to get the answer on Google but didn't any information helpful. Can anyone help me to fix that?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 3, 2023, 4:54pm UTC](https://discuss.elastic.co/t/import-trained-model-to-elastichsearch/342197/2 "2023-09-03T16:54:12Z")

</div>

Hi @Khanh_Dao_Minh Welcome to the community.

A couple things.

First basics:

What version of the Stack?

Is the node enabled with machine learning role?

Do you have a platinum or Trial license enabled?

Also can you show the exact commands and outputs?

Then perhaps we can help..

---

<div class="post-metadata">

**Author:** ![Khanh\_Dao\_Minh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khanh_dao_minh/32/125152_2.png) [@Khanh\_Dao\_Minh](https://discuss.elastic.co/u/Khanh_Dao_Minh)\
**Post date:** [September 5, 2023, 3:43pm UTC](https://discuss.elastic.co/t/import-trained-model-to-elastichsearch/342197/3 "2023-09-05T15:43:23Z")

</div>

Thank @stephenb for your response. I fix that by setting xpack.ml.enabled = true in yml config file and down version Pytorch.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 3, 2023, 3:44pm UTC](https://discuss.elastic.co/t/import-trained-model-to-elastichsearch/342197/4 "2023-10-03T15:44:00Z")

</div>

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