initial commit 3c4e52a
Jannis Vamvas commited on
How to use ZurichNLP/unsup-simcse-xlm-roberta-base with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="ZurichNLP/unsup-simcse-xlm-roberta-base") # Load model directly
from transformers import AutoTokenizer, RobertaForCL
tokenizer = AutoTokenizer.from_pretrained("ZurichNLP/unsup-simcse-xlm-roberta-base")
model = RobertaForCL.from_pretrained("ZurichNLP/unsup-simcse-xlm-roberta-base", device_map="auto")