Downloads · 30 days
27
5% of all-time downloads
tifin-india/sarvam-m-24b-q5-k-s-gguf
sarvam-m-24b-q5-k-s-gguf is a machine learning model from tifin-india. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains the Q5KS quantized version of sarvam-m-24b in GGUF format.
Downloads · 30 days
27
5% of all-time downloads
All-time downloads
534
Public
Repo size
16.3 GB
Likes
1
Public
Click a slice to open those files.
.gguf16.3 GB · 100%
From the Hugging Face model README
This repository contains the Q5_K_S quantized version of sarvam-m-24b in GGUF format.
# Download the model
huggingface-cli download tifin-india/sarvam-m-24b-q5_k_s-gguf
# Run inference
./main -m sarvam-m-24b-Q5_K_S.gguf -p "Your prompt here"
from llama_cpp import Llama
# Load the model
llm = Llama(
model_path="./sarvam-m-24b-Q5_K_S.gguf",
n_ctx=2048, # Context length
n_gpu_layers=35, # Adjust based on your GPU
verbose=False
)
# Generate text
response = llm("Your prompt here", max_tokens=100)
print(response['choices'][0]['text'])
from transformers import AutoTokenizer
from auto_gptq import AutoGPTQForCausalLM
model_name = "tifin-india/sarvam-m-24b-q5_k_s-gguf"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoGPTQForCausalLM.from_quantized(model_name)
| Aspect | Rating |
|---|---|
| Speed | ⭐⭐ |
| Quality | ⭐⭐⭐⭐ |
| Memory | ⭐⭐ |
This is a quantized version of the original model. For the full-precision version and more details, please refer to the original model repository.
This model was quantized using llama.cpp's quantization tools. The Q5_K_S format provides a good balance of model size, inference speed, and output quality for most use cases.
This model follows the same license as the original model (Apache 2.0).
If you use this model, please cite the original model authors and acknowledge the quantization.