Sentence Similarity
sentence-transformers
PyTorch
Transformers
bert
feature-extraction
text-embeddings-inference
Instructions to use KennethEnevoldsen/dfm-sentence-encoder-large-exp2-no-lang-align with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use KennethEnevoldsen/dfm-sentence-encoder-large-exp2-no-lang-align with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("KennethEnevoldsen/dfm-sentence-encoder-large-exp2-no-lang-align") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use KennethEnevoldsen/dfm-sentence-encoder-large-exp2-no-lang-align with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("KennethEnevoldsen/dfm-sentence-encoder-large-exp2-no-lang-align") model = AutoModel.from_pretrained("KennethEnevoldsen/dfm-sentence-encoder-large-exp2-no-lang-align", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from KennethEnevoldsen/dfm-sentence-encoder-large-exp2-no-lang-align: direct link, hf CLI and curl.
- Browser
- Download file 1.42 GB
-
https://huggingface.co/KennethEnevoldsen/dfm-sentence-encoder-large-exp2-no-lang-align/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://KennethEnevoldsen/dfm-sentence-encoder-large-exp2-no-lang-align/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/KennethEnevoldsen/dfm-sentence-encoder-large-exp2-no-lang-align/resolve/main/pytorch_model.bin
1.42 GB
- Xet hash:
- 1ce6949eb1b329d5288d10f5dd1f48f119f8f439ae528bc165cd656b064b67ca
- Size of remote file:
- 1.42 GB
- SHA256:
- 26a8b697937c74ce6074216f9f2048b0b79f4c74c0256816e4714f4f93762a29
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.