From d6ff42dc7c0839fd23f8cc9ea83f75df4b6588e6 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sun, 5 Apr 2026 17:32:50 +0200 Subject: [PATCH] Cap transformers below 5.0 to avoid torchcodec ASR crash transformers 5.x unconditionally imports torchcodec in its ASR pipeline preprocess step, which crashes in environments without FFmpeg shared libs. 4.x does not have this dependency. Co-Authored-By: Claude Sonnet 4.6 --- install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.py b/install.py index de6bdb1..5d22e65 100644 --- a/install.py +++ b/install.py @@ -20,7 +20,7 @@ pip("omnivoice", "--no-deps") # Install omnivoice's runtime inference dependencies (excludes torch, torchaudio, # gradio, tensorboardX, webdataset which are training/demo-only tools). pip( - "transformers>=5.0.0", + "transformers>=4.40.0,<5.0.0", "accelerate", "pydub", "soundfile",