sarvam_moe architecture support to the converter and runtime.Will this work with Ollama / LM Studio / Jan?Not yet. These tools bundle mainline llama.cpp, which does not recognizesarvam_moe. You will see:error loading model: unknown model architecture: 'sarvam_moe'This GGUF requires a patched llama.cpp (with PR #20275 applied) until that PR merges into mainline. Once it does, Ollama / LM Studio / Jan will work automatically on their next update.To build a patched llama.cpp, use mtr7x/sarvam-gguf.
| File | Quant | Size | BPW | Notes |
|---|---|---|---|---|
| sarvam-30b-q4_k_m.gguf | Q4_K_M | 19 GB | 4.87 | Recommended — good balance of quality and size |
| sarvam-30b-f16.gguf | F16 | 60 GB | 16.00 | Full precision, use for further quantization |
1git clone https://github.com/mtr7x/sarvam-gguf.git
2cd sarvam-gguf
3chmod +x patch_and_convert.sh
4./patch_and_convert.sh1./llama-cli \
2 --model sarvam-30b-q4_k_m.gguf \
3 --n-gpu-layers 99 \
4 --ctx-size 2048 \
5 --temp 0.7 \
6 -no-cnv \
7 --prompt "भारत के बारे में बताइए।"| Tool | Status | Why |
|---|---|---|
| Ollama | unknown model architecture | Waiting on PR #20275 merge |
| LM Studio | unknown model architecture | Waiting on PR #20275 merge |
| Jan | unknown model architecture | Waiting on PR #20275 merge |
| llama.cpp (mainline) | unknown model architecture | PR #20275 not yet merged |
| llama.cpp (patched) | Works | This is what you need |
sarvamai/sarvam-30b
├── model_type: sarvam_moe
├── 30B params, 2.4B active
├── 19 layers (1 dense + 18 MoE)
├── 128 experts + 1 shared, top-6, sigmoid routing
├── 64 query heads, 4 KV heads, head_dim=64
├── vocab_size: 262,144 (Indic-optimized)
└── Apache 2.0model_type: "sarvam_moe" — the converter exits immediately. Contrary to what you might expect, sigmoid routing is already supported in llama.cpp (used by GLM4 and others). The actual blocker is a missing class registration + tensor mappings + C++ graph builder — all provided by PR #20275 (387 lines).PR #20275 merges into llama.cpp ← pending
→ GGUF can be created ← done (this repo)
→ Ollama updates its llama.cpp ← blocked
→ Unsloth applies dynamic quants ← blocked
→ ollama run sarvam-30b ← blocked| Runtime | Status |
|---|---|
| vLLM | PR #33942 merged |
| SGLang | Works |
| llama.cpp (patched) | Works (PR #20275) |
| llama.cpp (mainline) | Blocked — PR pending |
| Ollama | Blocked on llama.cpp |
| LM Studio | Blocked on llama.cpp |