cornell-movie-review-data/rotten_tomatoes
Viewer • Updated • 10.7k • 76.1k • 112
How to use aarath97/my-awesome-adapter with Adapters:
from adapters import AutoAdapterModel
model = AutoAdapterModel.from_pretrained("roberta-base")
model.load_adapter("aarath97/my-awesome-adapter", set_active=True)aarath97/my-awesome-adapter for roberta-base
An adapter for the roberta-base model that was trained on the rotten_tomatoes dataset and includes a prediction head for classification.
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("aarath97/my-awesome-adapter", set_active=True)