The local AI models we run on your servers

Any model whose weights are published runs on your own hardware, from China's DeepSeek, Qwen, Kimi and GLM to Gemma and Mistral. We choose the model after testing several on your own Persian work, with a licence that covers your commercial use.

What a local model is

A local (open-weight) model is one whose maker has published the weight files so anyone can run it on their own hardware, unlike ChatGPT or Claude, which are available only through their makers' services. Your data never leaves your server and an international internet cut does not stop the work. Before choosing we check two things: the model's Persian quality on your own work, and the terms of its licence for commercial use.

How we choose a model

01

Persian quality on your work

Public tables are only a starting point. We test several models on real samples of your work, such as questions, documents and letters, and go through the results with you.

02

Size against hardware

A smaller model that answers quickly and correctly beats a large one that barely fits and runs slowly.

03

Commercial licence

We read every model's licence. Some are free (MIT and Apache 2.0), some set conditions for large-scale serving or very large companies, and some are non-commercial only.

04

Serving software

We check that the model runs on vLLM, llama.cpp or MLX; some new models are not supported everywhere yet.

The best open models on a Persian test

The Open Persian LLM Leaderboard is the only current Persian benchmark for language models: 21 tasks, from Persian literature and proverbs to law and Iranian social norms (data up to 19 September 2026). The scores are the simple mean of those 21 tasks, which is also the average the board itself ranks by.
ModelMakerPersian test meanSizeSuitable hardware
Gemma 4 31BGoogle78.6, above GPT-4o at 76.331B parametersOne RTX 5090 at 4-bit, or one Mac Studio
Qwen3.8-27BAlibaba (Qwen)76.1, the best Persian-literature score28B parametersOne RTX 5090 at 4-bit, or one Mac Studio
Gemma 4 26B-A4BGoogle70.726B, 4B activeOne 24 to 32 GB card, DGX Spark or Ryzen AI Max
Llama 4 ScoutMeta69.0109B, 17B activeOne RTX PRO 6000 or a Mac Studio M5 Max
Gemma 4 E4BGoogle59.0About 4.5B effectiveA Mac mini or one 8 GB card

Cohere's Command A+ lists Persian among its 48 training languages, and its predecessor Command A scored 70.0 on the same board. From DeepSeek, the board has only one older V3-generation model (listed as deepseek-v3-03-24), at 72.4. For every other model, including the current large Chinese models, we found no published Persian score; we test them on your own work.

Large models: 200 billion parameters and up

