theatticusproject/cuad-qa
Updated • 1.81k • 67
How to use alex-apostolo/legal-roberta-base-cuad with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="alex-apostolo/legal-roberta-base-cuad") # Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("alex-apostolo/legal-roberta-base-cuad")
model = AutoModelForQuestionAnswering.from_pretrained("alex-apostolo/legal-roberta-base-cuad", device_map="auto")This model is a fine-tuned version of saibo/legal-roberta-base on the cuad 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.0393 | 1.0 | 51295 | 0.0261 |
| 0.0234 | 2.0 | 102590 | 0.0254 |
| 0.0234 | 3.0 | 153885 | 0.0260 |