rajpurkar/squad
Viewer • Updated • 98.2k • 158k • 363
How to use Kiran2004/Roberta_QCA_Squad with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="Kiran2004/Roberta_QCA_Squad") # Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("Kiran2004/Roberta_QCA_Squad")
model = AutoModelForQuestionAnswering.from_pretrained("Kiran2004/Roberta_QCA_Squad")This model is a fine-tuned version of deepset/roberta-base-squad2 on an squad dataset.It's been trained on question-answer pairs, including unanswerable questions, for the task of Question Answering for 6 Epochs. It achieves the following results after training:
The model's performance can be evaluated using various metrics such as Accuracy, Recall, Precision, F1 score.
from transformers import pipeline
model_name = "Kiran2004/Roberta_QCA_Squad"
question_answerer = pipeline("question-answering", model = model_name)
question = "How many programming languages does BLOOM support?"
context = "BLOOM has 176 billion parameters and can generate text in 46 languages natural languages and 13 programming languages."
question_answerer(question=question, context=context)
The following hyperparameters were used during training:
| Train Loss | Validation Loss | Epoch |
|---|---|---|
| 0.5774 | 0.4305 | 0 |
| 0.3089 | 0.4597 | 1 |
| 0.2268 | 0.4541 | 2 |
| 0.1852 | 0.4718 | 3 |
| 0.1618 | 0.4821 | 4 |
| 0.1434 | 0.4821 | 5 |