Downloads · 30 days
13
2% of all-time downloads
alishendi/persian-embeddings-gguf
persian-embeddings-gguf is a feature extraction model from alishendi. Use it when you need embeddings to search or compare text. The card lists the license as apache-2.0.
This is a GGUF conversion of the original heydariAI/persian-embeddings from heydariAI/persian-embeddings. The GGUF version is optimized for efficient inference with frameworks like llama.cpp and integration with Ollama.
Downloads · 30 days
13
2% of all-time downloads
All-time downloads
575
Public
Repo size
2.2 GB
Likes
1
Public
Click a slice to open those files.
.gguf2.2 GB · 100%
From the Hugging Face model README
This is a GGUF conversion of the original heydariAI/persian-embeddings from heydariAI/persian-embeddings.
The GGUF version is optimized for efficient inference with frameworks like llama.cpp and integration with Ollama.
As the original repository mentions, this model is designed for:
This model is available on Ollama Hub as alishendi/persian-embeddings.
Ollama Model Page
Here's how to use it:
curl -fsSL https://ollama.com/install.sh | sh
ollama pull alishendi/persian-embeddings
curl http://localhost:11434/api/embeddings \
-H "Content-Type: application/json" \
-d '{
"model": "alishendi/persian-embeddings",
"prompt": "برای این متن، بردار بازنمایی تولید کن."
}'
Here's how to use the model with Ollama in Python:
# pip install ollama
import ollama
import numpy as np
# Generate embedding
response = ollama.embeddings(
model="alishendi/persian-embeddings",
prompt="برای این متن، بردار بازنمایی تولید کن."
)
embedding = np.array(response["embedding"])
print(f"Embedding shape: {embedding.shape}")
print(f"First 10 values: {embedding[:10]}")
Also you can download the model on LM Studio and generate the embeddings via its API
The GGUF format provides efficient inference on both CPU and GPU hardware. Performance will vary based on your hardware configuration.
This model is based on the original work from heydariAI/persian-embeddings. Please consider citing the original authors if you use this model in your research.