Model reference · open weights
fasttext-fa-300 is an open-weight embedding model from hezarai. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Released by | hezarai |
|---|---|
| Type | Embedding models |
| Task | Embeddings |
| Runs with | hezar |
| Released | 2023-08-06 |
| Popularity | 3k downloads / month |
| Licence | Unknown |
About
This is the original fasttext embedding model for Persian from here loaded and converted using Gensim and exported to Hezar compatible format. For more info, see here.
In order to use this model in Hezar you can simply use this piece of code:
pip install hezar
from hezar.embeddings import Embedding
fasttext = Embedding.load("hezarai/fasttext-fa-300")
# Get embedding vector
vector = fasttext("هزار")
# Find the word that doesn't match with the rest
doesnt_match = fasttext.doesnt_match(["خانه", "اتاق", "ماشین"])
# Find the top-n most similar words to the given word
most_similar = fasttext.most_similar("هزار", top_n=5)
# Find the cosine similarity value between two words
similarity = fasttext.similarity("مهندس", "دکتر")
From the published model card. Full card on the HuggingFace links in the sidebar.
How it works
Using it via the API
Once AxForge deploys fasttext-fa-300 for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (fasttext-fa-300 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":"fasttext-fa-300","input":"text to embed"}'
Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.