Giter VIP home page Giter VIP logo

xlsr-fine-tuning-week's Introduction

xlsr-fine-tuning-week

Cod i cyd fynd a wythnos mireinio model XLSR Facebook gyda HuggingFace ar gyfer y Gymraeg // Code for fine tuning Facebook XLSR model with HuggingFace for Welsh.

Gweler https://huggingface.co/DewiBrynJones/wav2vec2-large-xlsr-welsh ar gyfer model wedi'i hyfforddi eisoes. // See https://huggingface.co/DewiBrynJones/wav2vec2-large-xlsr-welsh for a pre-trained model.

Sut i'w ddefnyddio... // How to use...

$ make

$ make run

root@bff0be8425ea:/usr/src/xlsr-finetune# python3 run.py

Yn dibynnu ar y cerdyn graffics, bydd yn gymryd rhai oriau i hyfforddi. // Depending on your graphics card, it will take some hours to train.

Ar GeForce RTX 2080, mae'n cymryd hyd at 13 awr // On a GeForce RTX 2080 it takes up to 13 hours.

Gwerthuso // Evaluation

Yn ol set profi CommonVoice Cymraeg, mae gan y model Word Error Rate (WER) o 25.31%. // According to the Welsh CommonVoice test set, the model has a Word Error Rate (WER) of 25.31%.

root@26215fd43562:/usr/src/xlsr-finetune# python3 evaluate.py
Reusing dataset common_voice (/root/.cache/huggingface/datasets/common_voice/cy/6.1.0/0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f)
Loading the LM will be faster if you build a binary file.
Reading /models/kenlm/lm_filtered.arpa
----5---10---15---20---25---30---35---40---45---50---55---60---65---70---75---80---85---90---95--100
****************************************************************************************************
found 1gram
found 2gram
Loading cached processed dataset at /root/.cache/huggingface/datasets/common_voice/cy/6.1.0/0041e06ab061b91d0a23234a2221e87970a19cf3a81b20901474cffffeb7869f/cache-7bc763ec5b45ddb8.arrow
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 603/603 [08:35<00:00,  1.17ba/s]
WER: 25.315298
WER with LM: 22.783297
root@26215fd43562:/usr/src/xlsr-finetune# python3 decode.py --wav speech.wav
mae ganddynt ddau o blant mab a merch

xlsr-fine-tuning-week's People

Contributors

dewibrynjones avatar str20tbl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.