This model is a fine-tuned version of
openai/whisper-medium on the
Dido Yvanchyk Audio Dataset v2 for Ukrainian speech recognition.
The model was trained for 8000 steps with evaluation every 500 steps. The best checkpoint was selected based on the lowest CER.
1from transformers import pipeline
2import torch
3
4device = "cuda:0" if torch.cuda.is_available() else "cpu"
5
6pipe = pipeline(
7 "automatic-speech-recognition",
8 model="KSE-RESEARCH-Group/whisper-medium-dido-yvanchyk-v2",
9 device=device,
10)
11
12result = pipe(
13 "path/to/audio.wav",
14 generate_kwargs={
15 "task": "transcribe",
16 "language": "ukrainian",
17 },
18 chunk_length_s=30,
19)
20print(result["text"])
1from transformers import WhisperForConditionalGeneration, WhisperProcessor
2import torch
3
4model_id = "KSE-RESEARCH-Group/whisper-medium-dido-yvanchyk-v2"
5
6processor = WhisperProcessor.from_pretrained(model_id)
7model = WhisperForConditionalGeneration.from_pretrained(model_id)
8
9# Move to GPU if available
10device = "cuda:0" if torch.cuda.is_available() else "cpu"
11model = model.to(device)
12
13# Process audio (audio_array should be a numpy array at 16kHz)
14input_features = processor(
15 audio_array,
16 sampling_rate=16000,
17 return_tensors="pt"
18).input_features.to(device)
19
20# Generate transcription
21predicted_ids = model.generate(input_features)
22transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
23print(transcription)
1@misc{KSE-RESEARCH-Group-whisper-medium-dido-yvanchyk-v2,
2 author = {KSE-RESEARCH-Group},
3 title = {whisper-medium - Fine-tuned for Ukrainian ASR},
4 year = {2025},
5 publisher = {Hugging Face},
6 url = {https://huggingface.co/KSE-RESEARCH-Group/whisper-medium-dido-yvanchyk-v2}
7}
This model is released under the MIT license.