Yehor/flashlight-uk

🤗 Hugging Face 来源automatic-speech-recognitionapache-2.0346 MBother✓ 2 个校验和今天更新
一条命令提交

在你的模型文件夹旁边运行它。它会制作种子、将文件与 Hugging Face 比对,然后提交。你只需开始做种,并粘贴你账户中的密钥。它只读取你的文件,绝不修改。如果愿意,可以先阅读脚本。

curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo Yehor/flashlight-uk ./model-folder
需要做种者 →

Flashlight for Ukrainian

Community

See other Ukrainian models: https://github.com/egorsmkv/speech-recognition-uk

Overview

This repository contains the acoustic model for Ukrainian trained on Flashlight framework: https://github.com/flashlight/flashlight/tree/main/flashlight/app/asr

  • Architecture: Conformer (300m params)
  • Data in train: Common Voice 10 & Voice of America
  • Trained epochs: 410
  • Train time: around a week (RTX A4000)

Quality

  • WER: 9.0777% (id est the quality is 90.92%)
  • CER: 1.9839%

How to test?

Run a container with Flashlight running with CPU

docker-compose up

# and in another termianl
docker exec -it flashlight_cpu bash

Run

Just with an AM:

/root/flashlight/build/bin/asr/fl_asr_test --am /models/uk_am.bin --datadir ''  --emission_dir '' --uselexicon false \
 --test /data/rows.lst --tokens /models/tokens.txt --lexicon /models/lexicon.txt --show

With an LM:

/root/flashlight/build/bin/asr/fl_asr_decode \
 --am=/models/uk_am.bin \
 --test=/data/labels_absolute.lst \
 --maxload=3477 \
 --nthread_decoder=2 \
 --show \
 --showletters \
 --lexicon=/models/lexicon.txt \
 --uselexicon=false \
 --lm=/models/lm_4gram_500k.binary \
 --lmtype=kenlm \
 --decodertype=wrd \
 --beamsize=200 \
 --beamsizetoken=200 \
 --beamthreshold=20 \
 --lmweight=0.75 \
 --wordscore=0 \
 --eosscore=0 \
 --silscore=0 \
 --unkscore=0 \
 --smearing=max

How to fine-tune on own data?

/root/flashlight/build/bin/asr/fl_asr_train continue /models/ --flagsfile /models/train.flags

/models/ must contain .bin files

Cite this work

@misc {smoliakov_2025,
	author       = { {Smoliakov} },
	title        = { flashlight-uk (Revision 1ac154b) },
	year         = 2025,
	url          = { https://huggingface.co/Yehor/flashlight-uk },
	doi          = { 10.57967/hf/4577 },
	publisher    = { Hugging Face }
}