Run this model with HF Jobs
Run mbartolo/electra-large-synqa on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/mbartolo/electra-large-synqa. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/mbartolo/electra-large-synqa on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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
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
- Downloads last month
- 78
Datasets used to train mbartolo/electra-large-synqa
UCLNLP/adversarial_qa
mbartolo/synQA
Papers for mbartolo/electra-large-synqa
Improving Question Answering Model Robustness with Synthetic Adversarial Data Generation
Beat the AI: Investigating Adversarial Human Annotation for Reading Comprehension
Evaluation results
- Exact Match on squadvalidation set self-reported89.416
- F1 on squadvalidation set self-reported94.785