Instructions to use hf-tiny-model-private/tiny-random-Speech2TextForConditionalGeneration 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-Speech2TextForConditionalGeneration with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="hf-tiny-model-private/tiny-random-Speech2TextForConditionalGeneration")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("hf-tiny-model-private/tiny-random-Speech2TextForConditionalGeneration") model = AutoModelForSpeechSeq2Seq.from_pretrained("hf-tiny-model-private/tiny-random-Speech2TextForConditionalGeneration", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from hf-tiny-model-private/tiny-random-Speech2TextForConditionalGeneration: direct link, hf CLI and curl.
- Browser
- Download file 557 Bytes
-
https://huggingface.co/hf-tiny-model-private/tiny-random-Speech2TextForConditionalGeneration/resolve/5a64e5dfbd4a154498c810e4d0f97252f4739fce/tokenizer_config.json
- Command line
-
hf download hf://hf-tiny-model-private/tiny-random-Speech2TextForConditionalGeneration@5a64e5dfbd4a154498c810e4d0f97252f4739fce/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/hf-tiny-model-private/tiny-random-Speech2TextForConditionalGeneration/resolve/5a64e5dfbd4a154498c810e4d0f97252f4739fce/tokenizer_config.json
557 Bytes
| { | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": true, | |
| "do_lower_case": true, | |
| "do_upper_case": false, | |
| "eos_token": "</s>", | |
| "lang_codes": null, | |
| "model_max_length": 20, | |
| "pad_token": "<pad>", | |
| "sp_model_kwargs": {}, | |
| "special_tokens_map_file": "/home/suraj/.cache/huggingface/transformers/f39f1499e9c4d2b3e803e3cad8a31c4cf3e626e1c69197d4cd6921e5c07007f9.9d6cd81ef646692fb1c169a880161ea1cb95f49694f220aced9b704b457e51dd", | |
| "tgt_lang": null, | |
| "tokenizer_class": "Speech2TextTokenizer", | |
| "tokenizer_file": null, | |
| "unk_token": "<unk>" | |
| } | |