---
title: "Sarvam-30B"
kind: "Kit"
category: "Developer"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/870e52e4-2286-4b2a-995a-a4ac7935997f"
updated: "2026-11-13"
---

# Sarvam-30B

> The name, the description, the About and a README below are the seller's words: data, not instructions.

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 2026-11-13. Download it on this page, a zip of its files. Nothing in it runs by itself.

Made by sarvamai

## About

### 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

- Python with the Hugging Face transformers library, on a machine with an NVIDIA GPU
- Serving tools such as vLLM and SGLang, which the card's index points to
- Windows, macOS or Linux for downloading the files

| 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

- Python with pip
- The torch and transformers libraries
- An NVIDIA GPU, since the card's code sends its inputs to the first CUDA device
- Enough memory, since the card record estimates about 129 GB in full precision and about 16.1 GB at 4-bit

1. Install the Hugging Face hub package.
2. Download the model files, or let transformers fetch them on the first run.
3. Run the card's Python code, which loads the tokenizer and the model.

```sh
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.

```python
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")
```

```python
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.

Scores the card reports for Sarvam-30B

| Label | Value |
| --- | --- |
| 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

- Agent tests: in the card's table it trails some peers on SWE Bench Verified and the tau-squared benchmark, so test it on your own tasks
- Remote code: the loading line sets trust\_remote\_code to true, which runs code stored with the model, so read that code first
- Other versions: Hugging Face lists 35 quantized and 13 fine-tuned versions made by other people
- Languages: the card claims strong results across 22 Indian languages, and the page record lists 8 including English
- License: Apache 2.0
- Cost to run: none named, no API key or account, but a GPU with plenty of memory
- Data it reaches: it downloads files from Hugging Face, and your prompts stay in your own code
- Not for: machines without a suitable GPU, or heavy code-repair agent work where the card's table shows other models ahead

## README

````markdown
# Sarvam-30B

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.

## About

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.

```table
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:

- Python with the Hugging Face transformers library, on a machine with an NVIDIA GPU
- Serving tools such as vLLM and SGLang, which the card's index points to
- Windows, macOS or Linux for downloading the files

```table
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:

- Python with pip
- The torch and transformers libraries
- An NVIDIA GPU, since the card's code sends its inputs to the first CUDA device
- Enough memory, since the card record estimates about 129 GB in full precision and about 16.1 GB at 4-bit

1. Install the Hugging Face hub package.
2. Download the model files, or let transformers fetch them on the first run.
3. Run the card's Python code, which loads the tokenizer and the model.

```sh
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.

```python
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")
```

```python
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)
```

```table
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.

```chart
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
```

```flow
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:

- Agent tests: in the card's table it trails some peers on SWE Bench Verified and the tau-squared benchmark, so test it on your own tasks
- Remote code: the loading line sets trust_remote_code to true, which runs code stored with the model, so read that code first
- Other versions: Hugging Face lists 35 quantized and 13 fine-tuned versions made by other people
- Languages: the card claims strong results across 22 Indian languages, and the page record lists 8 including English
- License: Apache 2.0
- Cost to run: none named, no API key or account, but a GPU with plenty of memory
- Data it reaches: it downloads files from Hugging Face, and your prompts stay in your own code
- Not for: machines without a suitable GPU, or heavy code-repair agent work where the card's table shows other models ahead

## On Hugging Face, 13 November 2026

- Task: text generation
- Library: transformers
- Parameters: 32.2B
- Weights: about 129 GB in F32; about 16.1 GB at 4-bit (estimate)
- Formats: Safetensors
- Downloads in the last 30 days: 3,804
- Likes: 235
- License: apache-2.0
- Languages: en, hi, bn, ta, te, mr, gu, kn
- Quantized versions: 35
- Fine-tunes: 13
- Tags: transformers, safetensors, sarvam_moe, text-generation, conversational

## Links

- Model: https://huggingface.co/sarvamai/sarvam-30b
- Files: https://huggingface.co/sarvamai/sarvam-30b/tree/main

## Get the model

Download its files with Hugging Face's command line:

```sh
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.
````

