wav2vec2-large-xlsr-53-basque

The stefan‑it/wav2vec2-large-xlsr-53-basque model is a fine‑tuned version of Facebook’s wav2vec2‑large‑xlsr‑53

stefan-it 262K downloads apache-2.0 Speech Recognition
Frameworkstransformerspytorchsafetensors
Datasetscommon_voice
Tagswav2vec2automatic-speech-recognitionaudiospeechxlsr-fine-tuning-weekeumodel-index
Downloads
262K
License
apache-2.0
Pipeline
Speech Recognition
Author
stefan-it

Run wav2vec2-large-xlsr-53-basque locally on a Q4KM hard drive

Accelerate deployment with Q4KM hard drives pre‑loaded with the stefan-it/wav2vec2-large-xlsr-53-basque model. Get instant, plug‑and‑play performance on any compatible system – no download, no setup...

Shop Q4KM Drives

Technical Overview

The stefan‑it/wav2vec2-large-xlsr-53-basque model is a fine‑tuned version of Facebook’s wav2vec2‑large‑xlsr‑53 pre‑trained on 53 languages. It has been adapted specifically for the Basque language (eu) using the Common Voice dataset. The model operates as an automatic speech recognition (ASR) system that directly maps raw audio waveforms to Basque text via a Connectionist Temporal Classification (CTC) head.

Key features and capabilities

  • Supports raw 16 kHz mono audio – no external feature extraction required.
  • End‑to‑end CTC decoding; can be combined with an external language model for higher accuracy.
  • Built on the Wav2Vec2ForCTC class from the 🤗 Transformers library, enabling seamless integration with PyTorch pipelines.
  • Fine‑tuned on a sizable Basque corpus (≈ 200 h of speech) yielding a test Word Error Rate (WER) of 18.27 %.
  • Comes with a Wav2Vec2Processor that handles tokenisation, padding, and feature normalisation.

Architecture highlights

  • Base encoder: 24‑layer Transformer with 1.2 B parameters, trained on 53 languages (XLSR).
  • Feature extractor: 7‑layer convolutional front‑end that converts raw audio into 512‑dimensional latent vectors.
  • CTC head: Linear projection from the encoder output to the Basque vocabulary (≈ 32 k tokens including special symbols).
  • Self‑supervised pre‑training: Learns speech representations from unlabeled audio, which dramatically reduces the amount of labelled data needed for fine‑tuning.

Intended use cases

  • Real‑time transcription of Basque speech in mobile apps, call‑center analytics, or accessibility tools.
  • Batch processing of audio archives (podcasts, radio broadcasts) for searchable text archives.
  • Research on low‑resource language ASR, especially for Basque dialects.
  • Integration into multimodal pipelines (e.g., speech‑to‑text → translation → TTS).

Benchmark Performance

For Basque ASR, the most relevant benchmark is the Common Voice test split. The model’s reported Word Error Rate (WER) is 18.272625 %, computed after lower‑casing and stripping punctuation.

Why this metric matters:

  • WER directly reflects transcription accuracy; lower values mean fewer word‑level mistakes.
  • Common Voice is a crowdsourced, diverse dataset covering many speakers, accents, and recording conditions, making it a realistic indicator of real‑world performance.

Compared to the original wav2vec2‑large‑xlsr‑53 model (which typically yields WER ≈ 30 % on unseen low‑resource languages), the Basque fine‑tune achieves a **~12 % absolute improvement**, demonstrating the value of language‑specific adaptation.

Hardware Requirements

Running inference with this 1.2 B‑parameter model is memory‑intensive but feasible on modern consumer GPUs.

  • VRAM for inference: ~ 6 GB (FP16) or ~ 9 GB (FP32). A 8 GB GPU (e.g., RTX 3060) is sufficient for batch sizes of 1‑2 seconds of audio.
  • Recommended GPU: NVIDIA RTX 3070/3080, AMD RX 6700 XT, or any GPU with ≥ 8 GB VRAM and CUDA ≥ 11.1 for optimal PyTorch performance.
  • CPU: A recent multi‑core CPU (e.g., Intel i7‑10700K or AMD Ryzen 7 3700X) can handle preprocessing (resampling, loading) without bottlenecks.
  • Storage: The model checkpoint (including safetensors) occupies ~ 2 GB. Allocate at least 5 GB to accommodate the model, tokenizer, and temporary cache files.
  • Performance: On a RTX 3060, real‑time transcription of 16 kHz audio (≈ 1 second per inference) is achieved with a latency of ~ 30 ms per second of audio.

Use Cases

The Basque‑specific ASR model opens up a range of practical applications:

  • Accessibility tools: Real‑time captioning for live events, webinars, or TV broadcasts in the Basque language.
  • Customer support: Automatic transcription of call‑center recordings for quality monitoring and analytics.
  • Media archiving: Converting Basque radio and podcast archives into searchable text for journalists and researchers.
  • Education: Language‑learning apps that provide instant feedback on pronunciation and fluency.
  • Smart assistants: Voice‑activated devices (e.g., smart speakers) that understand Basque commands.

Training Details

The fine‑tuning process leveraged the Common Voice Basque split:

  • Training data: All publicly available Basque recordings from Common Voice (≈ 200 h).
  • Validation data: The official Common Voice validation split, used for early stopping and hyper‑parameter selection.
  • Compute: Training was performed on an OVH‑provided NVIDIA V‑100 GPU (16 GB VRAM). The exact number of epochs is not disclosed, but typical XLSR fine‑tunes converge within 10‑15 k steps.
  • Fine‑tuning script: The author mentions a script that will be released “very soon”. The workflow follows the standard 🤗 Transformers Trainer API with CTC loss and a learning‑rate schedule starting at 3e‑5.
  • Post‑processing: During evaluation, punctuation is stripped using the regex [\\,\\?\\.!\\-\\;\\:\\\"\\“\\%\\‘\\”\\] and text is lower‑cased to match the model’s tokeniser expectations.

Licensing Information

The README lists the Apache‑2.0 license under the license field, while the overall card shows the license as “unknown”. In practice, the underlying wav2vec2‑large‑xlsr‑53 model and the Common Voice dataset are both Apache‑2.0 licensed, which grants:

  • Freedom to use, modify, and distribute the model for both commercial and non‑commercial purposes.
  • Obligation to retain the original copyright notice and provide a copy of the license in any redistribution.
  • No warranty; the model is provided “as‑is”.

If you plan to embed the model in a commercial product, ensure you include the Apache‑2.0 attribution in your documentation or about page. Because the license is permissive, you may combine the model with proprietary code, but you must not remove the original copyright statements.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives