anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
A mixture-of-experts language model from Sarvam AI with 32.2B parameters and 2.4B active per token, built for practical use in English and many Indian languages. Needs an NVIDIA GPU for the card's sample code.
Sarvam-30B is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download sarvamai/sarvam-30b
Sarvam-30B is a mixture-of-experts language model from Sarvam AI with 32.2 billion parameters in total and 2.4 billion non-embedding parameters active for each token. The card aims it at practical deployment, with reasoning, coding and chat in Indian languages. It also says the model can handle multilingual voice calls that make tool calls.
Developers and researchers who want an open model for Indian languages and English, and who have an NVIDIA GPU. A larger sibling, Sarvam-105B, exists for people who want more capacity.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Customer service | Support teams | Build chat and voice assistants in Indian languages | Answer a customer question in Tamil |
| Software | Developers | Add a multilingual open model to an app | Generate replies in Hindi from a script |
| Education | Teachers and learners | Practice and ask questions in many languages | Explain a math step in Marathi |
| Research | AI researchers | Study a small-active-parameter expert model | Compare it with other models near its size |
Anyone who needs strong repair of code in big repositories can skip it, since the card's own table shows other models ahead on that test.
| Use case | Who | What they get back |
|---|---|---|
| Text generation | Developers | Replies sampled with the settings you choose |
| Multilingual chat | Indian-language users | Answers in languages such as Hindi, Bengali and Telugu |
| Tool-calling assistants | Agent builders | A model the card says can call tools during voice calls |
pip install -U huggingface_hub hf download sarvamai/sarvam-30b
Load the model with the code below, then define the helper function. Call it with your prompt text, and it returns the decoded text, which includes your prompt followed by the model's continuation.
import torch from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig model_name = "sarvamai/sarvam-30b" tokenizer = AutoTokenizer.from_pretrained(model_name) model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True, device_map="auto")
def generate_text(
prompt: str,
max_new_tokens: int = 2048,
temperature: float = 0.8,
top_p: float = 0.95,
repetition_penalty: float = 1.0,
) -> None:
inputs = tokenizer(prompt, return_tensors="pt").to("cuda:0")
generation_config = GenerationConfig(
max_new_tokens=max_new_tokens,
repetition_penalty=repetition_penalty,
temperature=temperature,
top_p=top_p,
do_sample=True,
)
with torch.no_grad():
output_ids = model.generate(
input_ids=inputs["input_ids"],
attention_mask=inputs["attention_mask"],
generation_config=generation_config,
)
return tokenizer.decode(output_ids[0], skip_special_tokens=True)| Setting | Default in the card's code | What it does |
|---|---|---|
| max_new_tokens | 2048 | Caps how many new tokens a reply can have |
| temperature | 0.8 | Controls how varied the wording is |
| top_p | 0.95 | Limits sampling to the most likely tokens |
| repetition_penalty | 1.0 | Leaves repeats unpenalized |
You load the model and call the helper with a short question in Hindi. After the weights finish loading, it returns the question plus the model's answer as one block of text.
If you are new, start with the defaults and a short prompt, and watch the memory use on your GPU. Then change the temperature to see how the wording shifts.
Experts will note the card lists 19 layers, 128 experts with one shared expert, and top-6 routing for each token. It uses grouped key-value attention with 4 heads and a large rope theta of 8e6 for stable long context without RoPE scaling. The design favors speed and low memory over depth.
A mixture-of-experts language model from Sarvam AI with 32.2B parameters and 2.4B active per token, built for practical use in English and many Indian languages. Needs an NVIDIA GPU for the card's sample code.
Made by sarvamai on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: Sarvam-30B is a mixture-of-experts language model from Sarvam AI with 32.2 billion parameters in total and 2.4 billion non-embedding parameters active for each token. The card aims it at practical deployment, with reasoning, coding and chat in Indian languages. It also says the model can handle multilingual voice calls that make tool calls.
Who it suits: Developers and researchers who want an open model for Indian languages and English, and who have an NVIDIA GPU. A larger sibling, Sarvam-105B, exists for people who want more capacity.
Industry | Who uses it | How they use it | Example
Customer service | Support teams | Build chat and voice assistants in Indian languages | Answer a customer question in Tamil
Software | Developers | Add a multilingual open model to an app | Generate replies in Hindi from a script
Education | Teachers and learners | Practice and ask questions in many languages | Explain a math step in Marathi
Research | AI researchers | Study a small-active-parameter expert model | Compare it with other models near its size
Anyone who needs strong repair of code in big repositories can skip it, since the card's own table shows other models ahead on that test.
Where to use it:
Use case | Who | What they get back
Text generation | Developers | Replies sampled with the settings you choose
Multilingual chat | Indian-language users | Answers in languages such as Hindi, Bengali and Telugu
Tool-calling assistants | Agent builders | A model the card says can call tools during voice calls
How to set it up:
pip install -U huggingface_hub
hf download sarvamai/sarvam-30b
How to use it: Load the model with the code below, then define the helper function. Call it with your prompt text, and it returns the decoded text, which includes your prompt followed by the model's continuation.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig
model_name = "sarvamai/sarvam-30b"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True, device_map="auto")
def generate_text(
prompt: str,
max_new_tokens: int = 2048,
temperature: float = 0.8,
top_p: float = 0.95,
repetition_penalty: float = 1.0,
) -> None:
inputs = tokenizer(prompt, return_tensors="pt").to("cuda:0")
generation_config = GenerationConfig(
max_new_tokens=max_new_tokens,
repetition_penalty=repetition_penalty,
temperature=temperature,
top_p=top_p,
do_sample=True,
)
with torch.no_grad():
output_ids = model.generate(
input_ids=inputs["input_ids"],
attention_mask=inputs["attention_mask"],
generation_config=generation_config,
)
return tokenizer.decode(output_ids[0], skip_special_tokens=True)
Setting | Default in the card's code | What it does
max_new_tokens | 2048 | Caps how many new tokens a reply can have
temperature | 0.8 | Controls how varied the wording is
top_p | 0.95 | Limits sampling to the most likely tokens
repetition_penalty | 1.0 | Leaves repeats unpenalized
Example: You load the model and call the helper with a short question in Hindi. After the weights finish loading, it returns the question plus the model's answer as one block of text.
For newcomers and experts: If you are new, start with the defaults and a short prompt, and watch the memory use on your GPU. Then change the temperature to see how the wording shifts.
Experts will note the card lists 19 layers, 128 experts with one shared expert, and top-6 routing for each token. It uses grouped key-value attention with 4 heads and a large rope theta of 8e6 for stable long context without RoPE scaling. The design favors speed and low memory over depth.
Title: Scores the card reports for Sarvam-30B
Math500: 97.0
MBPP: 92.7
HumanEval: 92.1
MMLU: 85.1
MMLU Pro: 80.0
Live Code Bench v6: 70.0
Load the tokenizer and model
Turn the prompt into tokens
Generate text with the sampling settings
Decode the tokens back into text
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download sarvamai/sarvam-30b
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 7 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Sarvam-30B This page | 3,804 | 235 | 32.2B | apache-2.0 | |
| Qwen3-0.6BShares text-generation · conversational · transformers | 19,718,599 | 1,894 | 752M | apache-2.0 | |
| Qwen3-14BShares text-generation · conversational · transformers | 12,965,376 | 540 | 14.8B | apache-2.0 | |
| Qwen2.5-7B-InstructShares text-generation · conversational · transformers | 6,364,238 | 2,494 | 7.6B | apache-2.0 | |
| Qwen3-8BShares text-generation · conversational · transformers | 6,269,141 | 2,184 | 8.2B | apache-2.0 | |
| gpt-oss-20bShares text-generation · conversational · transformers | 5,685,450 | 5,299 | 20.9B | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.