Views
No views yet
mlx_lm.load() because MLX-LM does not
natively support Perplexity's custom bidirectional_pplx_qwen3 model type. The repository
includes a small pplx_mlx_convert loader package for this artifact.pip install mlx mlx-lm transformers huggingface_hub numpy1import sys
2from huggingface_hub import snapshot_download
3
4repo_path = snapshot_download("agentmish/pplx-embed-v1-0.6b-mlx")
5sys.path.insert(0, repo_path)
6
7from pplx_mlx_convert import load_embedder
8
9embedder = load_embedder(repo_path)
10texts = [
11 "Scientists explore the universe driven by curiosity.",
12 "Children learn through curious exploration.",
13 "Historical discoveries began with curious questions.",
14]
15
16embeddings = embedder.encode(texts)
17print(embeddings.shape) # (3, 1024)
18print(embeddings.dtype) # int8embedder.encode(..., quantization="none") returns float32 pooled embeddings,
and embedder.encode(..., quantization="binary") returns binary tanh embeddings.perplexity-ai/pplx-embed-v1-0.6bconversion.jsonbfloat161024artifacts/mlx/pplx-embed-v1-0.6b[[2, 1024]].