Size, licence and date from each model's official Hugging Face card, reviewed on 22 October 2026. "Active" is the parameters used for each word; in MoE models it sets the speed, while the total sets the memory needed.
ModelMakerTotal / activeLicenceMemory at 4 / 8-bitSuitable hardware
DeepSeek-V4.1-FlashDeepSeek, China552B plus 196B Engram / 8B to 16BMITAbout 460 / 920 GB (official files about 510)An eight-GPU H200 or B200 server
DeepSeek-V4-ProDeepSeek, China1.6T / 49BMITAbout 990 / 1,980 GBAn eight-GPU B200 server or larger, or a Mac Studio cluster
DeepSeek-V4-FlashDeepSeek, China284B / 13BMITAbout 170 / 340 GBOne Mac Studio M5 Ultra or a four-GPU server
Kimi K3Moonshot AI, China2.8T / 104BKimi K3 License, with conditions for large-scale servingAbout 1,670 / 3,340 GBAn eight-GPU B300 or MI355X server at 4-bit
Kimi K2.7 CodeMoonshot AI, China1T / 32BModified MITAbout 620 / 1,230 GBAn eight-GPU H200 server, or two 512 GB Mac Studios
Qwen3.8-2.4T-A95BAlibaba, China2.4T / 95BQwen3.8-Max License, with conditions for large-scale servingAbout 1,470 / 2,940 GBAn eight-GPU B300 or MI355X server
Qwen3.5-397B-A17BAlibaba, China397B / 17BApache 2.0About 240 / 480 GBA 512 GB Mac Studio or a four-GPU H200 server
GLM-5.2 and GLM-5.3Z.ai, China744B / 40BGLM-5.2: MIT; GLM-5.3: conditions only for very large companiesAbout 450 / 900 GBAn eight-GPU H200 server, or a 512 GB Mac Studio at 4-bit
MiMo-V2.6 (Pro and Flash)Xiaomi, ChinaPro: 1T / 42B; Flash: 309B / 15BMITPro about 610 / 1,230; Flash about 190 / 370 GBPro: an eight-GPU server; Flash: one Mac Studio M5 Ultra
MiniMax-M3MiniMax, ChinaAbout 428B / 23BMiniMax Community License; commercial use with notice and "Built with MiniMax M3"About 256 / 512 GBA 512 GB Mac Studio or a four-GPU H200 server
Tencent Hy3Tencent, China295B / 21BApache 2.0About 180 / 360 GBOne Mac Studio M5 Ultra or a four-GPU server
Ling-3.1-flashAnt Group, China560B / 25BMITAbout 340 / 690 GBAn eight-GPU H200 server
Muse Spark OpenMeta, US816B / 42BMuse licence; "Built with" notice and conditions for large-scale servingAbout 490 / 990 GBFour Mac Studio M5 Ultras (Apple's test) or an eight-GPU server
Nemotron 3 UltraNVIDIA, US550B / 55BOpenMDW-1.1 (permissive)About 340 / 670 GBAn eight-GPU H200 or B200 server
Mistral Large 3Mistral, Europe675B / 41BApache 2.0About 405 / 810 GBAn eight-GPU H200 server
Command A+Cohere, Canada218B / 25BApache 2.0About 130 / 260 GBTwo H100 cards or one Mac Studio M5 Ultra

The memory column is our estimate of the weights alone (total parameters x bits / 8 x 1.2); long context and concurrent users need more. Many official files are already 8-bit or 4-bit.

Mid-size models: 20 to 130 billion parameters

ModelMakerTotal / activeLicenceMemory at 4 / 8-bitSuitable hardware
Qwen3.8-27BAlibaba, China28BApache 2.0About 17 / 33 GBOne RTX 5090 or a Mac mini M5 Pro
Qwen3.6-35B-A3BAlibaba, China36B / 3BApache 2.0About 22 / 43 GBOne RTX 5090 or a Mac mini M5 Pro
Qwen3.5-122B-A10BAlibaba, China125B / 10BApache 2.0About 75 / 150 GBOne RTX PRO 6000, DGX Spark or a Mac Studio M5 Max
Gemma 4 31B and 26B-A4BGoogle, US31B; 26B / 4BApache 2.0About 19 / 38 and 15 / 31 GBOne RTX 5090 or a Mac Studio
gpt-oss-120b and gpt-oss-20bOpenAI, US117B / 5B; 21B / 4BApache 2.0About 70 / 140 and 13 / 25 GB120b: RTX PRO 6000, DGX Spark or Ryzen AI Max; 20b: one 16 GB card
Mistral Small 4Mistral, Europe119B / 6.5BApache 2.0About 71 / 143 GBOne RTX PRO 6000 or a Mac Studio M5 Max
Mistral Medium 3.5Mistral, Europe128BModified MIT; no rights for companies above US$20M monthly revenueAbout 77 / 154 GBTwo RTX PRO 6000 or a Mac Studio M5 Ultra
Muse Glimmer 30BMeta, US30BApache 2.0About 18 / 36 GBOne RTX 5090 or a Mac Studio
Nemotron 3.5 Super VLNVIDIA, US120B / 12BOpenMDW-1.1About 74 / 149 GBOne RTX PRO 6000 or DGX Spark
GLM-4.7-FlashZ.ai, China30B / 3BMITAbout 19 / 37 GBOne RTX 5090 or a Mac mini M5 Pro
Seed-OSS-36BByteDance, China36BApache 2.0About 22 / 43 GBOne RTX 5090 or RTX PRO 5000
ERNIE-4.5-21B-A3BBaidu, China22B / 3BApache 2.0About 13 / 26 GBOne 24 GB card
Kolibri-1Aleph Alpha, Germany78B / 3.5BApache 2.0About 47 / 94 GBOne RTX PRO 6000 or a Mac Studio M5 Max
Granite 4.2 30BIBM, US29BApache 2.0About 18 / 35 GBOne RTX 5090

Small models: up to 15 billion parameters

For laptops, a Mac mini, small computers, and simple high-volume jobs such as classification, short summaries and data extraction.
ModelMakerSizeLicenceMemory at 4 / 8-bitNote
Gemma 4 12BGoogle, US12B; text, image and audioApache 2.0About 7 / 14 GBTrained on more than 140 languages
Gemma 4 E4B and E2BGoogle, USAbout 4.5B and 2.3B effectiveApache 2.0About 5 / 10 and 3 / 6 GBPersian test 59.0 and 50.5
Qwen3.5-9B, 4B and 2BAlibaba, China9.7B, 4.7B and 2.3BApache 2.0From about 1.4 to 12 GBText and image
MiMo-V2.6-Distill-Qwen-9BXiaomi, China9.4BMITAbout 6 / 11 GBA distilled version of Xiaomi's MiMo
Ministral 3 (14B, 8B and 3B)Mistral, Europe14B, 9B and 4BApache 2.0From about 2 to 17 GBText and image
Phi-4 and Phi-4-miniMicrosoft, US15B and 3.8BMITAbout 9 / 18 and 2 / 5 GBReasoning and maths
Granite 4.2 (8B and 3B)IBM, US8.8B and 3.7BApache 2.0About 5 / 11 and 2 / 4 GBLight enterprise tasks
MiniCPM5-2BOpenBMB, China2.5BApache 2.0About 1.5 / 3 GBFor small devices

Which model on which hardware

A quick guide by model size. We make the exact choice by testing on your own work, because the number of users and the length of texts take memory too.
Model sizeExamplesWeights at 4-bitSuitable hardware
Up to 15B parametersGemma 4 12B, Qwen3.5-9BUp to about 10 GBA Mac mini, one RTX card or an Atlas 300I Pro
20B to 40BGemma 4 31B, Qwen3.8-27BAbout 15 to 25 GBOne RTX 5090, a Mac mini M5 Pro or a Radeon AI PRO R9700
70B to 130B, often MoEgpt-oss-120b, Qwen3.5-122B-A10BAbout 45 to 80 GBRTX PRO 6000, DGX Spark, Ryzen AI Max or a Mac Studio M5 Max
200B to 400B, MoEDeepSeek-V4-Flash, Tencent Hy3, Qwen3.5-397BAbout 120 to 250 GBA Mac Studio M5 Ultra, a four-GPU H200 server or an Atlas 800I A2
500B to 1TGLM-5.2, DeepSeek-V4.1-Flash, Kimi K2.7 CodeAbout 300 to 620 GBAn eight-GPU H200, B200 or MI355X server, or a 512 GB Mac Studio
Over 1TDeepSeek-V4-Pro, Kimi K3, Qwen3.8-2.4TAbout 1 to 1.7 TBAn eight-GPU B300 or MI355X server, a Mac Studio cluster or Atlas 950

Memory covers the model weights only and is our estimate; long context and concurrent users need more. MoE models use only part of their parameters for each word, so they answer faster than their size suggests.

Coding models

ModelMakerTotal / activeLicenceMemory at 4 / 8-bitSuitable hardware
Qwen3-Coder-NextAlibaba, China80B / 3BApache 2.0About 48 / 96 GBOne RTX PRO 6000 or a Mac Studio M5 Max
Qwen3-Coder-30B-A3B and 480B-A35BAlibaba, China30B / 3B; 480B / 35BApache 2.0About 18 / 37 and 288 / 576 GB30B: one RTX 5090; 480B: a 512 GB Mac Studio or an eight-GPU server
Kimi K2.7 CodeMoonshot AI, China1T / 32BModified MITAbout 620 / 1,230 GBAn eight-GPU H200 server or two 512 GB Mac Studios
Devstral Small 2Mistral, Europe24BApache 2.0About 14 / 29 GBOne RTX 5090
Devstral 2Mistral, Europe125BModified MIT; no rights for companies above US$20M monthly revenueAbout 75 / 150 GBTwo RTX PRO 6000 or a Mac Studio M5 Ultra

Qwen3.8-27B, GLM-5.3 and DeepSeek-V4 are strong at coding too; we compare them for self-hosting in a separate article.

Speech, images, documents and search

JobModelLicencePersian status
Speech to text, batchWhisper large-v3 and v3-turbo, with Persian fine-tunesApache 2.0 and MIT; Persian fine-tunes CC-BY-4.0 or MITIn the Whisper paper, large-v2 has 32.9% word error on the FLEURS Persian test (the paper predates large-v3); Persian fine-tunes from October 2026 report much lower error, by their makers' own figures
Speech to text, livenemotron-asr-streaming-farsi, based on an NVIDIA modelOpenMDW-1.18.8% word error on the full FLEURS Persian test, as reported by its maker; Persian only
Speech to text, multilingualMeta Omnilingual ASRApache 2.03.4% character error for Persian in Meta's official table
Text to speechPiper (fa_IR voices) and MOSS-TTS v1.5MIT and Apache 2.0The only Persian options with a free commercial licence; the best-measured Persian voices (OmniVoice and Higgs) are non-commercial only
Reading images and documents (OCR)Qwen3-VL, DeepSeek-OCR-2, PaddleOCR-VL and GLM-OCRApache 2.0 and MITNone publishes Persian OCR accuracy; we test on your own scans
Search over documents (embeddings)bge-m3, multilingual-e5-large and Nemotron-3.5-EmbedMIT and OpenMDW-1.1bge-m3 scores 59.1 on the Persian FaMTEB benchmark; Nemotron-3.5-Embed lists Persian among its evaluated languages
Image generationFLUX.2 klein 4B, Qwen-Image-2512 and ERNIE-ImageApache 2.0None guarantees Persian text inside images

Speech error figures come from different sources and test subsets and are not comparable with each other; we test every speech model on your own audio.

From the first call to a working system

Hardware is chosen after a model has been measured on your own work, not from a table. A quote is issued only once it is clear which model has to serve how many people, and how fast.
  1. 01

    First conversation

    We go through the task, the number of users, the data, where the hardware goes and what you already own.

  2. 02

    Measured on your work

    We test several open-weight models on samples of your real work and size memory and speed from those results.

  3. 03

    Written quote

    You get the exact configuration, the proposed model, the delivery time and the support terms in writing. Prices appear only in the quote.

  4. 04

    Installation

    We install the hardware, bring up the model and connect the assistant to your systems, then test it once with international internet cut off.

  5. 05

    Handover and support

    You get documentation and training for your team; afterwards we maintain the system and update the models under contract.

How to get in touch

Fill in the form or message us on WhatsApp. The clearer these are, the more exact the quote:

  • What the model has to do (answer from documents, code, summarise, process images or speech)
  • How many people use it at the same time, and what response time is acceptable
  • The model or hardware family you have in mind, if you already know
  • Where it goes: your server room, a data centre, or hardware you already own
  • How sensitive the data is, and whether it must run with no internet at all
Zharf

Try the ZharfAI assistant right now

Ask about Persian assistants, document automation, or how to start a pilot.

Frequently asked questions about local models

Start with the job the model has to do

Send a few samples of your real work. We test several models on them and tell you which model, on what hardware, under which licence; and if no local model is good enough, we say so plainly.