Views
No views yet
1# Download the model
2huggingface-cli download tifin-india/sarvam-m-24b-q5_1-gguf
3
4# Run inference
5./main -m sarvam-m-24b-Q5_1.gguf -p "Your prompt here"1from llama_cpp import Llama
2
3# Load the model
4llm = Llama(
5 model_path="./sarvam-m-24b-Q5_1.gguf",
6 n_ctx=2048, # Context length
7 n_gpu_layers=35, # Adjust based on your GPU
8 verbose=False
9)
10
11# Generate text
12response = llm("Your prompt here", max_tokens=100)
13print(response['choices'][0]['text'])1from transformers import AutoTokenizer
2from auto_gptq import AutoGPTQForCausalLM
3
4model_name = "tifin-india/sarvam-m-24b-q5_1-gguf"
5tokenizer = AutoTokenizer.from_pretrained(model_name)
6model = AutoGPTQForCausalLM.from_quantized(model_name)| Aspect | Rating |
|---|---|
| Speed | ⭐⭐ |
| Quality | ⭐⭐⭐⭐ |
| Memory | ⭐⭐ |