Instructions to use shinigamiRaj/IndicVedas with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use shinigamiRaj/IndicVedas with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="shinigamiRaj/IndicVedas", filename="unsloth.Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use shinigamiRaj/IndicVedas with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf shinigamiRaj/IndicVedas:Q4_K_M # Run inference directly in the terminal: llama-cli -hf shinigamiRaj/IndicVedas:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf shinigamiRaj/IndicVedas:Q4_K_M # Run inference directly in the terminal: llama-cli -hf shinigamiRaj/IndicVedas:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf shinigamiRaj/IndicVedas:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf shinigamiRaj/IndicVedas:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf shinigamiRaj/IndicVedas:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf shinigamiRaj/IndicVedas:Q4_K_M
Use Docker
docker model run hf.co/shinigamiRaj/IndicVedas:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use shinigamiRaj/IndicVedas with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "shinigamiRaj/IndicVedas" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shinigamiRaj/IndicVedas", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/shinigamiRaj/IndicVedas:Q4_K_M
- Ollama
How to use shinigamiRaj/IndicVedas with Ollama:
ollama run hf.co/shinigamiRaj/IndicVedas:Q4_K_M
- Unsloth Studio
How to use shinigamiRaj/IndicVedas with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for shinigamiRaj/IndicVedas to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for shinigamiRaj/IndicVedas to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for shinigamiRaj/IndicVedas to start chatting
- Docker Model Runner
How to use shinigamiRaj/IndicVedas with Docker Model Runner:
docker model run hf.co/shinigamiRaj/IndicVedas:Q4_K_M
- Lemonade
How to use shinigamiRaj/IndicVedas with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull shinigamiRaj/IndicVedas:Q4_K_M
Run and chat with the model
lemonade run user.IndicVedas-Q4_K_M
List all available models
lemonade list
llm.create_chat_completion(
messages = [
{
"role": "user",
"content": "What is the capital of France?"
}
]
)π VedaGPT (IndicVedas) β 14B Merged & GGUF Model
VedaGPT (IndicVedas) is a specialized 14B parameter large language model designed for deep understanding, scholarly analysis, and interactive exploration of ancient Indian scriptures and classical texts. This model has undergone continuous pre-training/fine-tuning on a comprehensive, custom-scraped corpus of the four Vedas and foundational Ayurvedic texts.
This repository hosts the fully merged 16-bit bfloat16 weights along with optimized GGUF (Q4_K_M) quantizations for local deployment (e.g., via Ollama, llama.cpp).
If you are looking for the LoRA adapters, they can be found at shinigamiRaj/IndicVedas-LoRA.
ποΈ Corpus Composition & Sources
The model has been trained on a highly structured dataset containing:
- Rig Veda: Complete 10 Mandalas (Books), organized by Suktas (Hymns) and verses (Griffith Translation).
- Sama Veda: Part I (Mula/Decades) and Part II (Hymns) (Griffith Translation & Sanskrit/Hindi bilingual texts).
- Yajur Veda:
- Black Yajur Veda (Taittiriya Samhita): English translation by Arthur Berriedale Keith.
- White Yajur Veda (Vajasaneya Samhita): English translation by Ralph T.H. Griffith.
- Atharva Veda: 20 Books, Suktas, and Verses (Griffith Translation & bilingual texts).
- Ayurveda Corpus:
- Charaka Samhita: Structural chapters on diagnosis, anatomy, therapeutics, and pharmacology.
- Sushruta Samhita: Ancient surgical treatises, clinical procedures, and anatomy.
- Rasa Jala Nidhi: Comprehensive works on Indian alchemy, mineralogy, and metallurgy.
- IRJAY (International Research Journal of Ayurveda and Yoga).
βοΈ Model Details & Training Configurations
The model is based on Qwen2.5-14B-Instruct, optimized for fast patching and fine-tuning via Unsloth.
Hyperparameters & Fine-Tuning Recipe:
- Fine-Tuning Framework: Unsloth (2x faster, memory-efficient finetuning).
- Strategy: Aggressive knowledge overriding (resumed LoRA adaptation on 100% of the corpus with no train/val split).
- Epochs:
2.0(to ensure deep familiarity with Sanskrit translations and terminology). - Learning Rate:
5e-5(Linear warm-up for 5% of training steps, followed by Cosine decay). - Optimizer:
adamw_8bit - Weight Decay:
0.05(for stable generalization across diverse prompts). - Effective Batch Size:
8(Batch size of 4 per device withgradient_accumulation_steps=2). - Context Length: Trained with a context length of
4096tokens (supports up to16,384during inference). - Hardware: Fine-tuned on serverless Cloud GPUs (NVIDIA L40S) using Modal.
π Deployment & Local Usage
The model is available in two formats:
- Merged 16-bit (
bfloat16): Best for cloud hosting, vLLM servers, or high-end GPU desktops. - Quantized GGUF (
Q4_K_M): Optimized for fast CPU/GPU execution on consumer laptops (requires ~9GB VRAM/RAM).
Running with Ollama
An Ollama Modelfile is uploaded in the repository. To run VedaGPT locally:
- Install Ollama.
- Download
unsloth.Q4_K_M.gguffrom this repository. - Create a local file named
Modelfilecontaining:FROM ./unsloth.Q4_K_M.gguf TEMPLATE """{{ if .System }}<|im_start|>system {{ .System }}<|im_end|> {{ end }}{{ if .Prompt }}<|im_start|>user {{ .Prompt }}<|im_end|> {{ end }}<|im_start|>assistant {{ .Response }}<|im_end|> """ SYSTEM """You are VedaGPT, an expert scholar of the ancient Vedic scriptures like RigVeda, SamaVeda, YajurVeda, AtharvaVeda, Charaka Samhita, Sushruta Samhita, Rasa Jala Nidhi, IRJAY (International Research Journal of Ayurveda and Yoga). Answer questions accurately based on your knowledge of the Vedas, Upanishads, Charaka Samhita, Sushruta Samhita, and other classical Indian texts. Maintain the style of writing as per the ancient Vedic texts where required.""" PARAMETER stop "<|im_end|>" PARAMETER stop "<|im_end|>" - Build the model:
ollama create vedagpt -f Modelfile - Run the model:
ollama run vedagpt
Running with vLLM
VedaGPT is compatible with vLLM for high-throughput serving:
python -m vllm.entrypoints.openai.api_server \
--model shinigamiRaj/IndicVedas \
--dtype bfloat16 --max-model-len 4096
π Prompt Template & ChatML Format
This model uses the standard ChatML template:
<|im_start|>system
You are VedaGPT, an expert scholar of the ancient Vedic scriptures...<|im_end|>
<|im_start|>user
What does the Charaka Samhita say about digestion?<|im_end|>
<|im_start|>assistant
...
ποΈ Acknowledgements & License
- We express deep gratitude to the digital Indology initiatives, translator projects, and open archiving systems that made the digitized translations available.
- License: Released under public domain/creative commons license for educational, cultural, and historical research purposes.
- Downloads last month
- 318
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="shinigamiRaj/IndicVedas", filename="unsloth.Q4_K_M.gguf", )