Error about deploying locally a model plugged into the Hosted Inference API on huggingface #6889

Closed
opened 2026-02-21 18:17:50 -05:00 by yindo · 4 comments
Owner

Originally created by @zhizhuaa on GitHub (Nov 22, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.10.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

The following error occurred when I followed https://docs.dify.ai/zh-hans/development/models-integration/hugging-face to access the model from the community edition web page deployed via Docker Compose

image

Looking forward to your reply.

✔️ Expected Behavior

successfully access the model.

Actual Behavior

The following error occurred when I followed https://docs.dify.ai/zh-hans/development/models-integration/hugging-face to access the model from the community edition web page deployed via Docker Compose

image

Looking forward to your reply.

Originally created by @zhizhuaa on GitHub (Nov 22, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.10.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce The following error occurred when I followed https://docs.dify.ai/zh-hans/development/models-integration/hugging-face to access the model from the community edition web page deployed via Docker Compose ![image](https://github.com/user-attachments/assets/a32e50cc-eee9-4164-851c-308257700d8c) Looking forward to your reply. ### ✔️ Expected Behavior successfully access the model. ### ❌ Actual Behavior The following error occurred when I followed https://docs.dify.ai/zh-hans/development/models-integration/hugging-face to access the model from the community edition web page deployed via Docker Compose ![image](https://github.com/user-attachments/assets/a32e50cc-eee9-4164-851c-308257700d8c) Looking forward to your reply.
yindo closed this issue 2026-02-21 18:17:50 -05:00
Author
Owner

@zhizhuaa commented on GitHub (Nov 22, 2024):

This is my first time using huggingface.

@zhizhuaa commented on GitHub (Nov 22, 2024): This is my first time using huggingface.
Author
Owner

@dosubot[bot] commented on GitHub (Nov 22, 2024):

I couldn't find specific information about integrating Hugging Face models with Dify in the available data. However, there are some known issues and limitations with Dify version 0.10.2 when deploying models locally. Here are some general troubleshooting steps that might help:

  1. Check Network Configuration: Ensure that the Dify container can access the Hugging Face API. If you're using Docker, make sure the network settings allow for external API calls.

  2. Verify API Keys: Double-check that your Hugging Face API keys are correctly configured and have the necessary permissions.

  3. Inspect Docker Logs: Check the logs of your Docker containers for any error messages that might provide more insight into the issue.

  4. Cross-Domain Issues: If you encounter cross-domain issues, ensure that your domain configurations in docker-compose.yml are correct.

  5. Port Conflicts: Make sure there are no port conflicts that might be preventing the service from running properly.

If these steps don't resolve the issue, you might want to look into similar discussions or issues in the Dify repository for more context. For example, there are discussions about connection errors and deployment failures that might provide additional insights [1][2].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Nov 22, 2024): <!-- Answer --> I couldn't find specific information about integrating Hugging Face models with Dify in the available data. However, there are some known issues and limitations with Dify version 0.10.2 when deploying models locally. Here are some general troubleshooting steps that might help: 1. **Check Network Configuration**: Ensure that the Dify container can access the Hugging Face API. If you're using Docker, make sure the network settings allow for external API calls. 2. **Verify API Keys**: Double-check that your Hugging Face API keys are correctly configured and have the necessary permissions. 3. **Inspect Docker Logs**: Check the logs of your Docker containers for any error messages that might provide more insight into the issue. 4. **Cross-Domain Issues**: If you encounter cross-domain issues, ensure that your domain configurations in `docker-compose.yml` are correct. 5. **Port Conflicts**: Make sure there are no port conflicts that might be preventing the service from running properly. If these steps don't resolve the issue, you might want to look into similar discussions or issues in the Dify repository for more context. For example, there are discussions about connection errors and deployment failures that might provide additional insights <sup>[[1]](https://github.com/langgenius/dify/discussions/6181)</sup><sup>[[2]](https://github.com/langgenius/dify/discussions/5813)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Nov 22, 2024):

Please make sure you can access huggingface endpoint correctly.

@crazywoola commented on GitHub (Nov 22, 2024): Please make sure you can access huggingface endpoint correctly.
Author
Owner

@zhizhuaa commented on GitHub (Nov 24, 2024):

Online web pages using cloud services are available to add models as shown below.
Snipaste_2024-11-25_10-59-23

However, using the docker local deployment of the web page to add ignoring the model, the error is as follows.
Snipaste_2024-11-25_10-45-55

@zhizhuaa commented on GitHub (Nov 24, 2024): Online web pages using cloud services are available to add models as shown below. ![Snipaste_2024-11-25_10-59-23](https://github.com/user-attachments/assets/6136e755-7f9b-4f5f-8a3c-1e1bb7370c86) However, using the docker local deployment of the web page to add ignoring the model, the error is as follows. ![Snipaste_2024-11-25_10-45-55](https://github.com/user-attachments/assets/d0eb91ac-b1f4-4321-899e-b0e9466fc96b)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6889