From 90fd75b651beb39492866af2e3d7b29d9e9438de Mon Sep 17 00:00:00 2001 From: zackees Date: Sat, 22 Jun 2024 14:34:17 -0700 Subject: [PATCH] Update MPS high watermark ratio to 1.9 on macOS --- transcribe_anything/insanely_fast_whisper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcribe_anything/insanely_fast_whisper.py b/transcribe_anything/insanely_fast_whisper.py index f450c1b..547d10e 100644 --- a/transcribe_anything/insanely_fast_whisper.py +++ b/transcribe_anything/insanely_fast_whisper.py @@ -202,7 +202,7 @@ def run_insanely_fast_whisper( if sys.platform == "darwin": # Attempts fixed recommended for the mps machines. This seems # to be necessary since a recent update. - env["PYTORCH_MPS_HIGH_WATERMARK_RATIO"] = "0.0" + env["PYTORCH_MPS_HIGH_WATERMARK_RATIO"] = "1.9" env["PYTORCH_ENABLE_MPS_FALLBACK"] = "1" device_id = get_device_id() cmd_list = []