davanstrien HF Staff commited on
Commit
6964d4d
·
verified ·
1 Parent(s): c07e222

Update README: add easytranscriber row + benchmark

Browse files
Files changed (1) hide show
  1. README.md +35 -7
README.md CHANGED
@@ -34,16 +34,19 @@ No download/upload step. Buckets are mounted directly as volumes via [hf-mount](
34
 
35
  ### Transcription
36
 
37
- | Script | Model | Backend | Speed (A100) |
38
- |--------|-------|---------|--------------|
39
- | `cohere-transcribe.py` | Cohere Transcribe (2B) | transformers | 161x RT |
40
- | `cohere-transcribe-vllm.py` | Cohere Transcribe (2B) | vLLM nightly | 214x RT |
 
41
 
42
- **`cohere-transcribe.py`** (recommended) — uses `model.transcribe()` with automatic long-form chunking, overlap, and reassembly. Stable dependencies.
43
 
44
  **`cohere-transcribe-vllm.py`** — experimental vLLM variant. Faster but requires nightly vLLM and has minor duplication at chunk boundaries.
45
 
46
- #### Options
 
 
47
 
48
  | Flag | Default | Description |
49
  |------|---------|-------------|
@@ -52,15 +55,39 @@ No download/upload step. Buckets are mounted directly as volumes via [hf-mount](
52
  | `--batch-size` | 16 | Batch size for inference |
53
  | `--max-files` | all | Limit files to process (for testing) |
54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  #### Benchmarks
56
 
57
- CBS Suspense (1940s radio drama), 66 episodes, 33 hours of audio:
 
 
58
 
59
  | GPU | Time | RTFx |
60
  |-----|------|------|
61
  | A100-SXM4-80GB | 12.3 min | 161x realtime |
62
  | L4 | ~64s / 30 min episode | 28x realtime |
63
 
 
 
 
 
 
 
64
  ### Data
65
 
66
  | Script | Description |
@@ -71,3 +98,4 @@ CBS Suspense (1940s radio drama), 66 episodes, 33 hours of audio:
71
 
72
  - **Gated model**: Accept terms at the [model page](https://huggingface.co/CohereLabs/cohere-transcribe-03-2026) before use.
73
  - **Tokenizer workaround**: `cohere-transcribe.py` applies a one-line patch for a tokenizer compat issue. Will be removed once upstream fixes land ([model discussion](https://huggingface.co/CohereLabs/cohere-transcribe-03-2026/discussions/11)).
 
 
34
 
35
  ### Transcription
36
 
37
+ | Script | Model | Backend | Output | Speed |
38
+ |--------|-------|---------|--------|-------|
39
+ | `cohere-transcribe.py` | Cohere Transcribe (2B) | transformers | `.txt` | 161x RT (A100) |
40
+ | `cohere-transcribe-vllm.py` | Cohere Transcribe (2B) | vLLM nightly | `.txt` | 214x RT (A100) |
41
+ | `easytranscriber-transcribe.py` | Cohere Transcribe 2B (default) or Whisper variants | [easytranscriber](https://github.com/kb-labb/easytranscriber) | JSON word timestamps (+ optional `.txt` / `.srt`) | 42.9x RT (L4) |
42
 
43
+ **`cohere-transcribe.py`** (recommended for plain text) — uses `model.transcribe()` with automatic long-form chunking, overlap, and reassembly. Stable dependencies.
44
 
45
  **`cohere-transcribe-vllm.py`** — experimental vLLM variant. Faster but requires nightly vLLM and has minor duplication at chunk boundaries.
46
 
47
+ **`easytranscriber-transcribe.py`** — when you need **word-level timestamps** (subtitles, search indexing, forced alignment). Runs VAD → ASR → wav2vec2 emissions → forced alignment. Defaults to the Cohere backend so you get the same model as the other scripts with alignment on top; swap to `--backend ct2` + a Whisper model for languages Cohere doesn't cover (e.g. Swedish via `KBLab/kb-whisper-large`).
48
+
49
+ #### Options — `cohere-transcribe.py` / `cohere-transcribe-vllm.py`
50
 
51
  | Flag | Default | Description |
52
  |------|---------|-------------|
 
55
  | `--batch-size` | 16 | Batch size for inference |
56
  | `--max-files` | all | Limit files to process (for testing) |
57
 
58
+ #### Options — `easytranscriber-transcribe.py`
59
+
60
+ | Flag | Default | Description |
61
+ |------|---------|-------------|
62
+ | `--language` | required | ISO 639-1 code. Cohere supports the same 14 languages as above; ct2/hf support any Whisper language |
63
+ | `--backend` | `cohere` | `cohere`, `ct2` (CTranslate2 Whisper, fastest for Whisper), or `hf` (transformers) |
64
+ | `--transcription-model` | Cohere 2B / distil-whisper-large-v3.5 | HF model ID; override to use KB-Whisper, Whisper-large-v3, etc. |
65
+ | `--emissions-model` | per-language default | wav2vec2 for forced alignment: en→`wav2vec2-base-960h`, sv→`voxrex-swedish`, else→`facebook/mms-1b-all` |
66
+ | `--vad` | `silero` | `silero` (no auth) or `pyannote` (requires accepting terms + HF_TOKEN) |
67
+ | `--tokenizer-lang` | derived from `--language` | NLTK Punkt language name for sentence tokenization |
68
+ | `--emit-txt` | off | Also write `.txt` transcripts alongside the JSON alignments |
69
+ | `--emit-srt` | off | Also write `.srt` subtitles derived from alignment segments |
70
+ | `--batch-size-features` | 8 | Feature-extraction batch size |
71
+ | `--batch-size-transcribe` | 16 | ASR batch size (where backend supports it) |
72
+ | `--max-files` | all | Limit files to process (for testing) |
73
+
74
  #### Benchmarks
75
 
76
+ CBS Suspense (1940s radio drama), 66 episodes, 33 hours of audio.
77
+
78
+ **`cohere-transcribe.py`** (plain text):
79
 
80
  | GPU | Time | RTFx |
81
  |-----|------|------|
82
  | A100-SXM4-80GB | 12.3 min | 161x realtime |
83
  | L4 | ~64s / 30 min episode | 28x realtime |
84
 
85
+ **`easytranscriber-transcribe.py`** (JSON alignments + optional .txt/.srt; VAD → ASR → wav2vec2 → forced alignment):
86
+
87
+ | GPU | Time | RTFx | Output |
88
+ |-----|------|------|--------|
89
+ | L4 | 46.2 min | 42.9x realtime | 66 JSON + SRT + TXT (42,633 segments, 295k words) |
90
+
91
  ### Data
92
 
93
  | Script | Description |
 
98
 
99
  - **Gated model**: Accept terms at the [model page](https://huggingface.co/CohereLabs/cohere-transcribe-03-2026) before use.
100
  - **Tokenizer workaround**: `cohere-transcribe.py` applies a one-line patch for a tokenizer compat issue. Will be removed once upstream fixes land ([model discussion](https://huggingface.co/CohereLabs/cohere-transcribe-03-2026/discussions/11)).
101
+ - **easytranscriber**: the Cohere backend requires `transformers>=5.4.0` (pinned in the script). Pyannote VAD is gated — accept terms at [pyannote/segmentation-3.0](https://huggingface.co/pyannote/segmentation-3.0) and [pyannote/speaker-diarization-3.1](https://huggingface.co/pyannote/speaker-diarization-3.1) if using `--vad pyannote`. Otherwise stick with the default Silero VAD.