Skip to content

Commit

Permalink
Update config.py
Browse files Browse the repository at this point in the history
Change the inference device for Mac to accelerate inference and reduce memory leak
  • Loading branch information
XXXXRT666 authored Feb 20, 2024
1 parent a16de2e commit 3180294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
if torch.cuda.is_available():
infer_device = "cuda"
elif torch.backends.mps.is_available():
infer_device = "mps"
infer_device = "cpu"
else:
infer_device = "cpu"

Expand Down

0 comments on commit 3180294

Please sign in to comment.