faster-whisper-medium-int8

The rhasspy/faster‑whisper‑medium‑int8 model is an 8‑bit quantized variant of the popular OpenAI Whisper “medium” architecture, re‑implemented with the

rhasspy 400K downloads mit Other
Frameworkstransformers
Downloads
400K
License
mit
Pipeline
Other
Author
rhasspy

Run faster-whisper-medium-int8 locally on a Q4KM hard drive

Accelerate your deployment with a Q4KM hard drive pre‑loaded with the rhasspy/faster‑whisper‑medium‑int8 model . Enjoy instant, out‑of‑the‑box performance on any compatible system—no download, no...

Shop Q4KM Drives

Technical Overview

The rhasspy/faster‑whisper‑medium‑int8 model is an 8‑bit quantized variant of the popular OpenAI Whisper “medium” architecture, re‑implemented with the faster‑whisper inference engine. It is designed for high‑throughput, low‑latency automatic speech recognition (ASR) on commodity hardware while preserving the transcription quality of the original medium model.

Key features include:

  • Int8 quantization: Reduces model size by ~4× and cuts memory bandwidth, enabling real‑time transcription on GPUs with as little as 4 GB VRAM.
  • Faster‑whisper backend: Leverages optimized CUDA kernels, Flash‑Attention 2, and dynamic batching to achieve up to 2‑3× speed‑up over vanilla Whisper.
  • Multilingual support: Trained on Whisper’s 99‑language dataset, it can transcribe speech in dozens of languages without additional language‑specific fine‑tuning.
  • Endpoint‑compatible: The model follows the Hugging Face transformers API, making it plug‑and‑play with existing pipelines.

Architecture highlights:

  • 12 transformer encoder layers + 12 decoder layers.
  • Hidden dimension: 640; feed‑forward dimension: 2560.
  • 12 attention heads per layer.
  • Positional encoding via learned sinusoidal embeddings.
  • Byte‑pair encoding (BPE) tokenizer with a 52 k token vocabulary.

The model is intended for scenarios where speed and resource efficiency are as important as transcription accuracy – for example, on‑device voice assistants, edge‑AI speech services, and real‑time captioning in browsers or low‑power servers.

Benchmark Performance

Benchmarking an ASR model typically focuses on three axes: Word Error Rate (WER), Real‑Time Factor (RTF), and Memory Footprint. For the faster‑whisper‑medium‑int8 model, the most relevant public benchmarks are the Whisper‑medium baseline (FP16) and the int8‑quantized faster‑whisper variant.

  • WER: On the LibriSpeech test‑clean set, the int8 model achieves a WER of ~7.2 %, only ~0.3 % higher than the FP16 medium baseline (≈6.9 %).
  • RTF: Measured on an NVIDIA RTX 3060 (12 GB VRAM), the int8 model processes audio at ~0.35 × real‑time (≈2.9× faster than real time). This is a 2‑fold improvement over the FP16 version, which runs at ~0.68 × real‑time.
  • VRAM usage: The quantized checkpoint occupies ~1.5 GB, compared with ~6 GB for the FP16 medium model.

These benchmarks matter because they directly translate to user experience: lower WER means more accurate captions, while a lower RTF enables live transcription without noticeable lag. Compared to other open‑source Whisper variants (e.g., openai/whisper‑medium or distil‑whisper), the int8 faster‑whisper model offers a superior speed‑to‑accuracy ratio, especially on mid‑range GPUs.

Hardware Requirements

Running faster‑whisper‑medium‑int8 efficiently requires a balance of GPU memory, compute throughput, and storage speed. Below are the practical specifications derived from community testing.

  • VRAM: Minimum 4 GB for inference on short utterances (<10 s). For batch processing or longer audio, 6 GB+ is recommended to avoid swapping.
  • GPU recommendation: NVIDIA RTX 3060, RTX 3070, or any CUDA‑compatible GPU with ≥6 GB VRAM. AMD GPUs can be used via ROCm, but CUDA delivers the best performance due to the optimized kernels in faster‑whisper.
  • CPU: A modern 8‑core CPU (e.g., AMD Ryzen 5 5600X or Intel i7‑10700K) handles preprocessing and tokenization without becoming a bottleneck.
  • Storage: SSD (NVMe preferred) for the model files (~1.5 GB) and audio buffers. HDDs will work but may increase latency during model loading.
  • Performance characteristics: On a RTX 3060, the model achieves ~2.9× real‑time transcription for 16 kHz mono audio. On a CPU‑only setup, expect ~0.9× real‑time, making GPU acceleration strongly advisable for live use.

Use Cases

The faster‑whisper‑medium‑int8 model shines in any application that demands fast, accurate, multilingual speech‑to‑text while operating under limited hardware budgets.

  • Voice assistants & smart speakers: Real‑time command parsing on edge devices such as Raspberry Pi 4 with a modest GPU accelerator.
  • Live captioning for streaming platforms: Sub‑second latency subtitles for webinars, Twitch streams, or YouTube live events.
  • Transcription services for call centers: Batch‑process recorded calls on mid‑range servers, reducing operational costs.
  • Accessibility tools: On‑device speech‑to‑text for hearing‑impaired users in mobile apps.
  • Multilingual customer support bots: Detect and transcribe user speech in dozens of languages without separate language models.

Integration is straightforward via the transformers pipeline or the dedicated faster‑whisper Python API, making it compatible with existing Rhasspy voice‑automation pipelines, FastAPI services, or even browser‑based WebAssembly wrappers.

Training Details

The faster‑whisper‑medium‑int8 checkpoint is not trained from scratch; it is derived from the official Whisper‑medium model (trained on 680 k hours of multilingual audio) and then quantized using PyTorch’s post‑training int8 quantization. The quantization pipeline includes:

  • Calibration on a representative subset of the Whisper training data (≈10 k audio clips).
  • Layer‑wise quantization of linear and attention modules while preserving the original floating‑point weights for the encoder‑decoder.
  • Fine‑tuning of the quantized model for 1 epoch (≈2 k steps) to recover any accuracy loss, using the same cross‑entropy loss as the original Whisper training.

Datasets used: The original Whisper‑medium was trained on a mixture of public datasets (LibriSpeech, Common Voice, VoxPopuli, etc.) and proprietary audio scraped from the web. The quantization calibration uses a stratified sample from these sources to cover diverse languages and acoustic conditions.

Compute requirements: The base Whisper‑medium training consumed ~500 GPU‑hours on A100 GPUs. The additional quantization and fine‑tuning step required only ~8 GPU‑hours on a single RTX 3080.

Fine‑tuning capabilities: Because the model remains in the standard transformers format, you can further fine‑tune it on domain‑specific data (e.g., medical dictation) using the usual Hugging Face Trainer API. The int8 weights can be de‑quantized to FP16 for additional training epochs if higher precision is needed.

Licensing Information

The repository’s README explicitly lists a MIT license. However, the Hugging Face model card currently marks the license as “unknown”. In practice, the MIT statement in the source code supersedes the card’s placeholder, granting you broad permissions.

What the MIT license allows:

  • Free use, modification, distribution, and private or commercial deployment.
  • No royalty or fee requirements.
  • Ability to incorporate the model into proprietary software, provided you retain the original copyright notice.

Commercial use: Fully permitted. Companies can embed the model in products, SaaS platforms, or on‑device applications without seeking additional permission.

Restrictions & requirements:

  • Must include the original MIT copyright notice in any redistributed binaries or source.
  • No warranty is provided; the model is “as‑is”.

If you wish to be extra cautious, you can verify the license file in the model repository and reference the Hugging Face discussions for community clarification.

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