Instructions to use Sjdan/switch_medium_2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sjdan/switch_medium_2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="Sjdan/switch_medium_2")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForCTC processor = AutoProcessor.from_pretrained("Sjdan/switch_medium_2") model = AutoModelForCTC.from_pretrained("Sjdan/switch_medium_2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download vocab.json from Sjdan/switch_medium_2: direct link, hf CLI and curl.
- Browser
- Download file 265 Bytes
-
https://huggingface.co/Sjdan/switch_medium_2/resolve/main/vocab.json
- Command line
-
hf download hf://Sjdan/switch_medium_2/vocab.json
-
curl -L -o vocab.json https://huggingface.co/Sjdan/switch_medium_2/resolve/main/vocab.json
265 Bytes
| { | |
| "[PAD]": 23, | |
| "[UNK]": 22, | |
| "a": 2, | |
| "b": 9, | |
| "c": 18, | |
| "d": 0, | |
| "e": 8, | |
| "f": 15, | |
| "g": 17, | |
| "h": 16, | |
| "i": 10, | |
| "k": 14, | |
| "l": 12, | |
| "m": 21, | |
| "n": 6, | |
| "o": 11, | |
| "p": 19, | |
| "r": 20, | |
| "s": 3, | |
| "t": 13, | |
| "u": 5, | |
| "w": 1, | |
| "y": 4, | |
| "|": 7 | |
| } | |