Instructions to use hf-tiny-model-private/tiny-random-Speech2TextModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-tiny-model-private/tiny-random-Speech2TextModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="hf-tiny-model-private/tiny-random-Speech2TextModel")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("hf-tiny-model-private/tiny-random-Speech2TextModel") model = AutoModel.from_pretrained("hf-tiny-model-private/tiny-random-Speech2TextModel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from hf-tiny-model-private/tiny-random-Speech2TextModel: direct link, hf CLI and curl.
- Browser
- Download file 301 Bytes
-
https://huggingface.co/hf-tiny-model-private/tiny-random-Speech2TextModel/resolve/b83bb0f36db0141bd352626e4e1646bdf86dd3b9/preprocessor_config.json
- Command line
-
hf download hf://hf-tiny-model-private/tiny-random-Speech2TextModel@b83bb0f36db0141bd352626e4e1646bdf86dd3b9/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/hf-tiny-model-private/tiny-random-Speech2TextModel/resolve/b83bb0f36db0141bd352626e4e1646bdf86dd3b9/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 | |
| } | |