Downloads · 30 days
3
19% of all-time downloads
AdapterHub/xlm-roberta-base-lora-lm-amazon-polarity
xlm-roberta-base-lora-lm-amazon-polarity is a machine learning model from AdapterHub. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for adapter-transformers.
An adapter for the google-t5/t5-base model that was trained on the amazonpolarity dataset and includes a prediction head for seq2seq lm.
Downloads · 30 days
3
19% of all-time downloads
All-time downloads
16
Public
Repo size
102 MB
Likes
0
Public
Click a slice to open those files.
.bin102 MB · 100%
From the Hugging Face model README
lenglaender/xlm-roberta-base-lora-lm-amazon-polarity for google-t5/t5-baseAn adapter for the google-t5/t5-base model that was trained on the amazon_polarity dataset and includes a prediction head for seq2seq lm.
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("google-t5/t5-base")
adapter_name = model.load_adapter("AdapterHub/xlm-roberta-base-lora-lm-amazon-polarity", source="hf", set_active=True)
LoRA has r=8 and alpha=8