mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #5396] [CLOSED] fix: CUDA unavailable but USE_CUDA_DOCKER=true should crash #21677
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/5396
Author: @thiswillbeyourgithub
Created: 9/13/2024
Status: ❌ Closed
Base:
dev← Head:fix_cuda_not_checked📝 Commits (10+)
77673b6fix: USE_CUDA_DOCKER true without gpu should crash6efbd3ffix: change metadata to metadatas932174cfix: log exception when issues of collection querying73adc61enh: use non hybrid search as fallback if hybrid search failed3457d75fix: much improved RAG template42793f7logs: crash if rag_template would be wrong11c182efix: handle case where [query] happens in the RAG contexte26893dfix: add check that the context for RAG is not empty if the threshold is 0a8a94eelog: added a debug log if detecting a potential prompt injection attack3723189added a few type hints📊 Changes
53 files changed (+672 additions, -95 deletions)
View changed files
📝
backend/open_webui/__init__.py(+12 -0)📝
backend/open_webui/apps/images/main.py(+40 -0)📝
backend/open_webui/apps/rag/utils.py(+63 -26)📝
backend/open_webui/apps/rag/vector/dbs/chroma.py(+21 -12)📝
backend/open_webui/apps/rag/vector/dbs/milvus.py(+44 -12)📝
backend/open_webui/apps/rag/vector/main.py(+5 -2)📝
backend/open_webui/apps/webui/routers/models.py(+12 -20)📝
backend/open_webui/config.py(+84 -10)📝
backend/open_webui/main.py(+9 -0)📝
src/app.html(+16 -13)📝
src/lib/components/admin/Settings/Images.svelte(+97 -0)📝
src/lib/components/chat/Settings/General.svelte(+23 -0)📝
src/lib/i18n/locales/ar-BH/translation.json(+6 -0)📝
src/lib/i18n/locales/bg-BG/translation.json(+6 -0)📝
src/lib/i18n/locales/bn-BD/translation.json(+6 -0)📝
src/lib/i18n/locales/ca-ES/translation.json(+6 -0)📝
src/lib/i18n/locales/ceb-PH/translation.json(+6 -0)📝
src/lib/i18n/locales/de-DE/translation.json(+6 -0)📝
src/lib/i18n/locales/dg-DG/translation.json(+6 -0)📝
src/lib/i18n/locales/en-GB/translation.json(+6 -0)...and 33 more files
📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
USE_CUDA_DOCKERvariable totrueand (for one reason or another) cuda is not available: Open-WebUI should check that cuda is indeed available.Added
Additional Information
Related to the issue that caused #5378 in my case. My CUDA was not available for reasons unrelated to Open-WebUI but no check whatsoever was done until something tried to use cuda. In my case it was the hybrid search.
@tjbck I think this too illustrates that Open-WebUI does not have appropriate checks. IMO, asserts are cheap and will save everyone a lot of headache.
If I may offer an unsolicited piece of advice, click me.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.