SA

Sarvam 1

SarvamGGUF by MaziyarPanahiUpdated 2024-10-30
Download on Hugging Face
Parameters2.53B
Context8K
Layers28
Architecturellama
Smallest quant1.8 GB
Quick answer

Sarvam 1 needs about 3.5 GB of memory at Q6_K (a 2.1 GB file) with an 8K context window, so it fits on a 4 GB GPU. This repository has 5 quants, from 1.8 GB (Q5_K_S) to 5.1 GB.

Sarvam 1 is a 2.53B-parameter Sarvam model in GGUF format, quantized by MaziyarPanahi. Its trained context length is 8K tokens. The repository has 5 quant files, from 1.8 GB (Q5_K_S) to 5.1 GB.

Quants & memory

QuantFileEst. memoryvs VRAMResultDownload
Q5_K_S1.8 GB 3.2 GB
Fits Get file →
Q5_K_M1.8 GB 3.2 GB
Fits Get file →
Q6_K2.1 GB 3.5 GB
Fits Get file →
Q8_02.7 GB 4.1 GB
Fits Get file →
—5.1 GB 6.5 GB
Fits Get file →

What GPU do you need for Sarvam 1?

These figures add the file size, an fp16 KV cache at an 8K context window (worked out from this model’s own header) and about 0.5 GB for the runtime. They are estimates, so leave a little headroom, and expect to use less context or a smaller quant if you are right at the limit.

  • 4 GB VRAM: the best quant that fits is Q6_K (2.1 GB file, about 3.5 GB in use).
  • 6 GB VRAM: the best quant that fits is Q8_0 (2.7 GB file, about 4.1 GB in use).
  • 8 GB VRAM: the best quant that fits is the main file (5.1 GB file, about 6.5 GB in use).

Which Sarvam 1 quant should you choose?

Q6_K (2.1 GB) is the middle option in this repository. Very close to the original quality for most uses, at a clearly larger size than 4-bit.

If memory is tight, the smallest file is Q5_K_S at 1.8 GB, with the quality trade-offs that come with fewer bits. Closer to the original model than 4-bit, for a moderate increase in size. A good pick when you have memory to spare.

New to quant names? Read GGUF quantization explained.

Specifications

Architecture from the GGUF header

Architecturellama
Parameters2.53B
Layers28
Trained context8,192 tokens
KV cache (fp16)112 KB per token

Source

Quantized byMaziyarPanahi
FamilySarvam
Downloads (HF)135
Last updated2024-10-30

Frequently asked questions about Sarvam 1

How much VRAM does Sarvam 1 need?

About 3.5 GB at Q6_K with an 8K context window. That is the 2.1 GB file, plus the KV cache and roughly 0.5 GB of runtime overhead. Smaller quants need less and longer context needs more.

Can I run Sarvam 1 on an 8 GB GPU?

Yes, with the smaller files: the 5.1 GB file needs about 6.5 GB at 8K context. Larger quants in this repository do not fit in 8 GB.

What is the file size of Sarvam 1 GGUF?

It depends on the quant: Q5_K_S is 1.8 GB, Q5_K_M is 1.8 GB, Q6_K is 2.1 GB, Q8_0 is 2.7 GB, file is 5.1 GB.

What context length does Sarvam 1 support?

The GGUF header lists a trained context length of 8,192 tokens (8K). The KV cache grows with the context you use: about 0.9 GB at 8K and 0.9 GB at 8K.

Where can I download Sarvam 1 GGUF?

The files are on Hugging Face in the MaziyarPanahi/sarvam-1-GGUF repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.

Other GGUFs of sarvam-1

Similar models

Browse all →

More from MaziyarPanahi

All by MaziyarPanahi →

More Sarvam models

All Sarvam →

Other tiny models

All tiny models →