Downloads · 30 days
15
7% of all-time downloads
neuralnets/sarvam-30b-8bit
sarvam-30b-8bit is a machine learning model from neuralnets. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository provides an 8-bit quantized version of the base model sarvamai/sarvam-30b using bitsandbytes.
Downloads · 30 days
15
7% of all-time downloads
All-time downloads
217
Public
Parameters
32.2B
34.4 GB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors34.4 GB · 100%
How the weights are stored.
I830B · 93%
From the Hugging Face model README
This repository provides an 8-bit quantized version of the base model sarvamai/sarvam-30b using bitsandbytes.
8-bit quantization reduces memory usage while maintaining very high model quality.
Base model
sarvamai/sarvam-30b
Architecture
SarvamMoEForCausalLM
Quantization method: BitsAndBytes 8-bit
Configuration used:
Approximate GPU memory usage:
| Model | GPU VRAM |
|---|---|
| FP16 original | ~60 GB |
| 8-bit | ~30 GB |
This version provides near-FP16 quality while using roughly half the memory.
Install dependencies.
pip install transformers accelerate bitsandbytes torch safetensors
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"neuralnets/sarvam-30b-8bit",
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(
"neuralnets/sarvam-30b-8bit",
trust_remote_code=True
)
prompt = "Explain mixture of experts in simple terms."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=200
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Recommended GPUs:
CPU RAM recommendation:
trust_remote_code=True due to the Sarvam architecture.Original model repository:
sarvamai/sarvam-30b
Refer to the base model page for detailed information about training and architecture.
This repository distributes a quantized derivative of the upstream model.
Users must comply with the license of the original model:
sarvamai/sarvam-30b