Downloads · 30 days
15
28% of all-time downloads
Shobhank-iiitdwd/bert-large-uncased-squad2-QA
bert-large-uncased-squad2-QA is a question answering model from Shobhank-iiitdwd. Use it when the input is a question plus a passage. It is set up for transformers. The card lists the license as cc-by-4.0.
This is a berta-large model, fine-tuned using the SQuAD2.0 dataset for the task of question answering.
Downloads · 30 days
15
28% of all-time downloads
All-time downloads
53
Public
Repo size
5.3 GB
Likes
0
Public
Click a slice to open those files.
.bin1.3 GB · 34%
From the Hugging Face model README
This is a berta-large model, fine-tuned using the SQuAD2.0 dataset for the task of question answering.
Language model: bert-large
Language: English
Downstream-task: Extractive QA
Training data: SQuAD 2.0
Eval data: SQuAD 2.0
from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
model_name = "Shobhank-iiitdwd/bert-large-uncased-squad2-QA"
# a) Get predictions
nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
QA_input = {
'question': 'Why is model conversion important?',
'context': 'The option to convert models between FARM and transformers gives freedom to the user and let people easily switch between frameworks.'
}
res = nlp(QA_input)
# b) Load model & tokenizer
model = AutoModelForQuestionAnswering.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)