mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 17:02:01 -05:00
[PR #13087] [CLOSED] add retrieval model optimizations #126752
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/13087
Author: @chsasank
Created: 4/20/2025
Status: ❌ Closed
Base:
main← Head:sasank📝 Commits (1)
1001139add retrieval model optimizations📊 Changes
2 files changed (+11 additions, -3 deletions)
View changed files
📝
backend/open_webui/retrieval/utils.py(+9 -3)📝
backend/open_webui/routers/retrieval.py(+2 -0)📄 Description
Added retrieval model optimizations.
torch.cuda.empty_cache()clears up any unnecessary memory occupied by pytorch after inference is complete. Models are loaded in FP16 because that's usually good enough but saves ram by 2x.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.