Instructions to use patrickvonplaten/wav2vec2-base-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use patrickvonplaten/wav2vec2-base-v2 with Transformers:
# Load model directly from transformers import AutoProcessor, AutoModelForPreTraining processor = AutoProcessor.from_pretrained("patrickvonplaten/wav2vec2-base-v2") model = AutoModelForPreTraining.from_pretrained("patrickvonplaten/wav2vec2-base-v2") - Notebooks
- Google Colab
- Kaggle
About train Wav2Vec2-PreTraining
#3
by huutuongtu - opened
Hello @patrickvonplaten , I am training wav2vec2 with my own unlabeled datasets (about 300h) following this code: https://github.com/huggingface/transformers/tree/main/examples/pytorch/speech-pretraining
My settings:
max_train_steps = 120000
num_warmup_steps= 32000
lr = 0.001
batch_size = 2
I don't know when I train, contrastive loss and grad_norm quickly decrease and equal zero (in about 400-500 steps). Do you have any idea for fix this? Thank you