How to use holygrimm/Res-BERT with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("undefined") model.load_adapter("holygrimm/Res-BERT", set_active=True)
How to use holygrimm/Res-BERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="holygrimm/Res-BERT")
# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("holygrimm/Res-BERT") model = AutoModelForTokenClassification.from_pretrained("holygrimm/Res-BERT")
The community tab is the place to discuss and collaborate with the HF community!