Downloads · 30 days
5
17% of all-time downloads
AdapterHub/facebook-bart-large_qa_squad2_lohfink-rossi-leaveout
facebook-bart-large_qa_squad2_lohfink-rossi-leaveout is a question answering model from AdapterHub. Use it when the input is a question plus a passage. It is set up for adapter-transformers. The card lists the license as apache-2.0.
Note: This adapter was not trained by the AdapterHub team, but by these author(s): Till Lohfink & Maria Rossi (Contributed equally.). See author details below.
Downloads · 30 days
5
17% of all-time downloads
All-time downloads
30
Public
Repo size
17 MB
Likes
0
Public
Click a slice to open those files.
.bin17 MB · 100%
From the Hugging Face model README
facebook-bart-large_qa_squad2_lohfink-rossi-leaveout for facebook/bart-largeNote: This adapter was not trained by the AdapterHub team, but by these author(s): Till Lohfink & Maria Rossi (Contributed equally.). See author details below.
Adapter for bart-large using a custom architecture (Lohfink-Rossi-Leaveout) trained on the SQuAD 2.0 dataset for 15 epochs with a Cosine with Restarts learning rate scheduler ans learning rate 0.001.
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("facebook/bart-large")
adapter_name = model.load_adapter("AdapterHub/facebook-bart-large_qa_squad2_lohfink-rossi-leaveout")
model.set_active_adapters(adapter_name)
This adapter has been auto-imported from https://github.com/Adapter-Hub/Hub/blob/master/adapters/lohfink-rossi/facebook-bart-large_qa_squad2_lohfink-rossi-leaveout.yaml.