CoolFace
Modelpublic

avemio/German-RAG-WHISPER-LARGE-v3-TURBO-HESSIAN-AI

sourceHugging Facemitupdated 2y agoView on Hugging Face
1likes13downloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

German-RAG-WHISPER-LARGE-v3-TURBO-HESSIAN-AI

This model is fine-tuned on a carefully curated 13 hour dataset.

Evaluations - Word error rate

Test-Datasetopenai-whisper-large-v3-turbo**German-RAG-WHISPER-LARGE-v3-TURBO**primeline-whisper-large-v3-turbo-german
Tuda-De8.1956.3606.441
commonvoice19_03.8393.2493.217
multilingual librispeech3.2022.0712.067
All3.6412.6332.630

The data and code for evaluations are available here

Training data

The training data for this model includes conversations of spoken German with a mix of english business phrases included. The data was carefully selected and processed to optimize recognition performance. The dataset will not be published because of unclear situation if the data would be used for voice-cloning. The rights to use the collected data are only for the intended use to train speech-to-text models.

How to use

python
import torch
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
from datasets import load_dataset
device = "cuda:0" if torch.cuda.is_available() else "cpu"
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
model_id = "avemio/German-RAG-WHISPER-LARGE-v3-TURBO"
model = AutoModelForSpeechSeq2Seq.from_pretrained(
    model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=True, use_safetensors=True
)
model.to(device)
processor = AutoProcessor.from_pretrained(model_id)
pipe = pipeline(
    "automatic-speech-recognition",
    model=model,
    tokenizer=processor.tokenizer,
    feature_extractor=processor.feature_extractor,
    max_new_tokens=128,
    chunk_length_s=30,
    batch_size=16,
    return_timestamps=True,
    torch_dtype=torch_dtype,
    device=device,
)
dataset = load_dataset("distil-whisper/librispeech_long", "clean", split="validation")
sample = dataset[0]["audio"]
result = pipe(sample)
print(result["text"])

Framework versions

  • —Transformers 4.47.1
  • —Pytorch 2.5.1+cu121
  • —Datasets 3.2.0
  • —Tokenizers 0.21.0

The German-RAG AI Team

Marcel Rosiak Soumya Paul Siavash Mollaebrahim Zain ul Haq