Merge branch 'main' of https://huggingface.co/shtoshni/longformer_coreference_ontonotes into main 173bee9
Shubham commited on
How to use shtoshni/longformer_coreference_ontonotes with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="shtoshni/longformer_coreference_ontonotes") # Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("shtoshni/longformer_coreference_ontonotes")
model = AutoModel.from_pretrained("shtoshni/longformer_coreference_ontonotes", device_map="auto")