mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
enh: torch mps support
This commit is contained in:
@@ -54,6 +54,9 @@ else:
|
||||
DEVICE_TYPE = "cpu"
|
||||
|
||||
|
||||
if torch.backends.mps.is_available() and torch.backends.mps.is_built():
|
||||
DEVICE_TYPE = "mps"
|
||||
|
||||
####################################
|
||||
# LOGGING
|
||||
####################################
|
||||
|
||||
Reference in New Issue
Block a user