How to use from the
Use from the
Transformers library
# Load model directly
from transformers import AutoTokenizer, LongformerForRelationExtraction

tokenizer = AutoTokenizer.from_pretrained("subham8247/relation-extraction-baseline")
model = LongformerForRelationExtraction.from_pretrained("subham8247/relation-extraction-baseline", device_map="auto")
Quick Links

No model card

Downloads last month
2
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support