whatmodel.sh / Sarvam-M
Sarvam-M
↗ share
+ contribute
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).
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.
| # | model | score | where |
|---|---|---|---|
| 970 | 39±2 | local | |
| 971 | 39±4 | local | |
| 972 | 39±5 | local | |
| 973 | 39±1 | local | |
| 974 | 39±1 | local |
$ what it's good at
other tests1 not in a task · 91% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HindiGen-v1 3C3H score (Inception, Claude 3.5 Sonnet judge) | 22.9% ✎ | ▁▁▁▃·▂·█▆█▇▁ beats 3/31 | 91% |
$ 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
- 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 | shWindowsirm https://llama.app/install.ps1 | iex - Run Sarvam-M · needs 16.5 GB memory, 14.3 GB download · from huggingface.co/lmstudio-communitychat in the terminal
llama cli -hf lmstudio-community/sarvam-m-GGUF:Q4_K_M - 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
- Install LM Studio · Open the app once before using the lms command.
- Run Sarvam-M · needs 16.5 GB memory, 14.3 GB download · from huggingface.co/lmstudio-community
- Or download it in the terminal
lms get https://huggingface.co/lmstudio-community/sarvam-m-GGUF@Q4_K_M -y - Then run lms ls to see its name, and lms chat followed by that name
Ollama
version
- Install Ollama
download it (macOS / Windows) ↗
Linuxcurl -fsSL https://ollama.com/install.sh | sh - Run Sarvam-M · needs 16.5 GB memory, 14.3 GB download · from huggingface.co/lmstudio-communitychat in the terminal
ollama run hf.co/lmstudio-community/sarvam-m-GGUF:Q4_K_M
MLX (Mac)
- Install MLX (Mac) · Apple silicon Macs only, text only.with uv
uv tool install mlx-lmorpip install mlx-lm - Run Sarvam-M · needs 15.5 GB memory, 13.3 GB download, Mac only · from huggingface.co/Jimmi42chat in the terminal
mlx_lm.chat --model Jimmi42/sarvam-m-4bit-mlx - 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
- 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
| source | results | share of the score |
|---|---|---|
| 1 | 91% | |
| prior · pull toward the middle | 9% | |
| 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