projecte-aina / whisper-large-v3-ca-3catparla

huggingface.co
Total runs: 494
24-hour runs: -31
7-day runs: -127
30-day runs: 252
Model's Last Updated: 2025年5月2日
automatic-speech-recognition

Introduction of whisper-large-v3-ca-3catparla

Model Details of whisper-large-v3-ca-3catparla

whisper-large-v3-ca-3catparla

Table of Contents
Click to expand
Summary

The "whisper-large-v3-ca-3catparla" is an acoustic model based on "openai/whisper-large-v3" suitable for Automatic Speech Recognition in Catalan.

Model Description

The "whisper-large-v3-ca-3catparla" is an acoustic model suitable for Automatic Speech Recognition in Catalan. It is the result of finetuning the model "openai/whisper-large-v3" with 710 hours of Catalan data released by the Projecte AINA from Barcelona, Spain.

Intended Uses and Limitations

This model can used for Automatic Speech Recognition (ASR) in Catalan. The model is intended to transcribe audio files in Catalan to plain text without punctuation.

How to Get Started with the Model
Installation

In order to use this model, you may install datasets and transformers :

Create a virtual environment:

python -m venv /path/to/venv

Activate the environment:

source /path/to/venv/bin/activate

Install the modules:

pip install datasets transformers 
For Inference

In order to transcribe audio in Catalan using this model, you can follow this example:

import torch
from transformers import WhisperForConditionalGeneration, WhisperProcessor

#Load the processor and model.
MODEL_NAME="projecte-aina/whisper-large-v3-ca-3catparla"
processor = WhisperProcessor.from_pretrained(MODEL_NAME)
model = WhisperForConditionalGeneration.from_pretrained(MODEL_NAME).to("cuda")

#Load the dataset
from datasets import load_dataset, load_metric, Audio
ds=load_dataset("projecte-aina/3catparla_asr",split='test')

#Downsample to 16kHz
ds = ds.cast_column("audio", Audio(sampling_rate=16_000))

#Process the dataset
def map_to_pred(batch):
    audio = batch["audio"]
    input_features = processor(audio["array"], sampling_rate=audio["sampling_rate"], return_tensors="pt").input_features
    batch["reference"] = processor.tokenizer._normalize(batch['normalized_text'])

    with torch.no_grad():
        predicted_ids = model.generate(input_features.to("cuda"))[0]
    
    transcription = processor.decode(predicted_ids)
    batch["prediction"] = processor.tokenizer._normalize(transcription)
    
    return batch
    
#Do the evaluation
result = ds.map(map_to_pred)

#Compute the overall WER now.
from evaluate import load

wer = load("wer")
WER=100 * wer.compute(references=result["reference"], predictions=result["prediction"])
print(WER)

Test Result : 0.96

Training Details
Training data

The specific dataset used to create the model is called "3CatParla" .

Training procedure

This model is the result of finetuning the model "openai/whisper-large-v3" by following this tutorial provided by Hugging Face.

Training Hyperparameters
  • language: catalan
  • hours of training audio: 710
  • learning rate: 1.95e-07
  • sample rate: 16000
  • train batch size: 32 (x4 GPUs)
    • gradient accumulation steps: 1
  • eval batch size: 32
  • save total limit: 3
  • max steps: 19842
  • warmup steps: 1984
  • eval steps: 3307
  • save steps: 3307
  • shuffle buffer size: 480
Citation

If this model contributes to your research, please cite the work:

@misc{mena2024whisperlarge3catparla,
      title={Acoustic Model in Catalan: whisper-large-v3-ca-3catparla.}, 
      author={Hernandez Mena, Carlos Daniel; Armentano-Oller, Carme; Solito, Sarah; Külebi, Baybars},
      organization={Barcelona Supercomputing Center},
      url={https://huggingface.co/projecte-aina/whisper-large-v3-ca-3catparla},
      year={2024}
}
Additional Information
Author

The fine-tuning process was perform during July (2024) in the Language Technologies Unit of the Barcelona Supercomputing Center by Carlos Daniel Hernández Mena .

Contact

For further information, please send an email to [email protected] .

Copyright

Copyright(c) 2024 by Language Technologies Unit, Barcelona Supercomputing Center.

License

Apache-2.0

Funding

This work has been promoted and financed by the Generalitat de Catalunya through the Aina project .

The training of the model was possible thanks to the compute time provided by Barcelona Supercomputing Center through MareNostrum 5.

Runs of projecte-aina whisper-large-v3-ca-3catparla on huggingface.co

494
Total runs
-31
24-hour runs
-96
3-day runs
-127
7-day runs
252
30-day runs

More Information About whisper-large-v3-ca-3catparla huggingface.co Model

More whisper-large-v3-ca-3catparla license Visit here:

https://choosealicense.com/licenses/apache-2.0

whisper-large-v3-ca-3catparla huggingface.co

whisper-large-v3-ca-3catparla huggingface.co is an AI model on huggingface.co that provides whisper-large-v3-ca-3catparla's model effect (), which can be used instantly with this projecte-aina whisper-large-v3-ca-3catparla model. huggingface.co supports a free trial of the whisper-large-v3-ca-3catparla model, and also provides paid use of the whisper-large-v3-ca-3catparla. Support call whisper-large-v3-ca-3catparla model through api, including Node.js, Python, http.

whisper-large-v3-ca-3catparla huggingface.co Url

https://huggingface.co/projecte-aina/whisper-large-v3-ca-3catparla

projecte-aina whisper-large-v3-ca-3catparla online free

whisper-large-v3-ca-3catparla huggingface.co is an online trial and call api platform, which integrates whisper-large-v3-ca-3catparla's modeling effects, including api services, and provides a free online trial of whisper-large-v3-ca-3catparla, you can try whisper-large-v3-ca-3catparla online for free by clicking the link below.

projecte-aina whisper-large-v3-ca-3catparla online free url in huggingface.co:

https://huggingface.co/projecte-aina/whisper-large-v3-ca-3catparla

whisper-large-v3-ca-3catparla install

whisper-large-v3-ca-3catparla is an open source model from GitHub that offers a free installation service, and any user can find whisper-large-v3-ca-3catparla on GitHub to install. At the same time, huggingface.co provides the effect of whisper-large-v3-ca-3catparla install, users can directly use whisper-large-v3-ca-3catparla installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

whisper-large-v3-ca-3catparla install url in huggingface.co:

https://huggingface.co/projecte-aina/whisper-large-v3-ca-3catparla

Url of whisper-large-v3-ca-3catparla

whisper-large-v3-ca-3catparla huggingface.co Url

Provider of whisper-large-v3-ca-3catparla huggingface.co

projecte-aina
ORGANIZATIONS

Other API from projecte-aina