Instructions to use mbartolo/electra-large-synqa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mbartolo/electra-large-synqa with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="mbartolo/electra-large-synqa")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("mbartolo/electra-large-synqa") model = AutoModelForQuestionAnswering.from_pretrained("mbartolo/electra-large-synqa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from mbartolo/electra-large-synqa: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/mbartolo/electra-large-synqa/resolve/refs%2Fpr%2F5/README.md
- Command line
-
hf download hf://mbartolo/electra-large-synqa@refs/pr/5/README.md
-
curl -L -o README.md https://huggingface.co/mbartolo/electra-large-synqa/resolve/refs%2Fpr%2F5/README.md
1.3 kB
metadata
language:
- en
license: apache-2.0
tags:
- question-answering
datasets:
- UCLNLP/adversarial_qa
- mbartolo/synQA
- squad
metrics:
- exact_match
- f1
model-index:
- name: mbartolo/electra-large-synqa
results:
- task:
type: question-answering
name: Question Answering
dataset:
name: squad
type: squad
config: plain_text
split: validation
metrics:
- type: exact_match
value: 89.4158
name: Exact Match
verified: true
- type: f1
value: 94.7851
name: F1
verified: true
Model Overview
This is an ELECTRA-Large QA Model trained from https://huggingface.co/google/electra-large-discriminator in two stages. First, it is trained on synthetic adversarial data generated using a BART-Large question generator, and then it is trained on SQuAD and AdversarialQA (https://arxiv.org/abs/2002.00293) in a second stage of fine-tuning.
Data
Training data: SQuAD + AdversarialQA Evaluation data: SQuAD + AdversarialQA
Training Process
Approx. 1 training epoch on the synthetic data and 2 training epochs on the manually-curated data.
Additional Information
Please refer to https://arxiv.org/abs/2104.08678 for full details. You can interact with the model on Dynabench here: https://dynabench.org/models/109