mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
enh: torch mps support
This commit is contained in:
parent
614379a427
commit
d477f73c7e
1 changed files with 3 additions and 0 deletions
|
|
@ -54,6 +54,9 @@ else:
|
||||||
DEVICE_TYPE = "cpu"
|
DEVICE_TYPE = "cpu"
|
||||||
|
|
||||||
|
|
||||||
|
if torch.backends.mps.is_available() and torch.backends.mps.is_built():
|
||||||
|
DEVICE_TYPE = "mps"
|
||||||
|
|
||||||
####################################
|
####################################
|
||||||
# LOGGING
|
# LOGGING
|
||||||
####################################
|
####################################
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue