How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf MohitM2/sruti-1.5b:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf MohitM2/sruti-1.5b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf MohitM2/sruti-1.5b:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf MohitM2/sruti-1.5b: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 MohitM2/sruti-1.5b:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf MohitM2/sruti-1.5b: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 MohitM2/sruti-1.5b:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf MohitM2/sruti-1.5b:Q4_K_M
Use Docker
docker model run hf.co/MohitM2/sruti-1.5b:Q4_K_M
Quick Links

Śruti — Hindu Philosophy Assistant (Qwen2.5-1.5B, LoRA fine-tune)

A LoRA fine-tune of Qwen2.5-1.5B-Instruct for conversational Q&A on Hindu philosophy — the Vedas, Upaniṣads, Bhagavad Gītā, and Vedānta — with Sanskrit terms in IAST/Devanāgarī and source citations.

What's included

File Description
model.safetensors + config/tokenizer Full merged model (base + adapter), fp16/bf16
sruti-Q4_K_M.gguf 4-bit quant, ~986 MB — recommended for most local use (Ollama, llama.cpp)
sruti-Q8_0.gguf 8-bit quant, ~1.65 GB — higher fidelity, larger

Also available on Ollama: MohitM2/sruti

Training

  • Method: LoRA (r=16, alpha=32, dropout=0.05) on attention + MLP projections, trained with transformers.Trainer (no trl).
  • Data: ~105 records — 85 single-turn philosophy Q&A (each with a cited source, woven into the trained answer), 10 greeting/small-talk examples, 10 multi-turn conversations (2 exchanges each). Multi-turn examples are masked so loss is computed on every assistant turn, not just the last one.
  • Checkpoint selection: evaluated every 5 steps against a held-out validation split; the checkpoint with the lowest validation loss was kept (not the final epoch), specifically to avoid shipping an overfit model. Validation loss bottomed out at step 25 of 165 total steps — training continued well past that point purely to give the selection process more candidates to compare.
  • Trained on a Kaggle T4 GPU.

Known limitations — read before trusting factual output

This model's fine-tuning data is small (~85 core facts). Verified by direct base-vs-fine-tuned comparison on held-out questions:

  • The greeting/conversational tone is a genuine improvement over just prompting the base model — it responds naturally to "hi"/"hello" instead of forcing every reply into an encyclopedia-style answer.
  • Response conciseness is also genuinely improved — the fine-tune reliably produces complete, well-formed answers, where the base model often trails off mid-sentence within the same token budget.
  • Factual reliability is not meaningfully better than the base model. On questions outside the training set's exact coverage, this model — like the base model — will confidently fabricate plausible-sounding Sanskrit quotes, verse numbers, and source attributions. Examples found in testing: misattributing which Upaniṣad or Gītā chapter a fact comes from, inventing a founder's name for a philosophical school, and occasionally blending Sāṅkhya's dualist framework with Vedāntic non-dualism.
  • The trained-in citation habit (*(Source: ...)* after most answers) can make hallucinated claims look more authoritative than they are. A confidently-cited wrong answer is easy to mistake for a correct one — verify anything load-bearing against a primary source.

In short: use this for tone, structure, and general orientation to concepts it was directly trained on; verify specifics (exact verses, historical dates, precise attributions) independently.

Usage

transformers:

from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("MohitM2/sruti-1.5b")
tokenizer = AutoTokenizer.from_pretrained("MohitM2/sruti-1.5b")

Ollama:

ollama run MohitM2/sruti
Downloads last month
230
Safetensors
Model size
2B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for MohitM2/sruti-1.5b

Adapter
(1293)
this model
Adapters
1 model