Georgian Whisper Medium MEI
MEI — Mkhedruli Engine for Intelligent Transcription
Georgian Whisper Medium MEI is an automatic speech recognition (ASR) model based on Whisper Medium, fine-tuned for Georgian-language speech using a two-stage training approach with synthetic channel and acoustic augmentation on Mozilla Common Voice.
The accompanying repository includes model weights and a complete Python application providing both an interactive Gradio web interface and a command-line interface for transcribing audio files and live microphone recordings.
Quickstart (Transformers)
You can transcribe audio directly in Python using the Hugging Face transformers library without cloning the repository:
import torch
from transformers import pipeline
device = "cuda:0" if torch.cuda.is_available() else "cpu"
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
pipe = pipeline(
"automatic-speech-recognition",
model="tabluka90/georgian-whisper-medium-MEI",
torch_dtype=torch_dtype,
device=device,
)
result = pipe("path/to/audio.wav", generate_kwargs={"language": "georgian", "task": "transcribe"})
print(result["text"])
Or using WhisperForConditionalGeneration and WhisperProcessor:
import torch
import librosa
from transformers import WhisperProcessor, WhisperForConditionalGeneration
model_id = "tabluka90/georgian-whisper-medium-MEI"
device = "cuda:0" if torch.cuda.is_available() else "cpu"
processor = WhisperProcessor.from_pretrained(model_id)
model = WhisperForConditionalGeneration.from_pretrained(model_id).to(device)
# Load audio resampled at 16,000 Hz
audio, _ = librosa.load("path/to/audio.wav", sr=16000)
input_features = processor(audio, sampling_rate=16000, return_tensors="pt").input_features.to(device)
# Generate Mkhedruli transcription
predicted_ids = model.generate(
input_features,
forced_decoder_ids=processor.get_decoder_prompt_ids(language="georgian", task="transcribe")
)
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
print(transcription)
Model Details
| Property | Description |
|---|---|
| Model Architecture | Whisper Medium (Encoder-Decoder, ~769M parameters) |
| Task | Automatic Speech Recognition (ASR) |
| Language | Georgian (ka) |
| Target Script | Mkhedruli (მხედრული) |
| Base Model | openai/whisper-medium |
| Training Pipeline | Two-Stage Continued Fine-Tuning (Clean → Channel Augmented) |
| Training Data | Mozilla Common Voice v.22.0 & Scripted Speech 26.0 (Georgian) |
| Hardware | 2× NVIDIA A100 (40GB) GPUs via MICM HPC Server |
| Framework | PyTorch / Hugging Face Transformers |
| Audio Processing | Librosa / SoundFile (16,000 Hz mono) |
The application configures Whisper for Georgian transcription (language="ka", task="transcribe"). All model and processor weights are self-contained in the repository root.
Training Methodology
The model was developed through a two-stage training strategy designed to improve both in-distribution accuracy and acoustic robustness:
- Stage 1 (Domain Adaptation): Fine-tuned from
openai/whisper-mediumon the Georgian subset of Mozilla Common Voice v.22.0 (116,586 clips across 2,316 speakers) for 20,000 steps. - Stage 2 (Channel Augmentation & Scale): Continued fine-tuning for an additional 20,000 steps (40,000 cumulative steps) on the Georgian Common Voice Scripted Speech 26.0 corpus (334,062 clips across 3,146 speakers). Before training, the dataset was processed through a 4-way channel-augmentation pipeline:
- Simulated Radio: 4th-order Butterworth bandpass filter (400–4,500 Hz) with additive white Gaussian noise (~32 dB SNR).
- Simulated Telephone: 5th-order Butterworth bandpass filter (300–3,400 Hz) with soft symmetric hyperbolic-tangent clipping (carbon-mic emulation).
- Background Noise: Additive white Gaussian noise at 12–25 dB SNR.
- As-Is Clean Audio: Unmodified recording (~25% distribution).
Evaluation Results
Evaluation was conducted across both held-out in-distribution data and an unseen, out-of-domain external recording (literary narration, 372 reference words), comparing the unmodified base model, Stage 1, and the released MEI model (Stage 2):
1. Held-Out Validation Split (n = 5,830 clips)
| Model Checkpoint | Fine-Tuning Steps | WER (%) | CER (%) | Token Overlap (%) |
|---|---|---|---|---|
| Stage 1 (CV 22.0) | 20,000 | 8.92% | 1.41% | 91.53% |
| MEI (Stage 2, CV 26.0 + Aug) | 40,000 | 3.85% | 0.64% | 96.32% |
Relative to Stage 1, MEI achieves a 56.8% relative reduction in WER and 54.6% relative reduction in CER on held-out speech.
2. Out-of-Domain Generalization (Unseen External Long-Form Audio, 372 Words)
| Model Checkpoint | WER (%) | CER (%) | Token Overlap (%) | Substitutions | Deletions | Insertions |
|---|---|---|---|---|---|---|
| Unmodified Base Whisper Medium | 100.00% | 84.29% | N/A | 261 | 111 | 0 |
| Stage 1 | 31.72% | 8.33% | 72.85% | 90 | 14 | 14 |
| MEI (Stage 2) | 27.96% | 6.09% | 75.44% | 81 | 15 | 8 |
Limitations and Evaluation
While MEI demonstrates substantial improvements over the base Whisper model on Georgian speech, users should consider the following limitations:
- Domain-Shift Discrepancy: There is an observable performance gap between clean, read-speech validation data (3.85% WER) and out-of-domain long-form narration (27.96% WER). Performance may degrade on conversational dialogue, multi-speaker overlapping conversations, or heavy regional dialects.
- Acoustic Environments: Although synthetic telephone and radio channel augmentations were applied during Stage 2, severe acoustic reverberation, excessive background chatter, or low-quality recording hardware may still induce substitution or hallucination errors.
- Hallucinations & Repetitions: Consistent with autoregressive sequence-to-sequence ASR models, prolonged periods of silence or unintelligible non-speech background audio can cause the decoder to hallucinate repetitive phrases or loop tokens.
Intended Use and Responsible Use
MEI is intended for Georgian automatic speech recognition, transcription applications, and research.
It should not be considered a substitute for human review when transcription accuracy is critical. Transcripts used in medical, legal, academic, or other sensitive contexts should be independently reviewed and corrected by qualified individuals.
Reported evaluation results are dataset-dependent and should not be interpreted as a guarantee of accuracy across all speakers, domains, and recording conditions.
Repository Structure
georgian-whisper-medium-MEI/
├── config.json
├── generation_config.json
├── model.safetensors
├── tokenizer.json
├── tokenizer_config.json
├── vocab.json
├── merges.txt
├── normalizer.json
├── special_tokens_map.json
├── added_tokens.json
├── preprocessor_config.json
├── requirements.txt
└── examples/
└── georgian_asr.py
The application resolves default model and processor paths relative to its location and expects the model files in the repository root.
Installation & Local Setup
1. Clone the Repository
git lfs install
git clone https://huggingface.co/tabluka90/georgian-whisper-medium-MEI
cd georgian-whisper-medium-MEI
Ensure model.safetensors has fully downloaded via Git LFS before launching the application.
2. Create a Python Environment
Python 3.10 is the recommended and tested environment.
Using Conda:
conda create -n mei python=3.10 -y
conda activate mei
Or using standard Python virtual environments:
python -m venv mei-env
source mei-env/bin/activate # On Windows: mei-env\Scripts\activate
3. Install PyTorch
Install PyTorch according to your local hardware and CUDA setup (refer to the PyTorch selector):
-
CPU-only:
pip install torch -
NVIDIA GPU (CUDA 12.8 reference environment):
pip install torch==2.9.0 --index-url https://download.pytorch.org/whl/cu128
4. Install Repository Dependencies
From the root directory:
pip install -r requirements.txt
FFmpeg and Audio Codecs
FFmpeg is recommended for broad audio-format compatibility, but it is not explicitly invoked by the MEI application.
Audio loading is handled through librosa.load() and the SoundFile stack (tested with Librosa 0.11.0, SoundFile 0.13.1, libsndfile 1.2.2). The tested SoundFile installation supports WAV, FLAC, MP3, OGG, AIFF, and AU.
Installing FFmpeg ensures seamless format conversion for uploaded files:
- Ubuntu / Debian:
sudo apt update && sudo apt install ffmpeg - macOS (Homebrew):
brew install ffmpeg - Windows:
Download from ffmpeg.org and add the
bindirectory to your systemPATH.
Verify installation:
ffmpeg -version
Launching the Gradio Web Interface
To launch the web application from the repository root:
python examples/georgian_asr.py ui
By default, the application runs on port 7860. Open your browser to:
http://127.0.0.1:7860
Live Microphone Transcription
- Open the web interface.
- Select the Live microphone tab.
- Allow microphone permissions in your browser.
- Record spoken Georgian and press Stop.
- The model processes the audio and outputs the transcript.
Audio File Transcription
- Open the Audio file tab.
- Upload an audio recording.
- Click transcribe and wait for processing to finish.
- Review and download the generated transcript.
Remote Server & SSH Port Forwarding
When running MEI on a remote HPC server or cloud instance, forward the local port over SSH:
ssh -L 7860:127.0.0.1:7860 username@server-address
Launch the interface on the remote machine:
python examples/georgian_asr.py ui
Access the application in your local browser at http://127.0.0.1:7860.
Command-Line Interface (CLI)
MEI can perform transcriptions directly from the terminal without starting the web UI.
# Basic transcription output to terminal
python examples/georgian_asr.py transcribe --audio input.wav
# Transcribe and write output to a file
python examples/georgian_asr.py transcribe \
--audio input.wav \
--output transcript.txt
# Enable additional text cleanup
python examples/georgian_asr.py transcribe \
--audio input.wav \
--output transcript.txt \
--clean
CLI Arguments
| Option | Description |
|---|---|
ui | Launch the Gradio web interface |
transcribe | Execute command-line transcription |
--audio | Path to the input audio file |
--output | Destination path for the transcribed text file |
--clean | Apply additional Georgian text-cleaning routines |
--model | Specify a custom model directory path |
--processor | Specify a custom processor directory path |
--host | Set the Gradio host binding (e.g. 0.0.0.0) |
--port | Set the Gradio port (default 7860) |
--share | Generate a temporary Gradio public sharing link |
To inspect all available arguments:
python examples/georgian_asr.py --help
Audio Pipeline & Hardware Guidelines
- Resampling: Input audio is converted to mono at 16,000 Hz before being passed to the feature extractor.
- Hardware (GPU): An NVIDIA GPU with at least 6 GB of VRAM is recommended for fast FP16 execution.
- Hardware (CPU): CPU inference is supported but execution time will be noticeably slower.
Troubleshooting
- Model or processor not found: Ensure
georgian_asr.pyremains inexamples/and all model weight files are in the repository root directory. - Audio decoding errors: Convert problematic audio recordings to uncompressed WAV:
ffmpeg -i source_file.m4a -ar 16000 -ac 1 clean_audio.wav - Microphone unavailable in browser: Browsers require secure contexts (
localhostorhttps://) to enable microphone access. Use SSH tunneling when working with remote machines. - Port 7860 in use: Select an alternate port:
python examples/georgian_asr.py ui --port 7861
Citation
If you use Georgian Whisper Medium MEI in your research or project, please cite:
@misc{tabagari2026georgianwhispermei,
title={Georgian Whisper Medium MEI: Mkhedruli Engine for Intelligent Transcription},
author={Luka Tabagari}, {Ioseb Kachiashvili},
year={2026},
publisher={Hugging Face},
howpublished={\url{https://huggingface.co/tabluka90/georgian-whisper-medium-MEI}}
}
License & Attribution
- License: Distributed under the Apache License 2.0.
- Upstream Model: Retains upstream Apache-2.0 / MIT licensing notices from OpenAI Whisper.
- Training Data: Mozilla Common Voice releases are licensed under CC0-1.0.
Acknowledgements & Funding
- Base Architecture: Built upon OpenAI Whisper (
openai/whisper-medium). - Training Data: Mozilla Common Voice Georgian community contributors.
- Compute Infrastructure: All computations were performed on the MICM HPC Server
- Georgian Technical University, MICM
- Funding & Support: This work was supported by the European Union's Horizon Europe research and innovation programme under the FORGE-AI project.
Georgian Whisper Medium MEI
Mkhedruli Engine for Intelligent Transcription