Sentence Similarity
sentence-transformers
Safetensors
Transformers
English
Ancient Greek (to 1453)
hlm
feature-extraction
semantic-search
character-transformer
hierarchical-transformer
custom_code
Instructions to use kevinkrahn/shlm-grc-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use kevinkrahn/shlm-grc-en with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("kevinkrahn/shlm-grc-en", trust_remote_code=True) 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 kevinkrahn/shlm-grc-en with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("kevinkrahn/shlm-grc-en", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!