Views
No views yet
| Model | Parameters | link |
|---|---|---|
| Whisper large v3 german | 1.54B | link |
| Whisper large v3 turbo german | 809M | link |
| Distil-whisper large v3 german | 756M | link |
| tiny whisper | 37.8M | link |
| Dataset | openai-whisper-large-v3-turbo | openai-whisper-large-v3 | primeline-whisper-large-v3-german | nyrahealth-CrisperWhisper | primeline-whisper-large-v3-turbo-german |
|---|---|---|---|---|---|
| common_voice_19_0 | 6.31 | 5.84 | 4.30 | 4.14 | 4.28 |
| Tuda-De | 11.45 | 11.21 | 9.89 | 13.88 | 8.10 |
| multilingual librispeech | 18.03 | 17.69 | 13.46 | 10.10 | 4.71 |
| All | 14.16 | 13.79 | 10.51 | 8.48 | 4.75 |
1import torch
2from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
3from datasets import load_dataset
4device = "cuda:0" if torch.cuda.is_available() else "cpu"
5torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
6model_id = "primeline/whisper-large-v3-turbo-german"
7model = AutoModelForSpeechSeq2Seq.from_pretrained(
8 model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=True, use_safetensors=True
9)
10model.to(device)
11processor = AutoProcessor.from_pretrained(model_id)
12pipe = pipeline(
13 "automatic-speech-recognition",
14 model=model,
15 tokenizer=processor.tokenizer,
16 feature_extractor=processor.feature_extractor,
17 max_new_tokens=128,
18 chunk_length_s=30,
19 batch_size=16,
20 return_timestamps=True,
21 torch_dtype=torch_dtype,
22 device=device,
23)
24dataset = load_dataset("distil-whisper/librispeech_long", "clean", split="validation")
25sample = dataset[0]["audio"]
26result = pipe(sample)
27print(result["text"])primeline.apache-2.0. This repository redistributes under the same terms; it grants no rights the upstream licence does not.