Instructions to use alphaedge-ai/whisper-small-pus-32768 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alphaedge-ai/whisper-small-pus-32768 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="alphaedge-ai/whisper-small-pus-32768")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("alphaedge-ai/whisper-small-pus-32768") model = AutoModelForSpeechSeq2Seq.from_pretrained("alphaedge-ai/whisper-small-pus-32768", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from alphaedge-ai/whisper-small-pus-32768: direct link, hf CLI and curl.
- Browser
- Download file 3.95 kB
-
https://huggingface.co/alphaedge-ai/whisper-small-pus-32768/resolve/main/generation_config.json
- Command line
-
hf download hf://alphaedge-ai/whisper-small-pus-32768/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/alphaedge-ai/whisper-small-pus-32768/resolve/main/generation_config.json
3.95 kB
| { | |
| "alignment_heads": [ | |
| [ | |
| 5, | |
| 3 | |
| ], | |
| [ | |
| 5, | |
| 9 | |
| ], | |
| [ | |
| 8, | |
| 0 | |
| ], | |
| [ | |
| 8, | |
| 4 | |
| ], | |
| [ | |
| 8, | |
| 7 | |
| ], | |
| [ | |
| 8, | |
| 8 | |
| ], | |
| [ | |
| 9, | |
| 0 | |
| ], | |
| [ | |
| 9, | |
| 7 | |
| ], | |
| [ | |
| 9, | |
| 9 | |
| ], | |
| [ | |
| 10, | |
| 5 | |
| ] | |
| ], | |
| "begin_suppress_tokens": [ | |
| 169, | |
| 28023 | |
| ], | |
| "bos_token_id": 28023, | |
| "decoder_start_token_id": 28024, | |
| "eos_token_id": 28023, | |
| "forced_decoder_ids": [ | |
| [ | |
| 2, | |
| 28125 | |
| ] | |
| ], | |
| "is_multilingual": true, | |
| "lang_to_id": { | |
| "<|af|>": 28093, | |
| "<|am|>": 28100, | |
| "<|ar|>": 28038, | |
| "<|as|>": 28116, | |
| "<|az|>": 28070, | |
| "<|ba|>": 28121, | |
| "<|be|>": 28096, | |
| "<|bg|>": 28058, | |
| "<|bn|>": 28068, | |
| "<|bo|>": 28113, | |
| "<|br|>": 28075, | |
| "<|bs|>": 28081, | |
| "<|ca|>": 28036, | |
| "<|cs|>": 28049, | |
| "<|cy|>": 28063, | |
| "<|da|>": 28051, | |
| "<|de|>": 28027, | |
| "<|el|>": 28047, | |
| "<|en|>": 28025, | |
| "<|es|>": 28028, | |
| "<|et|>": 28073, | |
| "<|eu|>": 28076, | |
| "<|fa|>": 28066, | |
| "<|fi|>": 28043, | |
| "<|fo|>": 28104, | |
| "<|fr|>": 28031, | |
| "<|gl|>": 28085, | |
| "<|gu|>": 28099, | |
| "<|haw|>": 28118, | |
| "<|ha|>": 28120, | |
| "<|he|>": 28045, | |
| "<|hi|>": 28042, | |
| "<|hr|>": 28057, | |
| "<|ht|>": 28105, | |
| "<|hu|>": 28052, | |
| "<|hy|>": 28078, | |
| "<|id|>": 28041, | |
| "<|is|>": 28077, | |
| "<|it|>": 28040, | |
| "<|ja|>": 28032, | |
| "<|jw|>": 28122, | |
| "<|ka|>": 28095, | |
| "<|kk|>": 28082, | |
| "<|km|>": 28089, | |
| "<|kn|>": 28072, | |
| "<|ko|>": 28030, | |
| "<|la|>": 28060, | |
| "<|lb|>": 28111, | |
| "<|ln|>": 28119, | |
| "<|lo|>": 28102, | |
| "<|lt|>": 28059, | |
| "<|lv|>": 28067, | |
| "<|mg|>": 28115, | |
| "<|mi|>": 28061, | |
| "<|mk|>": 28074, | |
| "<|ml|>": 28062, | |
| "<|mn|>": 28080, | |
| "<|mr|>": 28086, | |
| "<|ms|>": 28048, | |
| "<|mt|>": 28109, | |
| "<|my|>": 28112, | |
| "<|ne|>": 28079, | |
| "<|nl|>": 28037, | |
| "<|nn|>": 28108, | |
| "<|no|>": 28054, | |
| "<|oc|>": 28094, | |
| "<|pa|>": 28087, | |
| "<|pl|>": 28035, | |
| "<|ps|>": 28106, | |
| "<|pt|>": 28033, | |
| "<|ro|>": 28050, | |
| "<|ru|>": 28029, | |
| "<|sa|>": 28110, | |
| "<|sd|>": 28098, | |
| "<|si|>": 28088, | |
| "<|sk|>": 28064, | |
| "<|sl|>": 28071, | |
| "<|sn|>": 28090, | |
| "<|so|>": 28092, | |
| "<|sq|>": 28083, | |
| "<|sr|>": 28069, | |
| "<|su|>": 28123, | |
| "<|sv|>": 28039, | |
| "<|sw|>": 28084, | |
| "<|ta|>": 28053, | |
| "<|te|>": 28065, | |
| "<|tg|>": 28097, | |
| "<|th|>": 28055, | |
| "<|tk|>": 28107, | |
| "<|tl|>": 28114, | |
| "<|tr|>": 28034, | |
| "<|tt|>": 28117, | |
| "<|uk|>": 28046, | |
| "<|ur|>": 28056, | |
| "<|uz|>": 28103, | |
| "<|vi|>": 28044, | |
| "<|yi|>": 28101, | |
| "<|yo|>": 28091, | |
| "<|zh|>": 28026 | |
| }, | |
| "max_initial_timestamp_index": 50, | |
| "max_length": 448, | |
| "no_timestamps_token_id": 28129, | |
| "pad_token_id": 28023, | |
| "prev_sot_token_id": 50361, | |
| "return_timestamps": false, | |
| "suppress_tokens": [ | |
| 1, | |
| 2, | |
| 7, | |
| 8, | |
| 9, | |
| 10, | |
| 14, | |
| 25, | |
| 26, | |
| 27, | |
| 28, | |
| 29, | |
| 31, | |
| 58, | |
| 59, | |
| 60, | |
| 61, | |
| 62, | |
| 63, | |
| 90, | |
| 91, | |
| 92, | |
| 93, | |
| 307, | |
| 448, | |
| 467, | |
| 485, | |
| 806, | |
| 826, | |
| 835, | |
| 851, | |
| 855, | |
| 1254, | |
| 1713, | |
| 1826, | |
| 2252, | |
| 2403, | |
| 2953, | |
| 2960, | |
| 2970, | |
| 3203, | |
| 3753, | |
| 4141, | |
| 5704, | |
| 5749, | |
| 6230, | |
| 7778, | |
| 8514, | |
| 8846, | |
| 9516, | |
| 9586, | |
| 9781, | |
| 9940, | |
| 11621, | |
| 11829, | |
| 12429, | |
| 12455, | |
| 13483, | |
| 13825, | |
| 14473, | |
| 15343, | |
| 17665, | |
| 17800, | |
| 18737, | |
| 19308, | |
| 20697, | |
| 20765, | |
| 26954, | |
| 27867, | |
| 28022, | |
| 28024, | |
| 28124, | |
| 28125, | |
| 28126, | |
| 28127, | |
| 28128 | |
| ], | |
| "task_to_id": { | |
| "transcribe": 28125, | |
| "translate": 28124 | |
| }, | |
| "transformers_version": "4.31.0.dev0" | |
| } |