LegalLMs
Collection
XLM-RoBERTa models with continued pretraining on the MultiLegalPile • 37 items • Updated • 4
How to use joelniklaus/legal-swedish-roberta-base with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="joelniklaus/legal-swedish-roberta-base") # Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("joelniklaus/legal-swedish-roberta-base")
model = AutoModelForMaskedLM.from_pretrained("joelniklaus/legal-swedish-roberta-base")This model was trained from scratch on an unknown dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.9458 | 2.04 | 50000 | 0.7559 |
| 0.8037 | 4.08 | 100000 | 0.6746 |
| 0.8366 | 7.01 | 150000 | 0.6285 |
| 0.7924 | 9.05 | 200000 | 0.6149 |