Instructions to use facebook/wav2vec2-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/wav2vec2-large with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForPreTraining processor = AutoProcessor.from_pretrained("facebook/wav2vec2-large") model = AutoModelForPreTraining.from_pretrained("facebook/wav2vec2-large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Add preprocessor_config.json
`AutoFeatureExtractor.from_pretrained("facebook/wav2vec2-large")` needs this file to work. Currently it throws the following error: `facebook/wav2vec2-large does not appear to have a file named preprocessor_config.json` PS: I'm not sure if `"return_attention_mask"`needs to be set to true or false. (´facebook/wav2vec2-base´ has it set to false, while ´facebook/wav2vec2-large-lv60´ has it set to true)e35e442