DeepSeek-R1-GGUF
unsloth · Kit
GGUF copies of the 671B DeepSeek-R1 reasoning model, with 1.58-bit and 2-bit dynamic quants, for running it in llama.cpp on a local machine with enough memory.
Turns text, images and document pages into vectors for search, and can embed each chunk with its surrounding document in view. For developers who build retrieval over long documents.
pplx-embed-v2-context-9b is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download perplexity-ai/pplx-embed-v2-context-9b
pplx-embed-v2-context-9b is an embedding model from perplexity-ai for search over text, images and document pages. In contextual mode it embeds each chunk of a document while seeing the text around it. In non-contextual mode each text input is embedded on its own.
Developers who build search over long documents, including page scans, and want vectors they can drop into a standard nearest-neighbor index.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Search engineers | Embed document chunks and queries for dense retrieval | Index product docs and find the chunk that answers a question |
| Research | Retrieval researchers | Compare contextual and non-contextual embeddings | Embed the same chunks both ways and score one query |
| Document-heavy teams | Developers with scanned pages | Embed page images and match them to text queries | Look up the page that fits a written question |
Anyone who needs a chat model or text generation can skip it, because it only produces embeddings.
| Use case | Who | What they get back |
|---|---|---|
| Document search | Search developers | One vector per chunk, scored against a query vector |
| Page image search | Developers with scanned pages | Embeddings of page images you can match to text queries |
| Mixed model setups | Teams already using the 0.6B model | Documents embedded with one model and queried with the other at 1024 dimensions |
What you need first:
pip install -U huggingface_hub hf download perplexity-ai/pplx-embed-v2-context-9b
Pass each document as a list of chunks to encode, and pass queries to encode_queries. In contextual mode the chunks should not overlap. Encoding a query with encode lowers retrieval quality without any error. The vectors are not normalized as they come out. Either measure cosine similarity, or set normalize_embeddings to True and multiply the vectors as a dot product.
from transformers import AutoModel
model = AutoModel.from_pretrained(
"perplexity-ai/pplx-embed-v2-context-9b",
trust_remote_code=True,
).to("cuda")
# Two documents, consisting of several chunks
documents = [
[
"Curiosity begins in childhood with endless questions about the world.",
"As we grow, curiosity drives us to explore new ideas.",
"Scientific breakthroughs often start with a curious question.",
],
[
"The curiosity rover explores Mars searching for ancient life.",
"Each discovery on Mars sparks new questions about the universe.",
],
]
# Contextual mode
# One (chunk_count, 2048) array per document:
# chunk_embeddings[0].shape == (3, 2048), chunk_embeddings[1].shape == (2, 2048)
chunk_embeddings = model.encode(documents, normalize_embeddings=True)
# Each query is a single-chunk row.
queries = [["What drives scientific breakthroughs?"]]
query_embeddings = model.encode_queries(queries, normalize_embeddings=True)
scores = chunk_embeddings[0] @ query_embeddings[0][0]| Tool | What it does |
|---|---|
| encode | Embeds document chunks, one array of vectors per document |
| encode_queries | Embeds queries, each one a single-chunk row |
| encode_images | Embeds page images as contextual chunks, one embedding per horizontal band |
| batch_size | Sets how many documents or queries go through in one pass, 32 by default |
You embed two documents as lists of chunks, one about curiosity and science and one about a Mars rover. Then you encode the query "What drives scientific breakthroughs?" and take the dot product with the first document's chunk vectors. You get one score per chunk, and you read the highest.
An embedding model turns text or an image into a list of numbers, so that things with similar meaning end up close together. A good first try is to embed a few short chunks and one question, then see which chunk scores highest.
Training targeted two vector sizes, 1024 and 2048, using a Matryoshka-style loss. To get 1024 dimensions, keep the leading 1024 numbers of each raw vector, then normalize the shortened vector. Other truncation sizes were not trained. The text API does not truncate inputs, so you split long documents yourself.
Turns text, images and document pages into vectors for search, and can embed each chunk with its surrounding document in view. For developers who build retrieval over long documents.
Made by perplexity-ai on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: pplx-embed-v2-context-9b is an embedding model from perplexity-ai for search over text, images and document pages. In contextual mode it embeds each chunk of a document while seeing the text around it. In non-contextual mode each text input is embedded on its own.
Who it suits: Developers who build search over long documents, including page scans, and want vectors they can drop into a standard nearest-neighbor index.
Industry | Who uses it | How they use it | Example
Software | Search engineers | Embed document chunks and queries for dense retrieval | Index product docs and find the chunk that answers a question
Research | Retrieval researchers | Compare contextual and non-contextual embeddings | Embed the same chunks both ways and score one query
Document-heavy teams | Developers with scanned pages | Embed page images and match them to text queries | Look up the page that fits a written question
Anyone who needs a chat model or text generation can skip it, because it only produces embeddings.
Where to use it:
Use case | Who | What they get back
Document search | Search developers | One vector per chunk, scored against a query vector
Page image search | Developers with scanned pages | Embeddings of page images you can match to text queries
Mixed model setups | Teams already using the 0.6B model | Documents embedded with one model and queried with the other at 1024 dimensions
How to set it up: What you need first:
pip install -U huggingface_hub
hf download perplexity-ai/pplx-embed-v2-context-9b
How to use it: Pass each document as a list of chunks to encode, and pass queries to encode_queries. In contextual mode the chunks should not overlap. Encoding a query with encode lowers retrieval quality without any error. The vectors are not normalized as they come out. Either measure cosine similarity, or set normalize_embeddings to True and multiply the vectors as a dot product.
from transformers import AutoModel
model = AutoModel.from_pretrained(
"perplexity-ai/pplx-embed-v2-context-9b",
trust_remote_code=True,
).to("cuda")
# Two documents, consisting of several chunks
documents = [
[
"Curiosity begins in childhood with endless questions about the world.",
"As we grow, curiosity drives us to explore new ideas.",
"Scientific breakthroughs often start with a curious question.",
],
[
"The curiosity rover explores Mars searching for ancient life.",
"Each discovery on Mars sparks new questions about the universe.",
],
]
# Contextual mode
# One (chunk_count, 2048) array per document:
# chunk_embeddings[0].shape == (3, 2048), chunk_embeddings[1].shape == (2, 2048)
chunk_embeddings = model.encode(documents, normalize_embeddings=True)
# Each query is a single-chunk row.
queries = [["What drives scientific breakthroughs?"]]
query_embeddings = model.encode_queries(queries, normalize_embeddings=True)
scores = chunk_embeddings[0] @ query_embeddings[0][0]
Title: Calls and options the source names
Tool | What it does
encode | Embeds document chunks, one array of vectors per document
encode_queries | Embeds queries, each one a single-chunk row
encode_images | Embeds page images as contextual chunks, one embedding per horizontal band
batch_size | Sets how many documents or queries go through in one pass, 32 by default
Example: You embed two documents as lists of chunks, one about curiosity and science and one about a Mars rover. Then you encode the query "What drives scientific breakthroughs?" and take the dot product with the first document's chunk vectors. You get one score per chunk, and you read the highest.
For newcomers and experts: An embedding model turns text or an image into a list of numbers, so that things with similar meaning end up close together. A good first try is to embed a few short chunks and one question, then see which chunk scores highest.
Training targeted two vector sizes, 1024 and 2048, using a Matryoshka-style loss. To get 1024 dimensions, keep the leading 1024 numbers of each raw vector, then normalize the shortened vector. Other truncation sizes were not trained. The text API does not truncate inputs, so you split long documents yourself.
Split each document into chunks that do not overlap
Encode the chunks with encode
Encode each query with encode_queries
Compare by cosine similarity or dot product
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download perplexity-ai/pplx-embed-v2-context-9b
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 7 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| pplx-embed-v2-context-9b This page | 766 | 16 | 8.4B | mit | |
| paraphrase-multilingual-MiniLM-L12-v2Shares sentence-similarity · multilingual · feature-extraction | 26,540,125 | 1,505 | 118M | apache-2.0 | |
| multilingual-e5-largeShares sentence-similarity · multilingual · feature-extraction | 7,120,555 | 1,284 | 560M | mit | |
| hs-embed-1Shares sentence-similarity · multilingual · feature-extraction | 22,412 | 7 | 112M | mit | |
| pplx-embed-v2-late-0.6bShares sentence-similarity · multilingual · feature-extraction | 2,765 | 71 | 594M | mit | |
| mSlideOnShares sentence-similarity · multilingual · feature-extraction | 706 | 16 | 339M | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
unsloth · Kit
GGUF copies of the 671B DeepSeek-R1 reasoning model, with 1.58-bit and 2-bit dynamic quants, for running it in llama.cpp on a local machine with enough memory.
prithivMLmods · Kit
Provides GGUF files of Axion-1.0-35B, a 35B mixture-of-experts model with about 3B active parameters aimed at scientific reasoning, information seeking and too…
Phips · Kit
Upscales low-resolution images with a super-resolution network that trains on one consumer GPU and exports to ONNX. For people who train or run image upscalers.
lmstudio-community · Kit
A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…
LibertAIDAI · Kit
Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…
facebook · Kit
Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…