Instructions to use google/switch-large-128 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/switch-large-128 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("google/switch-large-128") model = AutoModelForSeq2SeqLM.from_pretrained("google/switch-large-128", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download model.safetensors.index.json from google/switch-large-128: direct link, hf CLI and curl.
- Browser
- Download file 683 kB
-
https://huggingface.co/google/switch-large-128/resolve/main/model.safetensors.index.json
- Command line
-
hf download hf://google/switch-large-128/model.safetensors.index.json
-
curl -L -o model.safetensors.index.json https://huggingface.co/google/switch-large-128/resolve/main/model.safetensors.index.json
683 kB
File too large to display, you can check the raw version instead.