wav2vec2-xls-r-300m-cs-250

The comodoro/wav2vec2-xls-r-300m-cs-250 model is a Czech‑language Automatic Speech Recognition (ASR) system built on top of Facebook’s wav2vec2‑xls‑r‑300m

comodoro 596K downloads apache-2.0 Speech Recognition
Frameworkstransformerspytorchsafetensors
Languagescs
Datasetsmozilla-foundation/common_voice_8_0ovmpscrvystadial2016
Tagswav2vec2automatic-speech-recognitiongenerated_from_trainerhf-asr-leaderboardmozilla-foundation/common_voice_8_0robust-speech-eventxlsr-fine-tuning-weekbase_model:facebook/wav2vec2-xls-r-300m
Downloads
596K
License
apache-2.0
Pipeline
Speech Recognition
Author
comodoro

Run wav2vec2-xls-r-300m-cs-250 locally on a Q4KM hard drive

Accelerate your Czech ASR deployments with Q4KM hard drives pre‑loaded with the comodoro/wav2vec2‑xls‑r‑300m‑cs‑250 model. Get instant, plug‑and‑play performance on your edge devices—no internet...

Shop Q4KM Drives

Technical Overview

The comodoro/wav2vec2-xls-r-300m-cs-250 model is a Czech‑language Automatic Speech Recognition (ASR) system built on top of Facebook’s wav2vec2‑xls‑r‑300m self‑supervised acoustic encoder. It has been fine‑tuned on roughly 250 hours of Czech speech drawn from the Mozilla Common Voice 8.0 release and three additional corpora (OVM, PSCR, Vystadial 2016). The model maps raw 16 kHz audio waveforms directly to token logits that are decoded with a CTC loss, enabling end‑to‑end transcription without a separate language model (though a language model can be applied for extra accuracy).

Key features & capabilities

  • Supports Czech (cs) speech input sampled at 16 kHz.
  • Fast inference with a 300 M‑parameter wav2vec2 backbone – suitable for real‑time or batch transcription.
  • Works out‑of‑the‑box with the Wav2Vec2Processor and Wav2Vec2ForCTC classes from 🤗 Transformers.
  • Compatible with Hugging Face discussions for community support.

Architecture highlights

  • Base encoder: wav2vec2‑xls‑r‑300m (300 M parameters, 12 transformer layers, 768‑dim hidden size).
  • CTC head: a linear projection from the encoder’s hidden dimension to the Czech sub‑word vocabulary (≈32 k tokens).
  • Fine‑tuning hyper‑parameters: learning rate 1e‑4, Adam optimizer, linear LR schedule with 800 warm‑up steps, 5 epochs, mixed‑precision (AMP) training.

Intended use cases

  • Live captioning of Czech broadcasts, webinars, or virtual meetings.
  • Transcription of archival Czech audio (parliamentary proceedings, podcasts, audiobooks).
  • Voice‑controlled applications for Czech‑speaking users (smart assistants, dictation tools).

Benchmark Performance

The model is evaluated on three Czech ASR benchmarks. On the Common Voice 8.0 test set it reaches a Word Error Rate (WER) of 7.3 % and a Character Error Rate (CER) of 2.1 %. In noisy, real‑world conditions the Robust Speech Event dev and test splits report WERs of 43.44 % and 38.5 % respectively, demonstrating the model’s resilience to acoustic variability. When combined with a language model (see the eval.py script), the WER drops to 7.27 % and CER to 2.12 %, underscoring the benefit of external language modeling for production‑grade accuracy.

These benchmarks matter because they cover both clean, crowd‑sourced speech (Common Voice) and challenging, domain‑specific audio (Robust Speech Event). Compared with other Czech wav2vec2 fine‑tunes, the 300 M‑parameter version offers a strong trade‑off between size and accuracy, outperforming many larger models on the same test sets while remaining lightweight enough for edge deployment.

Hardware Requirements

Inference with wav2vec2‑xls‑r‑300m‑cs‑250 requires roughly 2 GB of VRAM for a single utterance when using FP16 precision. For batch processing (e.g., 8‑sample batches) a GPU with at least 6 GB of VRAM is recommended to avoid out‑of‑memory errors. The model runs comfortably on consumer‑grade GPUs such as the NVIDIA RTX 3060, RTX 3070, or AMD Radeon 6700 XT. On CPU‑only systems, a modern 8‑core processor (e.g., Intel i7‑12700K or AMD Ryzen 7 5800X) can achieve real‑time transcription for short clips, though latency will be higher than on GPU.

Storage requirements are modest: the model checkpoint (including safetensors) occupies ≈ 1.2 GB. Adding the processor vocabularies and config files brings the total to under 1.5 GB. Disk I/O is negligible for typical batch sizes, but SSDs are recommended for faster dataset loading during fine‑tuning or large‑scale inference.

Use Cases

The model excels in any scenario that requires high‑quality Czech transcription. Typical applications include:

  • Media & broadcasting: Automatic captioning for TV news, podcasts, and online video platforms.
  • Legal & governmental: Transcribing parliamentary debates, court hearings, and public hearings.
  • Education: Generating subtitles for e‑learning videos and lecture recordings.
  • Customer service: Voice‑to‑text pipelines for Czech call‑center analytics.
  • Voice assistants: Enabling speech‑driven commands in smart‑home devices for Czech‑speaking users.

Integration is straightforward with the 🤗 Transformers library; the model can be loaded with a single line of code and combined with any downstream language model or post‑processing pipeline as needed.

Training Details

Fine‑tuning was performed on a mixture of Czech speech corpora:

  • Mozilla Common Voice 8.0 (≈ 200 h)
  • OVM – “Otázky Václava Moravce” (≈ 30 h)
  • PSCR – Czech Parliament meetings (≈ 15 h)
  • Vystadial 2016 – Czech broadcast data (≈ 5 h)

Training ran for 5 epochs with a batch size of 32 (train) and 8 (eval). The optimizer was Adam (β₁=0.9, β₂=0.999) with a linear learning‑rate schedule and 800 warm‑up steps. Mixed‑precision (Native AMP) reduced GPU memory consumption and accelerated training. The final model achieved a validation loss of 0.1271, WER 0.1475 and CER 0.0329 on the held‑out test set.

Because the model is released as a Hugging Face checkpoint, further fine‑tuning on domain‑specific Czech data (e.g., medical or legal speech) is straightforward: simply load the model with Wav2Vec2ForCTC.from_pretrained and continue training with a new dataset while keeping the same tokenizer.

Licensing Information

The model card lists the license as Apache‑2.0, which is a permissive open‑source license. This allows unrestricted use, modification, and distribution—including commercial deployments—provided that the original copyright notice and license text are retained. No royalties or additional permissions are required. The “unknown” entry in the metadata appears to be a placeholder; the explicit license: apache-2.0 field supersedes it.

When integrating the model into a product, you should:

  • Include the Apache‑2.0 NOTICE file in your distribution.
  • Provide attribution to the original author (comodoro) and the base model (facebook/wav2vec2-xls‑r‑300m).
  • Ensure that any downstream modifications also carry the same license, unless you re‑license under a compatible term.

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