--- language: en license: mit tags: - deberta - deberta-v3 datasets: - squad_v2 pipeline_tag: question-answering model-index: - name: navteca/deberta-v3-base-squad2 results: - task: type: question-answering name: Question Answering dataset: name: squad_v2 type: squad_v2 config: squad_v2 split: validation metrics: - type: exact_match value: 88.0876 name: Exact Match verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZWRmMDg2ZjQ4ZjhhOWIzZjRhNTU2ZGFjZGM3NGY5MzBkYzk2MWU2Y2M1ODcxYjcxMTBkOTM0MGYwNzVlMmEwOCIsInZlcnNpb24iOjF9.bQdENVyV5sMVHiBQZX5yp0dSUWnd23-oLG1qdAdoMzGHxP3cq_RBcmhQ7Qpe6MC-UfcAuLedhs7ERAGX1OaaBw - type: f1 value: 91.1623 name: F1 verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZmEyY2RhYzAzNzYwM2ZhNjUyOWZjNzYzZDk0YmU4ZGQwZWZkYTNlYzBkZDdiZGY4YTI3MTI5MGMyZjgzYmI5YyIsInZlcnNpb24iOjF9.T9wVVp4RW76X5tdm0l3WzqtHX6bWuRc-OtIKTtHVPoauzNR4Tt3Q0LeR-_tOsOiTVCEV6A-3np43BQ2Zobk6Cg - task: type: question-answering name: Question Answering dataset: name: squad type: squad config: plain_text split: validation metrics: - type: exact_match value: 89.2366 name: Exact Match verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNjRmNGE5MzQzOGFmMjhmMTc4NDMxYjVmMjRmZTRjYjQyMTNiOTgzNWQ2YTQ5NjFhNjk2ZjdlNDMxNDljM2QwZiIsInZlcnNpb24iOjF9.5_WAX03-LTeIrmMkQQgNZc5Iqo-VH3WJYmK0ydNfa3O7JJymc0aQncbG3AHDT85K5HY5tygS4DKmwQ0U2vajAA - type: f1 value: 95.0569 name: F1 verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMTExMGY3YzcyYjRmZWU0YjU2ZjIzMTViMzk4YzRmNmY1NWMxZGU3MGVlNWE1NmJiZmVjZjRmYjBlZWU4Mjg5MCIsInZlcnNpb24iOjF9.m5PEInPwVxTusAzfl3AUbDFAbeu9Oywb8gVHsOtc5paKe5ePN3VhXeu7YPGufYbLETqiaueRS5t4fulPH2CFAA --- # Deberta v3 large model for QA (SQuAD 2.0) This is the [deberta-v3-large](https://huggingface.co/microsoft/deberta-v3-large) model, fine-tuned using the [SQuAD2.0](https://huggingface.co/datasets/squad_v2) dataset. It's been trained on question-answer pairs, including unanswerable questions, for the task of Question Answering. ## Training Data The models have been trained on the [SQuAD 2.0](https://rajpurkar.github.io/SQuAD-explorer/) dataset. It can be used for question answering task. ## Usage and Performance The trained model can be used like this: ```python from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline # Load model & tokenizer deberta_model = AutoModelForQuestionAnswering.from_pretrained('navteca/deberta-v3-large-squad2') deberta_tokenizer = AutoTokenizer.from_pretrained('navteca/deberta-v3-large-squad2') # Get predictions nlp = pipeline('question-answering', model=deberta_model, tokenizer=deberta_tokenizer) result = nlp({ 'question': 'How many people live in Berlin?', 'context': 'Berlin had a population of 3,520,031 registered inhabitants in an area of 891.82 square kilometers.' }) print(result) #{ # "answer": "3,520,031" # "end": 36, # "score": 0.96186668, # "start": 27, #} ``` ## Author [deepset](http://deepset.ai/)