Instructions to use ZurichNLP/swissbert-xlm-vocab with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ZurichNLP/swissbert-xlm-vocab with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="ZurichNLP/swissbert-xlm-vocab")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("ZurichNLP/swissbert-xlm-vocab") model = AutoModelForMaskedLM.from_pretrained("ZurichNLP/swissbert-xlm-vocab") - Notebooks
- Google Colab
- Kaggle
A variant of the SwissBERT model that uses the vocabulary of XLM-R/X-MOD instead of a custom vocabulary.
See the main model for a complete model card.
- Downloads last month
- 28