From b93daf2446dc8ededb345d0711a1be382376a6f3 Mon Sep 17 00:00:00 2001 From: zackees Date: Sat, 22 Jun 2024 14:27:30 -0700 Subject: [PATCH] Update PyTorch MPS high watermark ratio to 0.0 --- 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 e8a325d..109a93c 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"] = "1.9" + env["PYTORCH_MPS_HIGH_WATERMARK_RATIO"] = "0.0" device_id = get_device_id() cmd_list = [] output_dir.mkdir(parents=True, exist_ok=True)