Downloads · 30 days
137
3% of all-time downloads
mastersubhajit/sarvam-30b-AWQ-4bit
sarvam-30b-AWQ-4bit is a machine learning model from mastersubhajit. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as other.
This model is a quantized version of the Sarvam-30B multilingual Mixture-of-Experts (MoE) large language model. It was compressed using Activation-Aware Weight Quantization (AWQ) into a 4-bit representation at the Nat…
Downloads · 30 days
137
3% of all-time downloads
All-time downloads
4.1K
Public
Parameters
6.8B
21.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors20.9 GB · 100%
How the weights are stored.
I3229.2B · 91%
From the Hugging Face model README
This model is a quantized version of the Sarvam-30B multilingual Mixture-of-Experts (MoE) large language model. It was compressed using Activation-Aware Weight Quantization (AWQ) into a 4-bit representation at the National Electronics and Computer Technology Center (NECTEC), Thailand, in collaboration with the Asian Institute of Technology (AIT).
The primary objective of this model is to substantially reduce the GPU memory and storage requirements needed to run the 32-billion parameter MoE architecture, making it highly suitable for consumer GPUs and resource-constrained inference environments while preserving multilingual reasoning and language capabilities.
Another more advanced quantized model is available, the Sarvam-30B-AWQ-GPTQ-Hybrid is caliberated on multiple datasets which seems to perform slightly better compared the regular quantized models.
mastersubhajit)sarvam_moe (Mixture-of-Experts)The standard sarvam_moe sparse MoE structure requires customized handling for quantization to preserve the model's routing stability and output quality.
The model was quantized using standard Activation-Aware Weight Quantization (AWQ), which leverages activation information from the calibration dataset to identify channels that contribute strongly to model outputs. Scaling was applied to reduce the error associated with important channels instead of quantizing all weights identically.
To maintain structural and reasoning integrity, not all layers were converted to 4-bit. Sensitive components were explicitly retained in higher precision (BF16):
mlp.gate): Retained in BF16 to ensure that the expert selection path is completely preserved without numerical interference.The AWQ model was evaluated alongside the original BF16 model using a strict conditional log-probability scoring method (to eliminate generation/sampling variance) on the LANTA HPC system.
| Benchmark | Configuration | AWQ 4-bit Score (%) | BF16 Reference Score (%) |
|---|---|---|---|
| MMLU | 57 English subjects | 42.78 | 43.40 |
| GPQA Diamond | English | 28.41 | 29.67 |
| MMLU-Indic | Hindi, 5-shot | 50.06 | 52.10 |
| MMLU-Indic | English, 5-shot | 61.48 | 63.80 |
| ARC-Indic | Hindi, 25-shot | 75.02 | 76.21 |
| ARC-Indic | English, 25-shot | 81.15 | 83.49 |
| BBH | 3-shot exact match | 58.62 | 63.22 |
| GSM8K | 5-shot direct answering | 63.94 | 72.45 |
| GSM8K | 8-shot chain-of-thought | 76.86 | 72.71* |
| ARC-Challenge | Multiple-choice accuracy | 27.34 | 29.11 |
(Note: The chain-of-thought GSM8K result for the quantized model exceeded the BF16 baseline under this specific evaluation protocol, likely due to prompt sensitivity or evaluation variance rather than an intrinsic improvement in mathematical reasoning.)
This model is configured for GEMM weight-packing, meaning it is specifically optimized for batched evaluation and OpenAI-compatible inference serving.
During testing, the model successfully demonstrated its ability to:
This 4-bit model serves as a practical solution for developers and institutions wishing to run the Sarvam-30B architecture in environments constrained by GPU memory. It sacrifices a minimal amount of aggregate accuracy for massive gains in deployment flexibility and reduced inference costs.
Developed by Subhajit Ghosh at the National Electronics and Computer Technology Center (NECTEC), Thailand.