Instructions to use google/switch-base-32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/switch-base-32 with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("google/switch-base-32") model = AutoModelForMultimodalLM.from_pretrained("google/switch-base-32") - Notebooks
- Google Colab
- Kaggle
How to solve that issue?
#6
by DawidBubernak - opened
ImportError: cannot import name 'SwitchTransformersForConditionalGeneration' from 'transformers'