Downloads · 30 days
35
0% of all-time downloads
consciousAI/question-answering-roberta-base-s
question-answering-roberta-base-s is a question answering model from consciousAI. Use it when the input is a question plus a passage. It is set up for transformers. The card lists the license as apache-2.0.
The model is intended to be used for Q&A task, given the question & context, the model would attempt to infer the answer text, answer span & confidence score.<br Model is encoder-only (roberta-base) with QuestionAnswe…
Downloads · 30 days
35
0% of all-time downloads
All-time downloads
36.3K
Public
Repo size
7.4 GB
Likes
3
Public
Click a slice to open those files.
.bin496 MB · 99%
From the Hugging Face model README
The model is intended to be used for Q&A task, given the question & context, the model would attempt to infer the answer text, answer span & confidence score.<br> Model is encoder-only (roberta-base) with QuestionAnswering LM Head, fine-tuned on SQUADx dataset with exact_match: 86.14 & f1: 92.330 performance scores.
Live Demo: Question Answering Encoders vs Generative
Please follow this link for Encoder based Question Answering V2 <br>Please follow this link for Generative Question Answering
Example code:
from transformers import pipeline
model_checkpoint = "consciousAI/question-answering-roberta-base-s"
context = """
🤗 Transformers is backed by the three most popular deep learning libraries — Jax, PyTorch and TensorFlow — with a seamless integration
between them. It's straightforward to train your models with one before loading them for inference with the other.
"""
question = "Which deep learning libraries back 🤗 Transformers?"
question_answerer = pipeline("question-answering", model=model_checkpoint)
question_answerer(question=question, context=context)
SQUAD Split
Preprocessing:
Metrics:
Custom Training Loop: The following hyperparameters were used during training:
| Epoch | F1 | Exact Match |
|---|---|---|
| 1.0 | 91.3085 | 84.5412 |
| 2.0 | 92.3304 | 86.1400 |