Instructions to use KBLab/roberta-base-swedish-cased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KBLab/roberta-base-swedish-cased with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="KBLab/roberta-base-swedish-cased")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("KBLab/roberta-base-swedish-cased") model = AutoModelForMaskedLM.from_pretrained("KBLab/roberta-base-swedish-cased", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
576eba5 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:69c4fad977b9159f0c8da334004076e0f3a8e50f33762e8dd991456f49471188
size 504198571
|