Model reference · open weights

persian-embeddings

persian-embeddings is an open-weight embedding model from heydariAI, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.

Embeddings heydariAI 1 variants 88k downloads/mo
Request this model on EU hardware All served models Not on the shared API today — deployed on request.

About

What persian-embeddings is

heydariAI/persian-embeddings My Github: @heydaari My Linkedin: Mohammad Hassan Heydari This model is a fine-tuned version of xlm-roberta-base, specifically trained on a massive corpus of Persian data to create high-quality contextual embeddings for Persian sentences and paragraphs. It is designed to perform exceptionally well on tasks such as semantic search, clustering, and contextual similarity for Persian text, while also supporting multilingual tasks in English and Persian. The fine-tuning process focused on adapting the pre-trained multilingual XLM-RoBERTa model to better capture Persian linguistic nuances, making it highly effective for tasks requiring embeddings tailored to the Persian language. Usage (Sentence-Transformers) Using this model becomes easy when you have sentence-transformers installed: Then you can use the model like this: Usage (HuggingFace Transformers) Without sentence-transformers, you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.

Summarised from the published model card. Read the full card on the HuggingFace links below.

Specifications

What it is

MakerheydariAI
TypeEmbedding models
Parameters (lead)560M
Context514 tokens
Variants1
Runs withtransformers
Based onFacebookAI/xlm-roberta-base
Released2024-11-21
Popularity88k downloads / month
Likes40
LicenceOpen weights

How it works

How embedding models work

Your textsentence / documentEncodermaps meaningVectorlist of numbersAn embedding model turns text into a vector, so similar meanings sit close together — the basis of search and RAG.

Variants

Sizes & precisions

Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.

VariantParamsPrecisionVRAMFits 16 GBWeights
persian-embeddings560MBF16~1.3 GBWeights ↗

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys persian-embeddings for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (persian-embeddings below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/embeddings \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"persian-embeddings","input":"text to embed"}'

Details

Languages, data & research

Languages

fa en

Tags

transformers safetensors xlm-roberta feature-extraction fa en text-embeddings-inference endpoints_compatible

Licence

Open weights

Open weights under apache-2.0 — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗

Sources

Weights & code

Want persian-embeddings on EU-owned hardware?

Request this model on EU hardware See what’s served now

Explore

More embedding models

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms