Views
No views yet
v1.2-4B
release — drop-in replacement.1from transformers import AutoModel
2
3model_ctx = AutoModel.from_pretrained(
4 "seslami-pplx/pplx-embed-context-v1.3-4B",
5 trust_remote_code=True
6)
7
8doc_chunks = [
9 [
10 "Curiosity begins in childhood with endless questions about the world.",
11 "As we grow, curiosity drives us to explore new ideas.",
12 "Scientific breakthroughs often start with a curious question."
13 ],
14 [
15 "The curiosity rover explores Mars searching for ancient life.",
16 "Each discovery on Mars sparks new questions about the universe."
17 ]
18]
19# Returns list of numpy arrays (one per document)
20# embeddings[0].shape = (3, 2560), embeddings[1].shape = (2, 2560)
21embeddings = model_ctx.encode(doc_chunks)