Instructions to use patrickvonplaten/data2vec-audio-base-10m-4-gram with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use patrickvonplaten/data2vec-audio-base-10m-4-gram with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="patrickvonplaten/data2vec-audio-base-10m-4-gram")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCTC tokenizer = AutoTokenizer.from_pretrained("patrickvonplaten/data2vec-audio-base-10m-4-gram") model = AutoModelForCTC.from_pretrained("patrickvonplaten/data2vec-audio-base-10m-4-gram", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Patrick von Platen commited on
Commit ·
26f757b
1
Parent(s): 5c86457
uP
Browse files- preprocessor_config.json +1 -1
preprocessor_config.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
"feature_size": 1,
|
| 5 |
"padding_side": "right",
|
| 6 |
"padding_value": 0.0,
|
| 7 |
-
"processor_class": "
|
| 8 |
"return_attention_mask": true,
|
| 9 |
"sampling_rate": 16000
|
| 10 |
}
|
|
|
|
| 4 |
"feature_size": 1,
|
| 5 |
"padding_side": "right",
|
| 6 |
"padding_value": 0.0,
|
| 7 |
+
"processor_class": "Wav2Vec2ProcessorWithLM",
|
| 8 |
"return_attention_mask": true,
|
| 9 |
"sampling_rate": 16000
|
| 10 |
}
|