Downloads · 30 days
5
36% of all-time downloads
AdapterHub/roberta-base-sts_b_pfeiffer
roberta-base-sts_b_pfeiffer is a text classification model from AdapterHub. Use it when you need a label for a piece of text. It is set up for adapter-transformers. The card lists the license as apache-2.0.
STS-B adapter (with head) trained using the runglue.py script with an extension that retains the best checkpoint (out of 30 epochs).
Downloads · 30 days
5
36% of all-time downloads
All-time downloads
14
Public
Repo size
6 MB
Likes
0
Public
Click a slice to open those files.
.bin6 MB · 100%
From the Hugging Face model README
roberta-base-sts_b_pfeiffer for roberta-baseSTS-B adapter (with head) trained using the run_glue.py script with an extension that retains the best checkpoint (out of 30 epochs).
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("roberta-base")
adapter_name = model.load_adapter("AdapterHub/roberta-base-sts_b_pfeiffer")
model.set_active_adapters(adapter_name)
@article{pfeiffer2020AdapterHub,
title={AdapterHub: A Framework for Adapting Transformers},
author={Jonas Pfeiffer,
Andreas R\"uckl\'{e},
Clifton Poth,
Aishwarya Kamath,
Ivan Vuli\'{c},
Sebastian Ruder,
Kyunghyun Cho,
Iryna Gurevych},
journal={ArXiv},
year={2020}
}
This adapter has been auto-imported from https://github.com/Adapter-Hub/Hub/blob/master/adapters/ukp/roberta-base-sts_b_pfeiffer.yaml.