Run this model with HF Jobs

Run BatuhanECB/ukus on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/BatuhanECB/ukus. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/BatuhanECB/ukus on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
ukus / README.md
BatuhanECB's picture
README: model bilgisi, kullanım, ayarlar, sınırlamalar
b411150 verified
|
Raw History Blame Contribute Delete
6.23 kB
---
language:
- tr
license: mit
base_model: openai/whisper-large-v3-turbo
pipeline_tag: automatic-speech-recognition
library_name: transformers
tags:
- whisper
- turkish
- ctranslate2
- faster-whisper
model-index:
- name: ukus
results:
- task: {type: automatic-speech-recognition}
dataset: {name: turkishvoicedataset, type: erenfazlioglu/turkishvoicedataset}
metrics:
- {type: wer, value: 8.45}
- {type: cer, value: 2.34}
- task: {type: automatic-speech-recognition}
dataset: {name: MediaSpeech TR, type: ymoslem/MediaSpeech}
metrics:
- {type: wer, value: 14.66}
- {type: cer, value: 4.47}
- task: {type: automatic-speech-recognition}
dataset: {name: Common Voice 17 TR (fixed), type: ysdede/commonvoice_17_tr_fixed}
metrics:
- {type: wer, value: 12.18}
- {type: cer, value: 3.76}
- task: {type: automatic-speech-recognition}
dataset: {name: FLEURS TR, type: google/fleurs, config: tr_tr, split: test}
metrics:
- {type: wer, value: 8.30}
- {type: cer, value: 4.04}
---
# Ukuş
Türkçe konuşma tanıma (ASR) modeli. `openai/whisper-large-v3-turbo` tabanlı, 809M parametre. Hem 🤗 Transformers hem faster-whisper (CTranslate2) biçiminde gelir.
| | |
|---|---|
| Taban model | openai/whisper-large-v3-turbo |
| Parametre | 809M (32 katman encoder, 4 katman decoder) |
| Dil | Türkçe |
| Girdi | 16 kHz mono ses (daha düşük örnekleme hızları otomatik yükseltilir) |
| Dosyalar | `model.safetensors` (FP32, 3,1 GB) · `ct2/` (CTranslate2 FP16, 1,6 GB) |
| Lisans | MIT |
## Öne çıkanlar
- **turkishvoice:** 1. sıra, 17 model arasında (WER 8,45).
- **turkmedstt CV + ISSAI + MediaSpeech:** 1. sıra, 21 model arasında (WER 9,55).
- **Telefon kanalı (8 kHz):** dayanıklı. FLEURS'te temiz ses ile 8 kHz μ-law arasındaki fark yalnız +0,35 WER.
- **Boyut:** turbo boyutunda. Tüketici GPU'larında, örneğin 8 GB VRAM'de FP16 ile çalışır.
## Kullanım
### faster-whisper (önerilen)
```python
from huggingface_hub import snapshot_download
from faster_whisper import WhisperModel
yol = snapshot_download("BatuhanECB/ukus", allow_patterns=["ct2/*"])
model = WhisperModel(f"{yol}/ct2", device="cuda", compute_type="float16") # CPU: device="cpu", compute_type="int8"
segmentler, _ = model.transcribe("ses.wav", language="tr", beam_size=5, condition_on_previous_text=False)
print(" ".join(s.text.strip() for s in segmentler))
```
### 🤗 Transformers
```python
import torch
from transformers import pipeline
asr = pipeline("automatic-speech-recognition", model="BatuhanECB/ukus",
torch_dtype=torch.float16, device="cuda:0")
print(asr("ses.wav", generate_kwargs={"language": "turkish", "task": "transcribe"},
chunk_length_s=30, batch_size=8)["text"])
```
### Önerilen ayarlar
- Dili sabitleyin: `language="tr"`. Otomatik dil algılamayı kapatmak kısa kliplerde hatayı azaltır.
- Uzun kayıtlarda `condition_on_previous_text=False` tekrar döngüsü riskini azaltır.
- 30 saniyeden uzun, sessizlik içeren kayıtlarda `vad_filter=True` (faster-whisper) faydalıdır. Kısa kliplerde kapalı bırakın.
## Benchmark sonuçları
WER / CER (%), düşük daha iyi. Sıra, herkese açık Türkçe ASR panolarındaki modellerle aynı ölçüm reçetesiyle yaptığımız kendi ölçümümüzdür; resmi pano kaydı değildir.
| pano | test | örnek | WER / CER | sıra |
|---|---|---|---|---|
| ysdede | turkishvoice | 9.999 | 8,45 / 2,34 | 1/17 |
| ysdede | MediaSpeech | 2.513 | 14,66 / 4,47 | 6/17 |
| ysdede | Common Voice 17 (fixed) | 9.650 | 12,18 / 3,76 | 6/12 |
| RsGoksel | MediaSpeech-TR | 2.513 | 14,88 / 4,58 | 5/19 |
| RsGoksel | Common Voice 17 TR (2000) | 2.000 | 11,41 / 3,44 | 4/19 |
| RsGoksel | FLEURS temiz | 743 | 8,30 / 4,04 | 7/19 |
| RsGoksel | FLEURS + codec (Opus 8/12/16/32 ort.) | 743 × 4 | 9,16 / 4,33 | 7/19 |
| RsGoksel | FLEURS + gürültü (20/10/0 dB ort.) | 743 × 3 | 14,52 / 7,95 | 8/19 |
| RsGoksel | FLEURS + gürültü + codec (12 koşul ort.) | 743 × 12 | 19,35 / 10,74 | 8/19 |
| turkmedstt | CV + ISSAI + MediaSpeech | 1.016 | 9,55 / 2,59 | 1/21 |
| Emre-Akgul | FLEURS test (NeMo TN) | 743 | 8,02 / 3,93 | 16/28 |
| YTU COSMOS | gerçek telefon | 20 | 23,20 / 7,36 | 8/17 |
| YTU COSMOS | sentetik | 20 | 6,93 / 0,77 | 16/17 |
Ölçüm reçeteleri her panonun kendi yöntemini izler:
- **ysdede:** WhisperX + trnorm, klip ortalaması.
- **RsGoksel:** faster-whisper, beam 5, trnorm, korpus düzeyi.
- **turkmedstt:** HF greedy, 30 sn pencere.
- **Emre-Akgul:** faster-whisper varsayılan, NeMo metin normalizasyonu.
- **YTU COSMOS:** resmi değerlendirme kiti, herkese açık 20 örnek.
Panolardaki gizli setlerde sonuç farklı olabilir.
### Telefon kanalı (8 kHz μ-law)
Test sesleri 8 kHz μ-law'a indirilip yeniden 16 kHz'e çıkarıldı. Bu, telefon hattı benzetimidir.
| test | temiz WER / CER | telefon WER / CER |
|---|---|---|
| FLEURS | 8,30 / 4,04 | 8,65 / 3,57 |
| Common Voice 17 (2000) | 11,41 / 3,44 | 12,75 / 4,49 |
| MediaSpeech | 14,88 / 4,58 | 14,79 / 4,56 |
### FLEURS bozulma testleri
Gürültü kaynağı MUSAN, codec Opus.
| koşul | WER / CER |
|---|---|
| temiz | 8,30 / 4,04 |
| Opus 8 / 12 / 16 / 32 kbps | 11,72 / 5,69 · 9,17 / 4,55 · 8,42 / 3,77 · 7,32 / 3,31 |
| gürültü 20 / 10 / 0 dB | 9,28 / 4,58 · 11,64 / 6,15 · 22,65 / 13,12 |
| gürültü 20 dB + Opus 8 / 12 / 16 / 32 | 13,67 / 6,46 · 11,45 / 6,12 · 10,89 / 5,62 · 9,04 / 4,45 |
| gürültü 10 dB + Opus 8 / 12 / 16 / 32 | 20,45 / 10,61 · 14,89 / 7,88 · 13,40 / 7,38 · 12,03 / 6,41 |
| gürültü 0 dB + Opus 8 / 12 / 16 / 32 | 45,08 / 27,61 · 29,42 / 17,01 · 27,08 / 15,24 · 24,78 / 14,10 |
Ham sonuçlar: `benchmark/`
## Sınırlamalar
- Whisper ailesinin bilinen sorunları burada da geçerlidir: sessiz ya da çok kısa kliplerde uydurma metin, uzun kayıtlarda tekrar döngüsü.
- Yabancı özel adlar ve nadir terimler hatalı yazılabilir.
- Çok gürültülü ortamlarda (0 dB ve altı) hata belirgin biçimde artar.
- Çıktı noktalama ve büyük harf içerir. Değerlendirmeler normalize edilmiş metin üzerinden yapılmıştır.
## Lisans
MIT. Taban modelin (`openai/whisper-large-v3-turbo`) lisansıyla uyumludur.