mirror of
https://github.com/open-webui/open-webui
synced 2025-01-19 09:16:44 +00:00
enh: torch mps support
This commit is contained in:
parent
614379a427
commit
d477f73c7e
@ -54,6 +54,9 @@ else:
|
||||
DEVICE_TYPE = "cpu"
|
||||
|
||||
|
||||
if torch.backends.mps.is_available() and torch.backends.mps.is_built():
|
||||
DEVICE_TYPE = "mps"
|
||||
|
||||
####################################
|
||||
# LOGGING
|
||||
####################################
|
||||
|
Loading…
Reference in New Issue
Block a user