theatticusproject/cuad-qa
Updated • 1.92k • 67
How to use alex-apostolo/legal-bert-small-cuad with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="alex-apostolo/legal-bert-small-cuad") # Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("alex-apostolo/legal-bert-small-cuad")
model = AutoModelForQuestionAnswering.from_pretrained("alex-apostolo/legal-bert-small-cuad", device_map="auto")This model is a fine-tuned version of nlpaueb/legal-bert-small-uncased 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.0565 | 1.0 | 11081 | 0.0411 |
| 0.0489 | 2.0 | 22162 | 0.0364 |
| 0.0409 | 3.0 | 33243 | 0.0371 |