whatmodel.sh / Sarvam-M

Sarvam-M is an open-weights language model from Sarvam AI, released May 2025. Its published size is 23.57B parameters. Licence: apache-2.0.

Catalogue identity notes

Maker repo sarvamai/sarvam-m @01534a5: licence tag apache-2.0. 23,572,403,200 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2025-05: month the maker's Hugging Face repo was created (createdAt 2025-05-20).

39.1±4.6#785 of 974 LLMsfrom 1 benchmark result across 1 source* thinly tested, treat the rank as provisional

Score within the LMArena (text) comparison set only.

$ how it compares

The LLMs ranked either side of Sarvam-M, out of 1206 with a score.

#modelscorewhereRAMreleased
970Code Tulu 2 7B Allen Institute for AI39±2local~16GB2023-11
971Meditron 70B EPFL LLM39±4local~32GB2023-11
972Sarvam-M Sarvam AI39±5local~16GB2025-05
973Flan-T5 XXL Google39±1local~49GB2022-10
974Gemma 2 2B IT Google39±1local~3.2GB2024-07

see all LLMs · find the ones that fit your machine

$ what it's good at

other tests1 not in a task · 91% of its score
testresultvs the others in its rundifficultycountswhy
HindiGen-v1 3C3H score (Inception, Claude 3.5 Sonnet judge)22.9% ✎▁▁▁▃·▂·█▆█▇▁ beats 3/31medium · avg 47%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 91%typical

$ where to run it

Memory is what a version takes in GPU memory (or a Mac's unified memory) with an 8k-token conversation. With less, it runs partly from system RAM, more slowly. Enter your machine to see what runs at full speed.

llama.cpp · recommended

version

  1. Install llama.cpp · Homebrew and winget installs name the commands llama-cli and llama-server instead.
    macOS / Linux
    curl -LsSf https://llama.app/install.sh | sh
    Windows
    irm https://llama.app/install.ps1 | iex

    other ways to install ↗

  2. Run Sarvam-M · needs 16.5 GB memory, 14.3 GB download · from huggingface.co/lmstudio-community
    chat in the terminal
    llama cli -hf lmstudio-community/sarvam-m-GGUF:Q4_K_M
  3. Or start a local server and open the address it prints (http://localhost:9931)
    llama serve -hf lmstudio-community/sarvam-m-GGUF:Q4_K_M

LM Studio

version

  1. Install LM Studio · Open the app once before using the lms command.

    download it (macOS / Windows / Linux) ↗

  2. Run Sarvam-M · needs 16.5 GB memory, 14.3 GB download · from huggingface.co/lmstudio-community

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/lmstudio-community/sarvam-m-GGUF@Q4_K_M -y
  4. Then run lms ls to see its name, and lms chat followed by that name

Ollama

version

  1. Install Ollama

    download it (macOS / Windows) ↗

    Linux
    curl -fsSL https://ollama.com/install.sh | sh
  2. Run Sarvam-M · needs 16.5 GB memory, 14.3 GB download · from huggingface.co/lmstudio-community
    chat in the terminal
    ollama run hf.co/lmstudio-community/sarvam-m-GGUF:Q4_K_M

MLX (Mac)

  1. Install MLX (Mac) · Apple silicon Macs only, text only.
    with uv
    uv tool install mlx-lm
    or
    pip install mlx-lm
  2. Run Sarvam-M · needs 15.5 GB memory, 13.3 GB download, Mac only · from huggingface.co/Jimmi42
    chat in the terminal
    mlx_lm.chat --model Jimmi42/sarvam-m-4bit-mlx
  3. Or start an OpenAI-compatible server at http://localhost:8080/v1
    mlx_lm.server --model Jimmi42/sarvam-m-4bit-mlx

Other ways to run it

  1. Run it as published · needs 51 GB memory, 47.1 GB download · from huggingface.co/sarvamai (official)
    uv run --with torch --with 'transformers<5' --with accelerate python -c "from transformers import pipeline; print(pipeline('text-generation', model='sarvamai/sarvam-m', torch_dtype='auto', device_map='auto')('Once upon a time', max_new_tokens=40)[0]['generated_text'])"

Model repository and documentation: huggingface.co/sarvamai ↗

$ how the score was worked out · Inception Arabic/Hindi leader… 91%

Each result implies a score on its own, after adjusting for how hard its test is and who ran it. The score is their weighted average, with a small pull toward the middle for thinly tested models. Each test's weight is its counts column above; here it's added up by who ran the tests. How it works

sourceresultsshare of the scorelicence
Inception Arabic/Hindi leaderboards (AraGen-v3, HindiGen-v1, Arabic IFEval)1Apache-2.0
prior · pull toward the middle
weighted average= 39.1

$ improve this page

Use a short GitHub form or edit the data through a pull request. Every number needs a source; here's which ones we can use.

data updated · sources and licences · json