Feature Extraction
sentence-transformers
ONNX
Safetensors
multilingual
bidirectional_pplx_qwen3
sentence-similarity
mteb
custom_code
text-embeddings-inference
Instructions to use perplexity-ai/pplx-embed-v1-4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use perplexity-ai/pplx-embed-v1-4b with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("perplexity-ai/pplx-embed-v1-4b", 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
Commit ·
206ab7e
1
Parent(s): 2008e1c
feat: config flag to support text-embeddings-inference (#3)
Browse files- feat: config flag to support text-embeddings-inference (de52eccbea80c7ad629cddb4df5452ac1adc8c39)
- config.json +2 -1
config.json
CHANGED
|
@@ -72,5 +72,6 @@
|
|
| 72 |
"use_cache": false,
|
| 73 |
"use_sliding_window": false,
|
| 74 |
"vocab_size": 151936,
|
| 75 |
-
"attn_implementation": "sdpa"
|
|
|
|
| 76 |
}
|
|
|
|
| 72 |
"use_cache": false,
|
| 73 |
"use_sliding_window": false,
|
| 74 |
"vocab_size": 151936,
|
| 75 |
+
"attn_implementation": "sdpa",
|
| 76 |
+
"use_bidirectional_attention": true
|
| 77 |
}
|