Run this model with HF Jobs
Run dragonSwing/viwav2vec2-base-3k 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/dragonSwing/viwav2vec2-base-3k. 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/dragonSwing/viwav2vec2-base-3k 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.
Instructions to use dragonSwing/viwav2vec2-base-3k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dragonSwing/viwav2vec2-base-3k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="dragonSwing/viwav2vec2-base-3k")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForPreTraining processor = AutoProcessor.from_pretrained("dragonSwing/viwav2vec2-base-3k") model = AutoModelForPreTraining.from_pretrained("dragonSwing/viwav2vec2-base-3k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Wav2Vec2 base model trained of 3K hours of Vietnamese speech
The base model is pre-trained on 16kHz sampled speech audio from Vietnamese speech corpus containing 3K hours of spontaneous, reading, and broadcasting speech. When using the model make sure that your speech input is also sampled at 16Khz. Note that this model should be fine-tuned on a downstream task, like Vietnamese Automatic Speech Recognition.
Note: This model does not have a tokenizer as it was pretrained on audio alone. In order to use this model speech recognition, a tokenizer should be created and the model should be fine-tuned on labeled text data. Check out this blog for more in-detail explanation of how to fine-tune the model.
Facebook's Wav2Vec2 blog
Paper
Usage
See this notebook for more information on how to fine-tune the English pre-trained model.
import torch
from transformers import Wav2Vec2Model
model = Wav2Vec2Model.from_pretrained("dragonSwing/viwav2vec2-base-3k")
# Sanity check
inputs = torch.rand([1, 16000])
outputs = model(inputs)
- Downloads last month
- 118