Instructions to use BuzzASR/korean with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BuzzASR/korean with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="BuzzASR/korean")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("BuzzASR/korean") model = AutoModelForSpeechSeq2Seq.from_pretrained("BuzzASR/korean", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -31,6 +31,24 @@ This model uses **simple fine-tuning (Whisper's tokenizer, ASR fine-tuning only)
|
|
| 31 |
|
| 32 |
~1.2x CER reduction over Whisper zero-shot on the combined test set.
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
## Usage
|
| 35 |
|
| 36 |
```python
|
|
@@ -42,7 +60,7 @@ proc = WhisperProcessor.from_pretrained("BuzzASR/korean")
|
|
| 42 |
|
| 43 |
wav, sr = torchaudio.load("audio.wav") # 16 kHz mono
|
| 44 |
feats = proc(wav[0], sampling_rate=16000, return_tensors="pt").input_features.to("cuda").half()
|
| 45 |
-
ids = model.generate(feats, num_beams=
|
| 46 |
print(proc.batch_decode(ids, skip_special_tokens=True)[0])
|
| 47 |
```
|
| 48 |
The language/task prompt is baked into the generation config, so no `language=` argument is needed.
|
|
@@ -62,11 +80,10 @@ Monolingual (Korean only). Evaluated on FLEURS / Common Voice test splits; other
|
|
| 62 |
@misc{buzzasr2026,
|
| 63 |
title = {BuzzASR: A Swarm of 100+ Monolingual Speech Recognition Models},
|
| 64 |
author = {Shivam Singh and Aditya Yadavalli and Catherine Arnett and Alex Warstadt},
|
| 65 |
-
year =
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
```
|
|
|
|
| 31 |
|
| 32 |
~1.2x CER reduction over Whisper zero-shot on the combined test set.
|
| 33 |
|
| 34 |
+
### How the scores above were computed
|
| 35 |
+
|
| 36 |
+
CER/WER are computed with jiwer 3.0.4 after applying the same normalization to references and
|
| 37 |
+
hypotheses: lowercase, remove all characters except letters, combining marks, numbers,
|
| 38 |
+
whitespace, apostrophes and hyphens, then collapse whitespace. This removes parentheses but
|
| 39 |
+
keeps the words inside them, so FLEURS scores include parenthesised words that are not spoken
|
| 40 |
+
in the audio. Spacing differences are also counted as errors.
|
| 41 |
+
|
| 42 |
+
### Recommended decoding settings
|
| 43 |
+
|
| 44 |
+
An independent evaluation by [Kwan-u Choi](https://huggingface.co/Gonow1) with [kocer](https://github.com/Choi-kwan-u/kocer) (v0.5.0), a Korean-specific
|
| 45 |
+
CER that accounts for notation and spacing differences, found that beam search (`num_beams=5`)
|
| 46 |
+
gives the lowest CER on all six Korean test sets evaluated, while the settings this card
|
| 47 |
+
previously recommended (`num_beams=1, no_repeat_ngram_size=3, repetition_penalty=1.2`) gave
|
| 48 |
+
the highest. We now recommend `num_beams=5`. Full results are in the
|
| 49 |
+
[kocer repository](KOCER_REPO_URL); scores are from kocer 0.5.0 and may differ in other versions.
|
| 50 |
+
Thanks to Kwan-u for the evaluation:)
|
| 51 |
+
|
| 52 |
## Usage
|
| 53 |
|
| 54 |
```python
|
|
|
|
| 60 |
|
| 61 |
wav, sr = torchaudio.load("audio.wav") # 16 kHz mono
|
| 62 |
feats = proc(wav[0], sampling_rate=16000, return_tensors="pt").input_features.to("cuda").half()
|
| 63 |
+
ids = model.generate(feats, num_beams=5) # recommended; see "Recommended decoding settings"
|
| 64 |
print(proc.batch_decode(ids, skip_special_tokens=True)[0])
|
| 65 |
```
|
| 66 |
The language/task prompt is baked into the generation config, so no `language=` argument is needed.
|
|
|
|
| 80 |
@misc{buzzasr2026,
|
| 81 |
title = {BuzzASR: A Swarm of 100+ Monolingual Speech Recognition Models},
|
| 82 |
author = {Shivam Singh and Aditya Yadavalli and Catherine Arnett and Alex Warstadt},
|
| 83 |
+
year =
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
|
|
|