mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
Memory leak when embedding #3293
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 @Jehyun97 on GitHub (Jan 16, 2025).
Description
After completing the embedding process, I observed a significant increase in RAM usage, which does not decrease over time. I am using [Ollama/OpenWebUI], and I suspect the issue may be related to how RAM is managed after the embedding process. However, when both Ollama and OpenWebUI are turned off, the RAM usage does not increase, indicating that the issue is related to one of these components. Additionally, I installed OpenWebUI using
pip.Steps to Reproduce
pip install open-webui.Expected Behavior
RAM usage should decrease or stabilize once the embedding process is completed and resources are released.
Actual Behavior
RAM usage continues to rise or remains elevated after the embedding process is completed.
Environment
Additional Information
Any insights or fixes would be greatly appreciated. Thank you!
@tjbck commented on GitHub (Jan 16, 2025):
Are you using the built-in inference engine for embeddings?
@Jehyun97 commented on GitHub (Jan 16, 2025):
I am using Ollama as the inference engine for embeddings. The embeddings are generated through the built-in functionality provided by Ollama.