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).
$ how it compares
The LLMs ranked either side of Sarvam-M, out of 1132 with a score.
| # | model | score | where |
|---|---|---|---|
| 923 | 38±1 | local | |
| 924 | MAP-Neo 7B Instruct v0.1 ExPO | 38±3 | local |
| 925 | 38±5 | local | |
| 926 | 38±2 | local | |
| 927 | zephyr-7b-alpha-ExPO | 38±2 | local |
$ what it's good at
other tests1 not in a task · 89% 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 | 89% |
$ where to run it
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 ~14.3 GB · 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 ~14.3 GB · 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 ~14.3 GB · 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 ~13.3 GB, 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 ~47.14 GB · 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'])"
Official weights and documentation: huggingface.co/sarvamai ↗
$ how the score was worked out · Inception Arabic/Hindi leader… 89%
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 | 89% | |
| prior · pull toward the middle | 11% | |
| weighted average | = 37.7 |
$ 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