mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
mac: Sentence Transformers and OpenWebUI does not use the MPS/GPU on Apple Silicon #3190
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 @richtong on GitHub (Jan 5, 2025).
Discussed in https://github.com/open-webui/open-webui/discussions/8278
Originally posted by richtong January 2, 2025
Ok, I'm using MacOS Sequoia 15.2 with pipx installed open-webui 0.5.3 and the sentence transformers for RAG for both the embed model and the ranker seem to be CPU only.
Ollama runs fine as an MPS (Apple version of CUDA), but not sentence transformers. Is there some variable i can set, I haven't groveled down into the code to look to see how this works. :-)
The fix required is a check for the mps device in env.py, I wrote up a fix and it seems to work
@tjbck commented on GitHub (Jan 5, 2025):
Added to dev