mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +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"
|
||||
|
||||
|
||||
if torch.backends.mps.is_available() and torch.backends.mps.is_built():
|
||||
DEVICE_TYPE = "mps"
|
||||
|
||||
####################################
|
||||
# LOGGING
|
||||
####################################
|
||||
|
|
|
|||
Loading…
Reference in a new issue