Sentence Similarity
sentence-transformers
PyTorch
Safetensors
llama
feature-extraction
text-embeddings-inference
Instructions to use cfli/LLARA-beir with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use cfli/LLARA-beir with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("cfli/LLARA-beir") 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 config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "/
|
| 3 |
"architectures": [
|
| 4 |
"LlamaModel"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "meta-llama/Llama-2-7b-hf",
|
| 3 |
"architectures": [
|
| 4 |
"LlamaModel"
|
| 5 |
],
|