Two speech-to-text models for English Torah shiurim: Yeshivish English mixed
with Hebrew, Aramaic and Yiddish terms (gemara, halacha, parsha, mussar).
Both are fine-tunes of
torahanytimecom/whisper-large-v3-yeshivish
(Whisper large-v3, Apache-2.0), trained on about 193 hours of English shiurim
from 77 speakers (men and women; Daf Yomi, parsha, halacha, mussar and other
topics).
| Model | Use it for | Output |
|---|---|---|
whisper-torah-eng |
Plain transcripts | Punctuated text |
whisper-torah-eng-cc |
Captions and subtitles, like YouTube's automatic captions | Short timed segments (Whisper timestamp tokens) that fit on screen |
whisper-torah-eng-cc is whisper-torah-eng continued on caption-sized
segments with timestamps. It is the better choice when you need timed text; for
plain transcripts use whisper-torah-eng.
whisper-torah-eng/
ct2-int8/ ready to run with faster-whisper / CTranslate2 (int8, 1.5 GB)
adapter/ the LoRA adapter (230 MB) for use with PEFT on the base model
whisper-torah-eng-cc/
ct2-int8/
adapter/
whisper-torah-eng-cc also produces segment timestamps sized for subtitles.
Combined with forced alignment of the words (see below) it gives caption
timing that follows the speech closely.Word error rate (WER, lower is better) on 16 kHz shiur audio, after standard text normalization (case and punctuation ignored).
whisper-torah-eng, plain transcription, speakers not in the training data:
| Model | WER |
|---|---|
Base model (whisper-large-v3-yeshivish) |
24.8% |
| whisper-torah-eng | 14.1% |
On held-out lectures from a speaker that was in training, it scores 18.5%.
whisper-torah-eng-cc, decoding with timestamps (550 held-out clips):
| whisper-torah-eng | whisper-torah-eng-cc | |
|---|---|---|
| WER | 21.4% | 18.9% |
| Caption word boundaries within 100 ms, after forced alignment | 97.8% | 98.7% |
| Mean boundary error, after forced alignment | 33 ms | 15 ms |
Notes on these numbers:
| Setup | Requirement |
|---|---|
GPU, ct2-int8 with faster-whisper (recommended) |
NVIDIA GPU with 6 GB+ of memory (8 GB+ for comfortable headroom), CUDA 12 and cuDNN 9 |
CPU, ct2-int8 |
Works, but much slower than real time on a few cores; 8 GB RAM |
GPU, adapter with PyTorch/PEFT in fp16 |
NVIDIA GPU with 10 GB+ of memory (base model plus adapter, about 3.2 GB of weights) |
| Disk | 1.6 GB per ct2-int8 model; 230 MB per adapter, plus the base model (about 3 GB) if you use the adapters |
Audio is resampled to 16 kHz mono internally. Long shiurim are processed in 30-second windows; use voice-activity filtering to skip silence.
Download (the repository is private; use a token with read access):
from huggingface_hub import snapshot_download
path = snapshot_download("shimonkolodny/whisper-torah", token="hf_...",
allow_patterns=["whisper-torah-eng/ct2-int8/*"])
Plain transcript with whisper-torah-eng:
from faster_whisper import WhisperModel
model = WhisperModel(f"{path}/whisper-torah-eng/ct2-int8", device="cuda", compute_type="int8_float16")
segments, info = model.transcribe("shiur.mp3", language="en", beam_size=5,
vad_filter=True, condition_on_previous_text=False)
text = " ".join(s.text.strip() for s in segments)
Timed segments with whisper-torah-eng-cc (download its folder the same way):
model = WhisperModel(f"{path}/whisper-torah-eng-cc/ct2-int8", device="cuda", compute_type="int8_float16")
segments, info = model.transcribe("shiur.mp3", language="en", beam_size=5,
without_timestamps=False, word_timestamps=True,
vad_filter=True, condition_on_previous_text=False)
for s in segments:
print(f"{s.start:.2f} -> {s.end:.2f} {s.text.strip()}")
For caption-accurate timing, re-time the words of each transcript with a
forced aligner (for example torchaudio.pipelines.MMS_FA) instead of relying on
Whisper's own word times, which are typically about 0.1 to 0.25 s off. Then
break the words into subtitle cues of at most two lines of 42 characters, 1 to
7 seconds long, starting a new cue at a pause of half a second or more or at the
end of a sentence.
Using the adapters instead (PyTorch):
import torch
from peft import PeftModel
from transformers import WhisperForConditionalGeneration, WhisperProcessor
base = WhisperForConditionalGeneration.from_pretrained(
"torahanytimecom/whisper-large-v3-yeshivish", torch_dtype=torch.float16).to("cuda")
model = PeftModel.from_pretrained(base, "whisper-torah-eng/adapter").merge_and_unload()
processor = WhisperProcessor.from_pretrained("whisper-torah-eng/adapter")
vad_filter=True and condition_on_previous_text=False.whisper-torah-eng-cc/ct2-int8/model.bin 1.6 GBwhisper-torah-eng/ct2-int8/model.bin 1.6 GBwhisper-torah-eng-cc/adapter/adapter_model.safetensors 231 MBwhisper-torah-eng/adapter/adapter_model.safetensors 231 MBtorahanytimecom/whisper-large-v3-yeshivish