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
File size: 265 Bytes
e88ff10 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | {
"[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
}
|