How to use from the
Use from the
Transformers library
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, BertForFewRelZeroShot

tokenizer = AutoTokenizer.from_pretrained("bstds/fewshot_re_bert", trust_remote_code=True)
model = BertForFewRelZeroShot.from_pretrained("bstds/fewshot_re_bert", trust_remote_code=True, device_map="auto")
Quick Links

No model card

Downloads last month
9
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support