Instructions to use MohitM2/sruti-1.5b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use MohitM2/sruti-1.5b with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MohitM2/sruti-1.5b with 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
- LM Studio
- Jan
- Ollama
How to use MohitM2/sruti-1.5b with Ollama:
ollama run hf.co/MohitM2/sruti-1.5b:Q4_K_M
- Unsloth Studio
How to use MohitM2/sruti-1.5b 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 MohitM2/sruti-1.5b 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 MohitM2/sruti-1.5b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for MohitM2/sruti-1.5b to start chatting
- Pi
How to use MohitM2/sruti-1.5b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MohitM2/sruti-1.5b:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "MohitM2/sruti-1.5b:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use MohitM2/sruti-1.5b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MohitM2/sruti-1.5b:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default MohitM2/sruti-1.5b:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use MohitM2/sruti-1.5b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MohitM2/sruti-1.5b:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "MohitM2/sruti-1.5b:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use MohitM2/sruti-1.5b with Docker Model Runner:
docker model run hf.co/MohitM2/sruti-1.5b:Q4_K_M
- Lemonade
How to use MohitM2/sruti-1.5b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MohitM2/sruti-1.5b:Q4_K_M
Run and chat with the model
lemonade run user.sruti-1.5b-Q4_K_M
List all available models
lemonade list
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_MUse 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_MBuild 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_MUse Docker
docker model run hf.co/MohitM2/sruti-1.5b:Q4_K_MŚ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(notrl). - 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
Install (macOS, Linux)
# 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