princeton-nlp/datasets-for-simcse
Viewer • Updated • 1M • 569 • 8
How to use perceptiveshawty/compositional-bert-large-uncased with Transformers:
# Load model directly
from transformers import AutoTokenizer, BertForCL
tokenizer = AutoTokenizer.from_pretrained("perceptiveshawty/compositional-bert-large-uncased")
model = BertForCL.from_pretrained("perceptiveshawty/compositional-bert-large-uncased")