linhqyy / w2v-large-lm

huggingface.co
Total runs: 3
24-hour runs: 0
7-day runs: 0
30-day runs: 2
Model's Last Updated: September 07 2023

Introduction of w2v-large-lm

Model Details of w2v-large-lm

Vietnamese Self-Supervised Learning Wav2Vec2 model

Model

We use wav2vec2 architecture for doing Self-Supervised learning

Data

Our self-supervised model is pre-trained on a massive audio set of 13k hours of Vietnamese youtube audio, which includes:

  • Clean audio
  • Noise audio
  • Conversation
  • Multi-gender and dialects
Download

We have already upload our pre-trained model to the Huggingface. The base model trained 35 epochs and the large model trained 20 epochs in about 30 days using TPU V3-8.

Usage
from transformers import Wav2Vec2ForPreTraining, Wav2Vec2Processor

model_name = 'nguyenvulebinh/wav2vec2-base-vi'
# model_name = 'nguyenvulebinh/wav2vec2-large-vi'

model = Wav2Vec2ForPreTraining.from_pretrained(model_name)
processor = Wav2Vec2Processor.from_pretrained(model_name)

Since our model has the same architecture as the English wav2vec2 version, you can use this notebook for more information on how to fine-tune the model.

Finetuned version
VLSP 2020 ASR dataset

Benchmark WER result on VLSP T1 testset:

base model large model
without LM 8.66 6.90
with 5-grams LM 6.53 5.32

Usage

#pytorch
#!pip install transformers==4.20.0
#!pip install https://github.com/kpu/kenlm/archive/master.zip
#!pip install pyctcdecode==0.4.0
from transformers.file_utils import cached_path, hf_bucket_url
from importlib.machinery import SourceFileLoader
from transformers import Wav2Vec2ProcessorWithLM
from IPython.lib.display import Audio
import torchaudio
import torch

# Load model & processor
model_name = "nguyenvulebinh/wav2vec2-base-vi-vlsp2020"
# model_name = "nguyenvulebinh/wav2vec2-large-vi-vlsp2020"
model = SourceFileLoader("model", cached_path(hf_bucket_url(model_name,filename="model_handling.py"))).load_module().Wav2Vec2ForCTC.from_pretrained(model_name)
processor = Wav2Vec2ProcessorWithLM.from_pretrained(model_name)

# Load an example audio (16k)
audio, sample_rate = torchaudio.load(cached_path(hf_bucket_url(model_name, filename="t2_0000006682.wav")))
input_data = processor.feature_extractor(audio[0], sampling_rate=16000, return_tensors='pt')

# Infer
output = model(**input_data)

# Output transcript without LM
print(processor.tokenizer.decode(output.logits.argmax(dim=-1)[0].detach().cpu().numpy()))

# Output transcript with LM
print(processor.decode(output.logits.cpu().detach().numpy()[0], beam_width=100).text)
Acknowledgment
  • We would like to thank the Google TPU Research Cloud (TRC) program and Soonson Kwon (Google ML Ecosystem programs Lead) for their support.
  • Special thanks to my colleagues at VietAI and VAIS for their advice.
Contact

[email protected] / [email protected]

Follow

Runs of linhqyy w2v-large-lm on huggingface.co

3
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
2
30-day runs

More Information About w2v-large-lm huggingface.co Model

More w2v-large-lm license Visit here:

https://choosealicense.com/licenses/cc-by-nc-4.0

w2v-large-lm huggingface.co

w2v-large-lm huggingface.co is an AI model on huggingface.co that provides w2v-large-lm's model effect (), which can be used instantly with this linhqyy w2v-large-lm model. huggingface.co supports a free trial of the w2v-large-lm model, and also provides paid use of the w2v-large-lm. Support call w2v-large-lm model through api, including Node.js, Python, http.

w2v-large-lm huggingface.co Url

https://huggingface.co/linhqyy/w2v-large-lm

linhqyy w2v-large-lm online free

w2v-large-lm huggingface.co is an online trial and call api platform, which integrates w2v-large-lm's modeling effects, including api services, and provides a free online trial of w2v-large-lm, you can try w2v-large-lm online for free by clicking the link below.

linhqyy w2v-large-lm online free url in huggingface.co:

https://huggingface.co/linhqyy/w2v-large-lm

w2v-large-lm install

w2v-large-lm is an open source model from GitHub that offers a free installation service, and any user can find w2v-large-lm on GitHub to install. At the same time, huggingface.co provides the effect of w2v-large-lm install, users can directly use w2v-large-lm installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

w2v-large-lm install url in huggingface.co:

https://huggingface.co/linhqyy/w2v-large-lm

Url of w2v-large-lm

w2v-large-lm huggingface.co Url

Provider of w2v-large-lm huggingface.co

linhqyy
ORGANIZATIONS

Other API from linhqyy

huggingface.co

Total runs: 75
Run Growth: 31
Growth Rate: 41.33%
Updated:September 21 2024
huggingface.co

Total runs: 54
Run Growth: 29
Growth Rate: 53.70%
Updated:November 12 2024
huggingface.co

Total runs: 51
Run Growth: -12
Growth Rate: -23.53%
Updated:November 09 2024
huggingface.co

Total runs: 31
Run Growth: 30
Growth Rate: 96.77%
Updated:October 12 2024
huggingface.co

Total runs: 16
Run Growth: 13
Growth Rate: 81.25%
Updated:October 23 2024
huggingface.co

Total runs: 6
Run Growth: -10
Growth Rate: -166.67%
Updated:October 31 2024
huggingface.co

Total runs: 4
Run Growth: 0
Growth Rate: 0.00%
Updated:December 19 2024
huggingface.co

Total runs: 2
Run Growth: -1
Growth Rate: -50.00%
Updated:October 29 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:October 15 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 21 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 22 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 11 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 22 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 27 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 16 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 24 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:November 21 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 29 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 29 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 22 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 22 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:November 27 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 20 2024