Instructions to use hf-internal-testing/tiny-random-Speech2TextForConditionalGeneration with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-Speech2TextForConditionalGeneration with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="hf-internal-testing/tiny-random-Speech2TextForConditionalGeneration")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("hf-internal-testing/tiny-random-Speech2TextForConditionalGeneration") model = AutoModelForSpeechSeq2Seq.from_pretrained("hf-internal-testing/tiny-random-Speech2TextForConditionalGeneration", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from hf-internal-testing/tiny-random-Speech2TextForConditionalGeneration: direct link, hf CLI and curl.
- Browser
- Download file 301 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-random-Speech2TextForConditionalGeneration/resolve/1da80293ec78762e136cf6dd64b652693f9ab364/preprocessor_config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-Speech2TextForConditionalGeneration@1da80293ec78762e136cf6dd64b652693f9ab364/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/hf-internal-testing/tiny-random-Speech2TextForConditionalGeneration/resolve/1da80293ec78762e136cf6dd64b652693f9ab364/preprocessor_config.json
301 Bytes
| { | |
| "do_ceptral_normalize": true, | |
| "feature_extractor_type": "Speech2TextFeatureExtractor", | |
| "feature_size": 24, | |
| "normalize_means": true, | |
| "normalize_vars": true, | |
| "num_mel_bins": 24, | |
| "padding_side": "right", | |
| "padding_value": 0.0, | |
| "return_attention_mask": true, | |
| "sampling_rate": 16000 | |
| } | |