Instructions to use mrp/SCT_Distillation_BERT_Mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use mrp/SCT_Distillation_BERT_Mini with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("mrp/SCT_Distillation_BERT_Mini") 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 mrp/SCT_Distillation_BERT_Mini with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mrp/SCT_Distillation_BERT_Mini", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 131 Bytes
a22e55f | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:a9576e4dadfe7f78f071a1c00ba6902cc83ec6ed7e9b590ee974950bd4d54393
size 466248
|