Skip to content
Audio

KASASPEECH (DONDO)

мультиязычное распознавание речи для языков Южной Ганы

2 min readupdated

Модель автоматического распознавания речи (ASR), способная переводить аудиозаписи в текст сразу на восьми языках Южной Ганы: английском, французском, адангме, эве, фанти, га, нзема и ашанти-чви. Она создана на базе архитектуры w2v-BERT 2.0 (0.61B параметров) в рамках проекта DONDO от команды KhayaAI и использует CTC (метод выравнивания аудио и текста без жесткой привязки по времени). В отличие от одноязычных решений, один чекпоинт объединяет все восемь языков за счёт передачи специального языкового префикса перед аудиопризнаками. Подойдёт исследователям, занимающимся малоресурсными языками, и разработчикам речевых сервисов для Западной Африки.

Ключевые особенности

  • Единый чекпоинт на 0.61 млрд параметров поддерживает 8 языков региона с переключением через числовой префикс.
  • Обучена в два этапа со снижением скорости обучения (learning-rate annealing), что позволило на ряде языков обойти моноязычные бейзлайны.
  • Средний уровень ошибок по словам (WER) составляет 11.4% на тестовом наборе (например, 3.64% для французского и 6.57% для эве).
  • Распространяется под свободной лицензией Apache-2.0, разрешающей коммерческое использование и дообучение.

Что можно сделать

  • Использовать как базовую модель для дальнейшего файнтюна на собственных аудиоданных и диалектах Ганы.
  • Встроить в пайплайн транскрибации на базе библиотеки transformers для расшифровки речи на 16 кГц.
  • Применять в качестве открытого полигона для тестирования новых методов обучения ASR на малоресурсных языках.

Пример

processor = AutoProcessor.from_pretrained("KhayaAI/w2v-bert-ada_ewe_fat_fra_gaa_nzi_twi_en")
model = AutoModelForCTC.from_pretrained("KhayaAI/w2v-bert-ada_ewe_fat_fra_gaa_nzi_twi_en")
feats = processor(speech.squeeze().numpy(), sampling_rate=16000, return_tensors="pt").input_features[0]
feats = add_language_prefix(feats, lang_id=2, num_langs=32)  # 2 = Asante Twi
with torch.no_grad():
    logits = model(input_features=feats.unsqueeze(0)).logits
print(processor.batch_decode(torch.argmax(logits, dim=-1))[0])
ПодробнееСредний WER: 14.7% после 1-го этапа обучения (LR 5e-5) и 11.4% после 2-го этапа (LR 5e-6).
Требования: аудио на вход должно иметь частоту дискретизации 16 кГц; размер модели — 0.61B параметров.
Ограничения: обучалась преимущественно на чтении религиозных текстов; нет встроенного автоопределения языка (требуется ручной префикс); качество на африканском английском (WER 27.4%) ниже, чем у специализированной моноязычной модели (16.9%).
Discuss Telegram 1 3

Will it run?

Working out the memory needs

The bot is still collecting this model's weight sizes; the estimate will appear here in a few minutes. Meanwhile you can rent a GPU with headroom.

Massed ComputeOpen Massed Compute

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # JOHANNES02/KASASPEECH
    # ===== Tokens: paste yours between the quotes =====
    export HF_TOKEN=""        # huggingface.co/settings/tokens, for gated models
    # ==========================================
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download JOHANNES02/KASASPEECH --local-dir ~/models/KASASPEECH
    # The model is in ~/models. How to run it is in the model card (link above).
    Add more LoRAs to KASASPEECH
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b40from November 18, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026new release

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

New posts about versions of KASASPEECH (quants, finetunes, LoRAs) will show up under the bell.

No known relatives of this model yet. All derivatives on Hugging Face

About the model

JOHANNES02/KASASPEECH
Author
JOHANNES02
Category
Audio
Released
Posted

On NeyroLearn

Hugging Face

31

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments