Automatic Speech Recognition
Transformers
PyTorch
TensorFlow
Safetensors
French
English
speech_to_text
audio
speech-translation
Instructions to use facebook/s2t-small-covost2-fr-en-st with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/s2t-small-covost2-fr-en-st with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="facebook/s2t-small-covost2-fr-en-st")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("facebook/s2t-small-covost2-fr-en-st") model = AutoModelForMultimodalLM.from_pretrained("facebook/s2t-small-covost2-fr-en-st") - Notebooks
- Google Colab
- Kaggle
Adding generation config file(s)
Browse files- generation_config.json +11 -0
generation_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"decoder_start_token_id": 2,
|
| 5 |
+
"early_stopping": true,
|
| 6 |
+
"eos_token_id": 2,
|
| 7 |
+
"max_length": 200,
|
| 8 |
+
"num_beams": 5,
|
| 9 |
+
"pad_token_id": 1,
|
| 10 |
+
"transformers_version": "4.27.0.dev0"
|
| 11 |
+
}
|