rajpurkar/squad
Viewer • Updated • 98.2k • 177k • 470
Run AdapterHub/bert-base-uncased_qa_squad1_pfeiffer 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:
Use HF Jobs to fine-tune https://huggingface.co/AdapterHub/bert-base-uncased_qa_squad1_pfeiffer. 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.
Use HF Jobs to run batch inference with https://huggingface.co/AdapterHub/bert-base-uncased_qa_squad1_pfeiffer 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.
How to use AdapterHub/bert-base-uncased_qa_squad1_pfeiffer with Adapters:
from adapters import AutoAdapterModel
model = AutoAdapterModel.from_pretrained("bert-base-uncased")
model.load_adapter("AdapterHub/bert-base-uncased_qa_squad1_pfeiffer", set_active=True)bert-base-uncased_qa_squad1_pfeiffer for bert-base-uncased
Adapter for bert-base in Pfeiffer architecture trained on the SQuAD 1.1 dataset for 15 epochs with early stopping and a learning rate of 3e-4.
This adapter was created for usage with the Adapters library.
First, install adapters:
pip install -U adapters
Now, the adapter can be loaded and activated like this:
from adapters import AutoAdapterModel
model = AutoAdapterModel.from_pretrained("bert-base-uncased")
adapter_name = model.load_adapter("AdapterHub/bert-base-uncased_qa_squad1_pfeiffer")
model.set_active_adapters(adapter_name)
This adapter has been auto-imported from https://github.com/Adapter-Hub/Hub/blob/master/adapters/ukp/bert-base-uncased_qa_squad1_pfeiffer.yaml.