Downloads · 30 days
18
5% of all-time downloads
dhrubasumatary/sarvam-1-quantized
sarvam-1-quantized is a text generation model from dhrubasumatary. Use it when you need the model to write or continue text.
The Sarvam-1 quantized model is a reduced-size version of the original Sarvam-1 model, specifically optimized for efficient inference on local machines using Ollama or similar tools. This quantization preserves the mo…
Downloads · 30 days
18
5% of all-time downloads
All-time downloads
360
Public
Repo size
5.1 GB
Likes
0
Public
Click a slice to open those files.
.gguf5.1 GB · 100%
From the Hugging Face model README
The Sarvam-1 quantized model is a reduced-size version of the original Sarvam-1 model, specifically optimized for efficient inference on local machines using Ollama or similar tools. This quantization preserves the model's capabilities while significantly lowering the computational requirements, making it accessible for wider use.
This model is particularly effective for generating text in 10 Indic languages (bn, gu, hi, kn, ml, mr, or, pa, ta, te) and maintains competitive performance compared to larger models like Llama-3.1-8B.
While specific quantitative performance metrics for the quantized model are not provided, it is expected to exhibit similar capabilities to the original Sarvam-1 model, particularly in handling text generation tasks in Indian languages.
To utilize the quantized model, follow the instructions below:
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load model and tokenizer
model_name = "your_username/sarvam-1-quantized" # Replace with your model's path
model = AutoModelForCausalLM.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
# Example usage
text = "कर्नाटक की राजधानी है:"
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=5)
result = tokenizer.decode(outputs[0])
print(result)