Instructions to use brevitech/sarvam-30b-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use brevitech/sarvam-30b-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf brevitech/sarvam-30b-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf brevitech/sarvam-30b-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf brevitech/sarvam-30b-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf brevitech/sarvam-30b-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf brevitech/sarvam-30b-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf brevitech/sarvam-30b-gguf:Q4_K_M
Use Docker
docker model run hf.co/brevitech/sarvam-30b-gguf:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use brevitech/sarvam-30b-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "brevitech/sarvam-30b-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "brevitech/sarvam-30b-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/brevitech/sarvam-30b-gguf:Q4_K_M
- Ollama
How to use brevitech/sarvam-30b-gguf with Ollama:
ollama run hf.co/brevitech/sarvam-30b-gguf:Q4_K_M
- Unsloth Desktop
- Pi
How to use brevitech/sarvam-30b-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf brevitech/sarvam-30b-gguf:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "brevitech/sarvam-30b-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use brevitech/sarvam-30b-gguf with Docker Model Runner:
docker model run hf.co/brevitech/sarvam-30b-gguf:Q4_K_M
- Lemonade
How to use brevitech/sarvam-30b-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull brevitech/sarvam-30b-gguf:Q4_K_M
Run and chat with the model
lemonade run user.sarvam-30b-gguf-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use brevitech/sarvam-30b-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf brevitech/sarvam-30b-gguf:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default brevitech/sarvam-30b-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use brevitech/sarvam-30b-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf brevitech/sarvam-30b-gguf:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "brevitech/sarvam-30b-gguf:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Sarvam-30B-GGUF | Brevitech
Sarvam-30B-GGUF | Brevitech
A single-file, Q4_K_M quantised GGUF release of Sarvam-30B, optimised for local inference using llama.cpp, Ollama and compatible inference runtimes.
Developed and packaged independently by Brevitech, this release aims to make high-capability, multilingual AI models more accessible for local deployment.
Our objective is to bridge the gap between open-weight AI models and practical deployment by providing efficiently quantised model formats, transparent technical documentation, reproducible engineering workflows and practical hardware guidance.
This release enables developers, researchers and organisations to experiment with Sarvam-30B on locally available compute infrastructure, without requiring access to hosted inference APIs.
1. Model Overview
| Property | Details |
|---|---|
| Model | Sarvam-30B |
| Original Developer | Sarvam AI |
| Architecture | Mixture of Experts (MoE) |
| Parameters | Approximately 32 billion |
| Distribution Format | GGUF |
| Quantisation | Q4_K_M |
| File Format | Single-file GGUF |
| Primary Runtime | llama.cpp |
| Compatible Runtimes | Ollama, LM Studio, Jan |
| Deployment | Local / Self-hosted inference |
| License | Apache 2.0 |
Original model: sarvamai/sarvam-30b
Supported Languages
Sarvam-30B supports English and 22 Indian languages:
Hindi, Bengali, Tamil, Telugu, Marathi, Gujarati, Kannada, Malayalam, Punjabi, Odia, Assamese, Urdu, Sanskrit, Nepali, Sindhi, Konkani, Maithili, Dogri, Manipuri, Santali, Kashmiri and Bodo.
2. Original Model Architecture
The quantised release retains the underlying architecture of the original Sarvam-30B model.
| Parameter | Specification |
|---|---|
| Model Architecture | SarvamMoEForCausalLM |
| Architecture Identifier | sarvam_moe |
| Total Parameters | ~32 Billion |
| Decoder Layers | 19 |
| Attention Heads | 64 Query Heads |
| Key/Value Heads | 4 |
| Attention Mechanism | Grouped-Query Attention (GQA) |
| Hidden Dimension | 4,096 |
| Intermediate Dimension | 8,192 (Dense) / 1,024 (MoE) |
| Experts per Layer | 128 |
| Active Routed Experts per Token | 6 |
| Shared Experts | 1 |
| Maximum Context Window | 131,072 tokens |
| Vocabulary Size | 262,144 |
The model uses a Mixture-of-Experts architecture, activating a subset of experts during token generation rather than routing every token through all available experts.
This architecture helps reduce computational requirements during inference while retaining the capacity of a substantially larger parameterised network.
3. Quantisation and Compression
This release uses Q4_K_M (4-bit K-Quant Medium), a mixed-precision quantisation scheme implemented in llama.cpp.
The quantisation process reduces model storage requirements while retaining a greater degree of numerical precision in selected tensors.
Quantisation characteristics
| Component | Quantisation |
|---|---|
| Primary weight tensors | Q4_K |
| Selected sensitive tensors | Q6_K |
| Normalisation and selected tensors | F32 |
The Q4_K_M scheme uses 4-bit block quantisation for most model weights, with selected tensors retained at higher precision to help preserve numerical accuracy.
Original vs Quantised Model: Storage Comparison
The following comparison uses the recorded model artifact sizes.
| Property | Original Model | FP16 GGUF Baseline | Brevitech Release |
|---|---|---|---|
| Model | Sarvam-30B | Sarvam-30B | Sarvam-30B |
| Format | Safetensors | GGUF | GGUF |
| Precision | FP32 | FP16 | Q4_K_M |
| Storage | 128.61 GB | 64.34 GB | 19.58 GB |
| Size (GiB) | 119.78 GiB | 59.92 GiB | 18.23 GiB |
| Exact Bytes | 128,611,480,816 | 64,339,518,144 | 19,579,101,888 |
| Reduction vs Original | Baseline | 49.97% | 84.78% |
Hardware
| Component | Specification |
|---|---|
| GPU | NVIDIA GeForce RTX 5090 |
| GPU Memory | 32 GB GDDR7 |
| CPU | Intel Core i9-14900KS |
| CPU Configuration | 24 Cores / 32 Threads |
| System Memory | 64 GB RAM |
| Storage | 1.8 TB NVMe PCIe SSD |
Software Environment
| Component | Specification |
|---|---|
| Operating System | Ubuntu 22.04 LTS |
| Kernel | 6.8.0-149-generic |
| NVIDIA Driver | 595.99.02 |
| CUDA Runtime | 13.5 |
| Conversion Toolchain | llama.cpp |
| llama.cpp Commit | 8bf88ba93 |
| Build | 12558 |
| CUDA Architecture | sm_120a |
| Build Features | CUDA, FlashAttention |
The conversion and quantisation workflow was executed locally rather than through a hosted conversion service.
Consumer GPU Inference
The approximately 19.58 GB quantised artifact makes Sarvam-30B accessible across a range of consumer and workstation GPU configurations.
Actual performance depends on GPU memory, system RAM, memory bandwidth, context length, inference batch size, runtime configuration and the degree of GPU offloading.
A. Full GPU Offloading
Recommended GPU memory: 32 GB or higher for greater operating headroom.
Potential hardware:
- NVIDIA RTX 5090 (32 GB)
- NVIDIA RTX 4090 (24 GB)
- NVIDIA RTX 3090 (24 GB)
- NVIDIA RTX 6000 Ada (48 GB)
With sufficient available memory, the model's transformer layers can be fully offloaded to the GPU using:
-ngl 99
However, available VRAM must also accommodate runtime allocations, compute buffers and the KV cache.
Measured RTX 5090 performance:
| Metric | Observed Performance |
|---|---|
| Token Generation | 385.8 tokens/second |
| Prompt Evaluation | 226.5 tokens/second |
These are recorded benchmark results for the Brevitech test configuration. Performance on other hardware and workloads will vary.
Partial GPU Offloading
Suitable GPU memory: 12โ16 GB.
Potential hardware:
- RTX 4080 (16 GB)
- RTX 4070 Ti Super (16 GB)
- RTX 4070 (12 GB)
- RTX 3060 (12 GB)
Partial offloading allows a portion of the model layers to reside in GPU memory while the remaining weights are maintained in system RAM.
Depending on available memory and runtime configuration, approximately 8โ14 layers may be offloaded.
A minimum of 32 GB system RAM is recommended, with 64 GB providing greater operating headroom.
CPU-Only Inference
The GGUF format also enables CPU-based inference on systems without a dedicated GPU.
Recommended baseline:
- Modern multi-core CPU.
- At least 32 GB system RAM.
- SSD storage.
CPU inference is functional but generally slower than GPU-accelerated execution.
7. Hardware Compatibility Matrix
The following matrix provides indicative deployment guidance rather than guaranteed performance figures.
| Hardware | GPU Memory | Offloading | Expected Generation Speed | Assessment |
|---|---|---|---|---|
| RTX 5090 | 32 GB | Full | ~385 t/s (Measured) | Excellent |
| RTX 4090 / 3090 | 24 GB | Full, subject to runtime headroom | ~120โ180 t/s (Estimated) | High-performance |
| RTX 4080 / 4070 Ti Super | 16 GB | Partial | ~30โ60 t/s (Estimated) | Interactive |
| RTX 4070 / 3060 | 12 GB | Partial | ~15โ35 t/s (Estimated) | Functional |
| Apple Silicon | 32 GB+ unified memory | Metal | ~60โ110 t/s (Estimated) | Platform-dependent |
Important: These performance estimates are indicative. Actual results depend on the inference configuration, prompt length, generation settings, context allocation and system memory bandwidth. Full GPU offloading does not guarantee that the entire runtime will fit at the maximum advertised context length.
Deployment Instructions
Using llama.cpp
Clone and build llama.cpp with CUDA support:
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build \
-DGGML_CUDA=ON \
-DCMAKE_BUILD_TYPE=Release
cmake --build build \
--config Release \
-j$(nproc)
Run the quantised model:
./build/bin/llama-cli \
-m sarvam-30b-brevitech-Q4_K_M.gguf \
-ngl 99 \
-c 4096 \
-p "Explain the significance of education in three concise points:" \
--temp 0.7
The -ngl 99 parameter requests maximum GPU layer offloading. Actual offloading is constrained by available memory.
Using Ollama
Create a file named Modelfile:
FROM ./sarvam-30b-brevitech-Q4_K_M.gguf
PARAMETER num_ctx 4096
PARAMETER temperature 0.7
Import the model:
ollama create sarvam-30b -f Modelfile
Run inference:
ollama run sarvam-30b "Namaste! Please introduce yourself."
Alternatively, pull and run directly from Hugging Face:
ollama run hf.co/brevitech/sarvam-30b-gguf:Q4_K_M
Using LM Studio or Jan
- Download
sarvam-30b-brevitech-Q4_K_M.gguf. - Import the GGUF file into LM Studio or Jan.
- Select the model in the inference interface.
- Configure GPU offloading based on available VRAM.
- Set the context length according to available memory.
- Start local inference.
Cryptographic Provenance
The following information identifies the distributed quantised artifact.
| Property | Value |
|---|---|
| Filename | sarvam-30b-brevitech-Q4_K_M.gguf |
| File Size | 19,579,101,888 bytes |
| Decimal Size | 19.58 GB |
| Binary Size | 18.23 GiB |
| SHA-256 | 8b66dcc5223e0d30445be0faae1b42558a79d1647e1e70f6160d0f9589b848a6 |
The SHA-256 checksum can be used to verify the integrity of the downloaded artifact.
Verify using:
sha256sum sarvam-30b-brevitech-Q4_K_M.gguf
The resulting hash should match the checksum published above.
Attribution and Acknowledgements
Original Model Development
Sarvam-30B was developed and trained by Sarvam AI.
Original repository:
https://huggingface.co/sarvamai/sarvam-30b
GGUF Conversion and Quantisation
Conversion, quantisation, packaging and deployment documentation were independently performed by Brevitech.
Engineering and Distribution
Brevitech provides this release to support accessible, local and self-hosted inference of multilingual open-weight AI models.
Licensing
This release is distributed under the Apache License 2.0, subject to the licensing terms applicable to the original model and the included components.
The original model's licensing terms remain applicable to the underlying model.
Refer to the accompanying LICENSE and NOTICE files for relevant licensing and attribution information.
Disclaimer
This is an independent GGUF conversion and quantisation release
It is not an official release by Sarvam AI and does not imply any endorsement, sponsorship, partnership or affiliation with Sarvam AI.
Brevitech does not claim ownership of the original Sarvam-30B model or its underlying training assets.
The purpose of this release is to improve accessibility to open-weight AI models through practical engineering, efficient quantisation and local deployment.
- Downloads last month
- 1,464
4-bit