Model reference · open weights

crnn-fa

Available as managed deployment LLMs hezarai Image→text 1 variants 3k dl/mo

crnn-fa is an open-weight language 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 byhezarai
TypeLanguage models
TaskImage→text
Runs withhezar
Released2023-11-27
Popularity3k downloads / month
LicenceOpen weights

About

What crnn-fa is

A CRNN model for Persian OCR. This model is based on a simple CNN + LSTM architecture inspired by this paper.

This is a successor model to our previous model hezarai/crnn-base-fa-v1. The improvements include:

  • 5X larger dataset
  • Change input image size from 64x256 to 32x384
  • Increase max output length from 64 to 96 (Max length of the samples in the dataset was 48 to handle CTC loss issues)
  • Support numbers and special characters (see id2label in model_config.yaml)
  • Auto-handling of LTR characters like digits in between the text

Note that this model is only optimized for printed/scanned documents and works best on texts with a length of up to 50-ish characters. (For an end-to-end OCR pipeline, use a text detector model first like https://huggingface.co/hezarai/CRAFT to extract text boxes preferrably in word-level and then use this model), but it can be used to be fine-tuned on other domains like license plate or handwritten texts.

Read the full model card
Usage
pip install hezar
from hezar.models import Model

crnn = Model.load("hezarai/crnn-base-fa-v2")
texts = crnn.predict(["sample_image.jpg"])
print(texts)

From the published model card. Full card on the HuggingFace links in the sidebar.

How it works

How language models work

Your prompttext / messagesTransformerattention over tokensNext-token loopgenerate + streamResponsetext · tool callsA language model reads your tokens and predicts the next one, again and again, streaming the reply back.

Using it via the API

Call it like any OpenAI endpoint

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

$ curl -sS https://api.axforge.ai/v1/chat/completions \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"crnn-fa","messages":[{"role":"user","content":"Hello"}]}'

Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.

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