Instructions to use perplexity-ai/pplx-embed-v2-late-9b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use perplexity-ai/pplx-embed-v2-late-9b with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("perplexity-ai/pplx-embed-v2-late-9b") 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
Download 2_MultiVectorMask/config.json from perplexity-ai/pplx-embed-v2-late-9b: direct link, hf CLI and curl.
- Browser
- Download file 391 Bytes
-
https://huggingface.co/perplexity-ai/pplx-embed-v2-late-9b/resolve/main/2_MultiVectorMask/config.json
- Command line
-
hf download hf://perplexity-ai/pplx-embed-v2-late-9b/2_MultiVectorMask/config.json
-
curl -L -o config.json https://huggingface.co/perplexity-ai/pplx-embed-v2-late-9b/resolve/main/2_MultiVectorMask/config.json
391 Bytes
| { | |
| "skiplist_words": [ | |
| "!", | |
| "\"", | |
| "#", | |
| "$", | |
| "%", | |
| "&", | |
| "'", | |
| "(", | |
| ")", | |
| "*", | |
| "+", | |
| ",", | |
| "-", | |
| ".", | |
| "/", | |
| ":", | |
| ";", | |
| "<", | |
| "=", | |
| ">", | |
| "?", | |
| "@", | |
| "[", | |
| "\\", | |
| "]", | |
| "^", | |
| "_", | |
| "`", | |
| "{", | |
| "|", | |
| "}", | |
| "~" | |
| ], | |
| "skiplist_tasks": [ | |
| "document" | |
| ], | |
| "keep_only_token_ids": null | |
| } |