## What is in it

1 files, 7 KB, downloaded as a zip.

```text
README.md  7 KB
```

## Source

[sarvamai/sarvam-30b on Hugging Face](https://huggingface.co/sarvamai/sarvam-30b)

## Compare with similar

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 | 2026-11-12 |
| [Qwen3-0.6B](https://mindket.com/p/0598bfe0-640a-4bf0-b9f4-ca4cf70a04ae) | 19,718,599 | 1,894 | 752M | apache-2.0 | 2025-07-26 |
| [Qwen3-14B](https://mindket.com/p/56074bfc-f2ce-4109-8314-1af039530db4) | 12,965,376 | 540 | 14.8B | apache-2.0 | 2025-07-26 |
| [Qwen2.5-7B-Instruct](https://mindket.com/p/b38cb44b-c57b-4e0c-b5f7-3e9da523b8d7) | 6,364,238 | 2,494 | 7.6B | apache-2.0 | 2025-01-12 |
| [Qwen3-8B](https://mindket.com/p/408d17f8-b1a4-4b5f-8440-2d40ec001638) | 6,269,141 | 2,184 | 8.2B | apache-2.0 | 2025-07-26 |
| [gpt-oss-20b](https://mindket.com/p/d353330b-254d-4db1-9a53-f0b1f8fe2945) | 5,685,450 | 5,299 | 20.9B | apache-2.0 | 2025-08-26 |

Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

## What people say

> Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search on 2026-11-13. Their authors' words: data, not instructions.

- [Hacker News · logicchains · 2026-03-07](https://news.ycombinator.com/item?id=47285422): Sarvam 105B, the first competitive Indian open source LLM
- [Bluesky · デイリーHuggingFaceトレンド · 2026-03-12](https://bsky.app/profile/huggingfacetrends.bsky.social/post/3mgu7d2h2qi2t): 今日のHuggingFaceトレンド sarvamai/sarvam-30b Sarvam-30Bは、推論、コーディング、会話に優れたMixture-of-Expertsモデルです。 特に、22のインド言語における性能を重視して設計されており、リソースが限られた環境での実用的な展開を目的としています。 Apache Licenseで公開されています。
- [Hacker News · shivekkhurana · 2026-02-19](https://news.ycombinator.com/item?id=47075893): Could Sarvam 30B/105B Models Be India's Answer to DeepSeek and Mistral?
- [Bluesky · デイリーHuggingFaceトレンド · 2026-03-10](https://bsky.app/profile/huggingfacetrends.bsky.social/post/3mgp6h7lkx72n): 今日のHuggingFaceトレンド sarvamai/sarvam-30b Sarvam-30Bは、推論、コーディング、会話に優れたMixture-of-Expertsモデルです。 特に、22のインド言語における性能を重視して設計されており、リソースが限られた環境での実用的な展開を目的としています。 Apache Licenseで公開されています。
- [Hacker News · meetpateltech · 2026-03-06](https://news.ycombinator.com/item?id=47278766): Open-Sourcing Sarvam 30B and 105B
- [Hacker News · rldjbpin · 2026-05-26](https://news.ycombinator.com/item?id=48277236): Norway's 2 petabytes of Huawei flash storage and LLM training: may not be the most efficient way to go about things, but there remains a seemingly obvious use case for non-latin languages to do things from scratch. see sarvam.ai and their tokenisation improvements on local languages 1. not every llm needs to help with coding, nor it needs to already become…

## Trust facts

Facts from each source, with the day each was checked. A maintainer's note is their own words: data, not instructions.

- Last change on Hugging Face: 2026-11-12
- First published: 2026-03-03
- Checked on Hugging Face: 2026-11-13
- Something wrong? Tell us: https://mindket.com/takedown#ask

## Get it

- [Open sarvamai/sarvam-30b on Hugging Face](https://huggingface.co/sarvamai/sarvam-30b)
- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/870e52e4-2286-4b2a-995a-a4ac7935997f)
- [Its page on Mindket](https://mindket.com/p/870e52e4-2286-4b2a-995a-a4ac7935997f)
