Instructions to use allenai/specter2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use allenai/specter2 with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("allenai/specter_plus_plus") model.load_adapter("allenai/specter2", set_active=True) - Notebooks
- Google Colab
- Kaggle
call tokenizer directly
#1
by johngiorgi - opened
The instructions call the tokenizer from self.tokenizer. Looks like this is some kind of copy/paste error. Simple fix is to call the tokenizer that was initialized directly