Sentence Similarity
sentence-transformers
PyTorch
Transformers
mpnet
feature-extraction
text-embeddings-inference
Instructions to use AI-Growth-Lab/PatentSBERTa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use AI-Growth-Lab/PatentSBERTa with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("AI-Growth-Lab/PatentSBERTa") 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 AI-Growth-Lab/PatentSBERTa with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("AI-Growth-Lab/PatentSBERTa") model = AutoModel.from_pretrained("AI-Growth-Lab/PatentSBERTa") - Inference
- Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 22f41e7e9a9f797efa22d02d58145e6fe1ea5a17fe216cca364fd8c3355cc676
- Size of remote file:
- 438 MB
- SHA256:
- 930ede681b57524638b5934abc9098988431b387c0e2674ce1859a4e427fd0a5
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.