Downloads · 30 days
78
12% of all-time downloads
bowang0911/pplx-embed-v1-0.6b-gguf
pplx-embed-v1-0.6b-gguf is a machine learning model from bowang0911. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for llama-cpp. The card lists the license as apache-2.0.
GGUF conversion of perplexity-ai/pplx-embed-v1-0.6b.
Downloads · 30 days
78
12% of all-time downloads
All-time downloads
634
Public
Repo size
1.2 GB
Likes
3
Public
Click a slice to open those files.
.gguf1.2 GB · 100%
From the Hugging Face model README
GGUF conversion of perplexity-ai/pplx-embed-v1-0.6b.
| File | Quant | Size |
|---|---|---|
pplx-embed-v1-0.6b-f16.gguf | F16 | 1.2 GB |
This model requires non-causal (bidirectional) attention. Without it, outputs will be incorrect.
from llama_cpp import Llama, llama_cpp
llm = Llama(model_path="pplx-embed-v1-0.6b-f16.gguf", embedding=True, pooling_type=1)
llama_cpp.llama_set_causal_attn(llm._ctx.ctx, False)
raw = llm.embed("your text here")
Note: The GGUF outputs raw float embeddings only. The original model natively produces int8/binary quantized embeddings via a post-processing step (
st_quantize.FlexibleQuantizer). To match that behavior, apply the quantization manually:
import numpy as np
# Int8: tanh → scale → round → clamp (matches Int8TanhQuantizer)
int8_emb = np.clip(np.round(np.tanh(raw) * 127), -128, 127).astype(np.int8)
# Binary: sign (matches BinaryTanhQuantizer)
binary_emb = np.where(np.array(raw) >= 0, 1, -1).astype(np.int8)
CLI:
llama-embedding -m pplx-embed-v1-0.6b-f16.gguf --attention non-causal --pooling mean -p "your text here"
Cosine similarity vs original: > 0.99999 across all test inputs. Residual diffs are from F32 → F16 precision.