Sentence Similarity
sentence-transformers
Safetensors
Danish
Swedish
Norwegian
llama
feature-extraction
text-embedding
embeddings
information-retrieval
beir
text-classification
text-clustering
llm2vec
custom_code
text-embeddings-inference
Instructions to use jealk/TTC-L2V-supervised-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use jealk/TTC-L2V-supervised-2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("jealk/TTC-L2V-supervised-2", trust_remote_code=True) sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Trim README
Browse files
README.md
CHANGED
|
@@ -47,10 +47,9 @@ Models Are Secretly Powerful Text Encoders**.
|
|
| 47 |
|
| 48 |
### Usage
|
| 49 |
|
| 50 |
-
This is a [sentence-transformers](https://www.sbert.net/) model
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
bidirectional encoder and the LLM2Vec instruction-aware mean pooling are
|
| 54 |
provided by small custom modules in this repo, loaded via `trust_remote_code`.
|
| 55 |
|
| 56 |
```bash
|
|
@@ -117,6 +116,5 @@ Approximate memory footprint: **bfloat16 ≈ 14 GB**, **8-bit ≈ 8 GB**,
|
|
| 117 |
|
| 118 |
### Credits
|
| 119 |
|
| 120 |
-
Approach from **LLM2Vec** (McGill-NLP).
|
| 121 |
-
|
| 122 |
-
https://huggingface.co/McGill-NLP/LLM2Vec-Meta-Llama-3-8B-Instruct-mntp-supervised.
|
|
|
|
| 47 |
|
| 48 |
### Usage
|
| 49 |
|
| 50 |
+
This is a [sentence-transformers](https://www.sbert.net/) model — it loads
|
| 51 |
+
directly and needs no packages beyond `sentence-transformers`. The
|
| 52 |
+
bidirectional Llama encoder and the LLM2Vec instruction-aware mean pooling are
|
|
|
|
| 53 |
provided by small custom modules in this repo, loaded via `trust_remote_code`.
|
| 54 |
|
| 55 |
```bash
|
|
|
|
| 116 |
|
| 117 |
### Credits
|
| 118 |
|
| 119 |
+
Approach from **LLM2Vec** (McGill-NLP). Related model:
|
| 120 |
+
https://huggingface.co/McGill-NLP/LLM2Vec-Meta-Llama-3-8B-Instruct-mntp-supervised
|
|
|