LegalLMs
Collection
XLM-RoBERTa models with continued pretraining on the MultiLegalPile • 37 items • Updated • 5
How to use joelniklaus/legal-hungarian-roberta-base with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="joelniklaus/legal-hungarian-roberta-base") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("joelniklaus/legal-hungarian-roberta-base")
model = AutoModelForMaskedLM.from_pretrained("joelniklaus/legal-hungarian-roberta-base", device_map="auto")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.8627 | 4.0 | 50000 | 0.2960 |
| 0.761 | 8.0 | 100000 | 0.2589 |
| 0.7331 | 12.0 | 150000 | 0.2406 |
| 0.7388 | 16.0 | 200000 | 0.2387 |