Run this model with HF Jobs

Run KlangAI/pianissimo-no on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/KlangAI/pianissimo-no. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/KlangAI/pianissimo-no on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
File size: 9,828 Bytes
a801b87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0a01e14
a801b87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0a01e14
a801b87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9706b5c
 
 
 
 
 
a801b87
 
 
 
 
 
 
 
 
 
 
 
0a01e14
a801b87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
---
language:
- no
- nb
- nn
license: cc-by-4.0
pipeline_tag: automatic-speech-recognition
library_name: nemo
base_model: nvidia/parakeet-tdt-0.6b-v3
base_model_relation: finetune
tags:
- speech
- audio
- fastconformer
- tdt
- norwegian
- bokmål
- nynorsk
metrics:
- wer
---

# Klang Pianissimo for Norwegian

**Pianissimo-no is our open speech recognition model for Norwegian, in Bokmål and Nynorsk.** Across fifteen Norwegian evaluation sets, it achieved **13.8% mean word error rate** (10.4% on the nine Bokmål sets, 18.8% on the six Nynorsk sets), the best result among the open and closed models we tested.

Built on [NVIDIA Parakeet v3](https://huggingface.co/nvidia/parakeet-tdt-0.6b-v3), Pianissimo has 600 million parameters and runs at **over 3,600× realtime on one NVIDIA H100, or 500× on one L4**. It supports punctuation, capitalization and word-level timestamps. We release it under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), with versions for servers, laptops and phones so you can run it on your own hardware and keep control of your recordings.

[**Try Pianissimo**](https://klang.ai/pianissimo-no/#try-pianissimo) or read [how we trained it](https://research.klang.ai/papers/klang-pianissimo-no/). We also release Pianissimo for [Swedish](https://huggingface.co/KlangAI/pianissimo-sv) and [Danish](https://huggingface.co/KlangAI/pianissimo-da).

## Usage

Install PyTorch, `nemo_toolkit[asr]` and `soundfile`.

Norwegian has two written standards (Bokmål and Nynorsk), both supported by the same model. You choose the output language with `target_lang` (`"nb"` or `"nn"`).

Load the model and transcribe a 16 kHz mono audio file in Bokmål:

```python
import soundfile as sf
import torch
from nemo.collections.asr.models import ASRModel

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model = ASRModel.from_pretrained(
    model_name="KlangAI/pianissimo-no",
    map_location=device,
).eval()

audio, sample_rate = sf.read("audio.wav", dtype="float32")  # 16 kHz mono

with torch.inference_mode():
    hypotheses = model.transcribe(
        audio=[audio],
        batch_size=1,
        return_hypotheses=True,
        target_lang="nb",  # "nn" for Nynorsk
    )

print(hypotheses[0].text)
```

Pass the audio as arrays: NeMo gives an error for file paths together with `target_lang`. For multiple recordings, pass a list of arrays and increase `batch_size` to suit your GPU.

### Timestamps

Add `timestamps=True` to obtain word and segment timestamps:

```python
with torch.inference_mode():
    hypotheses = model.transcribe(
        audio=[audio],
        batch_size=1,
        return_hypotheses=True,
        target_lang="nb",
        timestamps=True,
    )

for word in hypotheses[0].timestamp["word"]:
    print(word["start"], word["end"], word["word"])
```

### Vocabulary

NeMo's built-in phrase boosting supports custom vocabulary: list names and terms to help the model spell them correctly. The [ONNX](https://huggingface.co/KlangAI/pianissimo-no-onnx#vocabulary) and [MLX](https://huggingface.co/KlangAI/pianissimo-no-mlx-8bit#vocabulary) versions support it with our own implementation. The words and phrases are case sensitive.

```python
import copy
from omegaconf import open_dict

decoding = copy.deepcopy(model.cfg.decoding)
with open_dict(decoding):
    decoding.strategy = "greedy_batch"
    decoding.greedy.boosting_tree = {
        "key_phrases_list": [
            "Klang AI", "Pianissimo", "Stortinget", "Universitetet i Bergen",
        ],
        "context_score": 1.0,
        "depth_scaling": 2.0,
        "use_triton": False,
    }
    decoding.greedy.boosting_tree_alpha = 1.0
model.change_decoding_strategy(decoding)
```

### Quantized versions

Run Pianissimo on a CPU with ONNX or GGUF, on an Apple silicon GPU with MLX, or on the Apple Neural Engine with [CoreML](https://huggingface.co/KlangAI/pianissimo-no-coreml). The table compares word error rates on 200 Bokmål and 200 Nynorsk clips from the fifteen test sets below; lower is better.

| Version | Runs on | Download | WER, Bokmål (%) | WER, Nynorsk (%) |
|---|---|---:|---:|---:|
| Original fp32 (this model) | PyTorch and NeMo | 2.53 GB | 12.0 | 18.6 |
| [ONNX int8](https://huggingface.co/KlangAI/pianissimo-no-onnx) | CPU | 720 MB | 12.4 | 18.6 |
| [ONNX int4](https://huggingface.co/KlangAI/pianissimo-no-onnx) | CPU | 561 MB | 12.3 | 19.3 |
| [ONNX fp16](https://huggingface.co/KlangAI/pianissimo-no-onnx) | CPU | 1.50 GB | 12.0 | 18.5 |
| [ONNX fp32](https://huggingface.co/KlangAI/pianissimo-no-onnx) | CPU | 2.60 GB | 12.0 | 18.5 |
| [MLX 8-bit](https://huggingface.co/KlangAI/pianissimo-no-mlx-8bit) | Apple silicon GPU | 768 MB | 12.1 | 18.5 |
| [MLX 4-bit](https://huggingface.co/KlangAI/pianissimo-no-mlx-4bit) | Apple silicon GPU | 537 MB | 12.1 | 20.0 |
| [MLX bf16](https://huggingface.co/KlangAI/pianissimo-no-mlx) | Apple silicon GPU | 1.26 GB | 12.0 | 18.5 |
| [MLX fp32](https://huggingface.co/KlangAI/pianissimo-no-mlx-fp32) | Apple silicon GPU | 2.53 GB | 12.0 | 18.5 |
| [CoreML 8-bit](https://huggingface.co/KlangAI/pianissimo-no-coreml) | Apple Neural Engine | 649 MB | 11.8 | 19.7 |
| [CoreML fp16](https://huggingface.co/KlangAI/pianissimo-no-coreml) | Apple Neural Engine | 1.24 GB | 12.0 | 19.7 |
| [GGUF Q8_0](https://huggingface.co/KlangAI/pianissimo-no-gguf) | CPU or GPU with transcribe.cpp | 744 MB | 12.0 | 18.3 |
| [GGUF Q5_K_M](https://huggingface.co/KlangAI/pianissimo-no-gguf) | CPU or GPU with transcribe.cpp | 553 MB | 12.4 | 18.2 |
| [GGUF Q4_K_M](https://huggingface.co/KlangAI/pianissimo-no-gguf) | CPU or GPU with transcribe.cpp | 489 MB | 12.1 | 19.5 |
| [GGUF F16](https://huggingface.co/KlangAI/pianissimo-no-gguf) | CPU or GPU with transcribe.cpp | 1.26 GB | 12.1 | 18.5 |
| [GGUF F32](https://huggingface.co/KlangAI/pianissimo-no-gguf) | CPU or GPU with transcribe.cpp | 2.53 GB | 12.1 | 18.5 |

All versions are scored the same way as the results below.

The ONNX versions run on Windows, Linux and Mac, with Intel, AMD or ARM processors. They use a small loader file included in the ONNX repository:

```python
import sys
from huggingface_hub import snapshot_download  # pip install "onnx-asr[cpu,hub]" sentencepiece

path = snapshot_download("KlangAI/pianissimo-no-onnx", allow_patterns=["*.py", "tokenizer.model"])
sys.path.append(path)
import pianissimo_onnx

model = pianissimo_onnx.load("KlangAI/pianissimo-no-onnx", quantization="int8", language="nb")  # "nn" for Nynorsk
print(model.recognize("audio.wav"))
```

The MLX versions run on the GPU of Macs with Apple silicon. They use a small loader file included in each MLX repository; see the [MLX 8-bit model card](https://huggingface.co/KlangAI/pianissimo-no-mlx-8bit) for how to use it.

## Quality and speed

### Norwegian speech recognition

We tested Pianissimo on fifteen Norwegian test sets, nine in Bokmål and six in Nynorsk: conversations (NB Samtale), NRK broadcasts, Common Voice, read and spontaneous speech from NB Tale, government press conferences (NorGovPCC), audiobooks, NST and FLEURS. That is about 39 hours, over 13,000 segments. The table shows mean word error rates (%), with equal weight given to each test set. Lower is better.

| Model | Mean, 15 sets | Bokmål, 9 sets | Nynorsk, 6 sets |
|---|---:|---:|---:|
| **Pianissimo-no** | **13.8** | **10.4** | **18.8** |
| NB-Whisper large | 15.7 | 11.5 | 21.9 |
| OpenAI GPT Transcribe (closed) | 18.7 | 12.7 | 27.7 |
| Google Gemini 3.5 Transcribe (closed) | 20.6 | 14.0 | 30.5 |
| ElevenLabs Scribe v3 (closed) | 20.6 | 11.4 | 34.5 |
| Mistral Voxtral Small (closed) | 21.1 | 11.5 | 35.5 |
| Whisper large-v3 | 26.7 | 17.4 | 40.6 |
| Parakeet TDT 0.6B v3 | 75.4 | 72.9 | 79.2 |

All models received the same audio and were scored against the same references. The scoring allows for Norwegian spelling variants and numbers written as digits or words. See the [release article](https://research.klang.ai/papers/klang-pianissimo-no/) for the full comparison.

### Throughput

Pianissimo-no reaches **over 3,600× realtime on one NVIDIA H100, or 542× on one NVIDIA L4**—1 second to process over one hour of audio on the H100.

## Architecture

Pianissimo-no uses a **FastConformer encoder and Token-and-Duration Transducer (TDT) decoder**, retaining Parakeet v3's architecture and tokenizer, with a small language prompt added after the encoder to select Bokmål or Nynorsk.

| Property | Value |
|---|---|
| Parameters | Approximately 600 million |
| Audio input | 16 kHz, mono |
| Features | 128-band log-mel spectrogram |
| Encoder | 24 layers, 8× subsampling |
| Language prompt | Bokmål or Nynorsk, two linear layers after the encoder |
| Default attention | Local, 256 encoder frames on each side per layer |
| Checkpoint size | 2.53 GB |

Unlike the original Parakeet checkpoint's full attention, Pianissimo-no defaults to local attention with approximately 20.5 seconds of context in each direction per layer. This keeps attention computation linear in recording length and makes long recordings practical.

## Training

We fine-tuned Pianissimo-no on Norwegian speech in Bokmål and Nynorsk: parliamentary and public-sector recordings, broadcast speech, read speech and conversations, from public datasets and our own collection of publicly available speech.

We acknowledge the EuroHPC Joint Undertaking for awarding us access to the EuroHPC supercomputer LEONARDO, hosted by CINECA (Italy), where the final training phases ran.

## License and citation

Pianissimo-no is released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).

```bibtex
@misc{klang2026pianissimono,
  title = {Klang Pianissimo for Norwegian},
  author = {{Klang}},
  year = {2026},
  howpublished = {Hugging Face model repository},
  url = {https://huggingface.co/KlangAI/pianissimo-no}
}
```