Sentence Similarity
sentence-transformers
PyTorch
English
bert
feature-extraction
mteb
custom_code
Eval Results (legacy)
text-embeddings-inference
Instructions to use Hum-Works/lodestone-base-4096-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Hum-Works/lodestone-base-4096-v1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Hum-Works/lodestone-base-4096-v1", 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] - Notebooks
- Google Colab
- Kaggle
Update README
Browse filesAdd in an additional package for setup
README.md
CHANGED
|
@@ -2652,6 +2652,7 @@ Using this model becomes relatively easy when you have [sentence-transformers](h
|
|
| 2652 |
*At the time of publishing, sentence-transformers does not support remote code which is required for flash-attention used by the model. A fork of the sentence-transformers repository that allows remote code execution is provided for convenience. It can be installed using the following command:*
|
| 2653 |
```
|
| 2654 |
pip install git+https://github.com/Hum-Works/sentence-transformers.git
|
|
|
|
| 2655 |
```
|
| 2656 |
|
| 2657 |
Then you can use the model like this:
|
|
|
|
| 2652 |
*At the time of publishing, sentence-transformers does not support remote code which is required for flash-attention used by the model. A fork of the sentence-transformers repository that allows remote code execution is provided for convenience. It can be installed using the following command:*
|
| 2653 |
```
|
| 2654 |
pip install git+https://github.com/Hum-Works/sentence-transformers.git
|
| 2655 |
+
pip install einops
|
| 2656 |
```
|
| 2657 |
|
| 2658 |
Then you can use the model like this:
|