Initial commit c7392f2
KennethEnevoldsen_grundtvig commited on
How to use KennethEnevoldsen/dfm-sentence-encoder-large with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="KennethEnevoldsen/dfm-sentence-encoder-large") # Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("KennethEnevoldsen/dfm-sentence-encoder-large")
model = AutoModel.from_pretrained("KennethEnevoldsen/dfm-sentence-encoder-large")