Instructions to use hf-internal-testing/tiny-random-SpeechT5ForSpeechToText with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-SpeechT5ForSpeechToText 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-SpeechT5ForSpeechToText")# Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("hf-internal-testing/tiny-random-SpeechT5ForSpeechToText") model = AutoModelForSpeechSeq2Seq.from_pretrained("hf-internal-testing/tiny-random-SpeechT5ForSpeechToText", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "bos_token": "<s>", | |
| "eos_token": "</s>", | |
| "model_max_length": 450, | |
| "pad_token": "<pad>", | |
| "processor_class": "SpeechT5Processor", | |
| "sp_model_kwargs": {}, | |
| "special_tokens_map_file": "/home/runner/.cache/huggingface/hub/models--microsoft--speecht5_asr/snapshots/c5ef64c71905caeccde0e4462ef3f9077224c524/special_tokens_map.json", | |
| "tokenizer_class": "SpeechT5Tokenizer", | |
| "unk_token": "<unk>" | |
| } | |