mirror of
https://github.com/open-webui/open-webui
synced 2025-01-31 23:08:59 +00:00
enh: torch mps support
This commit is contained in:
parent
614379a427
commit
d477f73c7e
@ -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 New Issue
Block a user