mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
ollama model reload #275
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @maiweni on GitHub (May 11, 2025).
Self Checks
Dify version
1.2.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
1、create a chatflow in dify
2、Using dify's API to call chatflow
3、Check the size changes of the video memory and determine if the ollama model is repeatedly loaded
✔️ Expected Behavior
No response
❌ Actual Behavior
When using dify with the large model deployed locally via ollama, why does the model loaded by ollama get reloaded every time I call the dify API?
@dosubot[bot] commented on GitHub (May 11, 2025):
Hello @mafan12! I'm Dosu, your friendly bot here to help you solve bugs, answer questions, and navigate contributions. I'm ready to assist you while we wait for a human maintainer. Let's get started!
I found a similar unsolved discussion titled "How to set the ollama model to not reload every time it is called" which might be relevant to your issue [1]. Unfortunately, there isn't a documented solution available for this specific problem in the repository.
Regarding your issue with the Ollama model reloading every time you call the Dify API, there isn't specific information available in the documentation about configuration settings that control model reloading or caching to prevent this behavior. It might be beneficial to explore the configuration settings related to model management or check if there are any environment variables that could influence this behavior. If you haven't already, you might want to check the Docker configurations and environment variables to see if there are any settings that could help manage model loading more efficiently [2][3].
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other