Instructions to use 006aman/Bharat-Model-V1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use 006aman/Bharat-Model-V1 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="006aman/Bharat-Model-V1", filename="Bharat-V1-7B-16bit-F16.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use 006aman/Bharat-Model-V1 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 006aman/Bharat-Model-V1:F16 # Run inference directly in the terminal: llama cli -hf 006aman/Bharat-Model-V1:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf 006aman/Bharat-Model-V1:F16 # Run inference directly in the terminal: llama cli -hf 006aman/Bharat-Model-V1:F16
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 006aman/Bharat-Model-V1:F16 # Run inference directly in the terminal: ./llama-cli -hf 006aman/Bharat-Model-V1:F16
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 006aman/Bharat-Model-V1:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf 006aman/Bharat-Model-V1:F16
Use Docker
docker model run hf.co/006aman/Bharat-Model-V1:F16
- LM Studio
- Jan
- Ollama
How to use 006aman/Bharat-Model-V1 with Ollama:
ollama run hf.co/006aman/Bharat-Model-V1:F16
- Unsloth Studio
How to use 006aman/Bharat-Model-V1 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 006aman/Bharat-Model-V1 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 006aman/Bharat-Model-V1 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for 006aman/Bharat-Model-V1 to start chatting
- Pi
How to use 006aman/Bharat-Model-V1 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf 006aman/Bharat-Model-V1:F16
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": "006aman/Bharat-Model-V1:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use 006aman/Bharat-Model-V1 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf 006aman/Bharat-Model-V1:F16
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 006aman/Bharat-Model-V1:F16
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use 006aman/Bharat-Model-V1 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf 006aman/Bharat-Model-V1:F16
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 "006aman/Bharat-Model-V1:F16" \ --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 006aman/Bharat-Model-V1 with Docker Model Runner:
docker model run hf.co/006aman/Bharat-Model-V1:F16
- Lemonade
How to use 006aman/Bharat-Model-V1 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull 006aman/Bharat-Model-V1:F16
Run and chat with the model
lemonade run user.Bharat-Model-V1-F16
List all available models
lemonade list
Bharat: Indian Knowledge Systems AI (V1)
Bharat is a custom-trained, 7-billion parameter language model fine-tuned specifically on Indian Knowledge Systems (IKS). It is designed to go beyond standard Wikipedia summaries and provide deep, culturally authentic insights into Indian history, Ayurveda, classical arts, and ancient heritage.
🛠️ Model Details
- Base Model: Mistral 7B (Mistral-7B-v0.1 base)
- Training Framework: Unsloth & Hugging Face
- Dataset: 15,001 curated instruction pairs distilled from 286 IKS texts using Gemini API.
- Format: 4-bit Quantized GGUF (
q4_k_m) for highly efficient local CPU/GPU inference.
⚠️ Known Limitations (V1)
Extensive real-world testing of Bharat V1 revealed several behavioral quirks due to dataset and training configuration imbalances:
- Chat Template Mismatch (Critical): During training, the instruction data was formatted using Llama 3 special tokens (
<|begin_of_text|>,<|eot_id|>) on a Mistral 7B base. Because Mistral's tokenizer does not natively map these as control tokens, V1 does not recognize normal stopping boundaries. - Format Amnesia (Self-dialogue): Multi-turn conversations were packed together, causing the model to generate the user's subsequent questions instead of stopping (e.g., typing "hii" causes it to write out a full question like "What is the Kumbh Mela?" and answer it itself).
- Over-Storytelling: The model heavily rewards poetic, sensory imagery. It struggles to provide concise, direct answers to simple utility questions (e.g., answering a math or programming question with a flowery philosophical story).
- Instruction Obedience: V1 struggles with strict formatting constraints (like JSON output or one-word replies) due to a lack of contrastive examples in the corpus.
- Runaway Responses: V1 frequently ends answers by inviting further discussion, leading to unnatural conversational loops.
🚧 Roadmap for Bharat V2 (In Progress - Data Phase Completed)
A completely redesigned training pipeline is currently under development. The V2 dataset preparation, quality cleaning, and audits are 100% complete, and the dataset is ready for the upcoming fine-tuning run.
The V2 improvements include:
- Chat Template Alignment: Training will adopt Mistral's native format (
<s>[INST]...[/INST]</s>) or align the base model to prevent tokenizer and stop-token errors. - System Prompt Integration: The core "Bharat" guide persona and behavioral constraints are baked directly into every single training example.
- Conversational Balance: Includes a new Greetings & Utility partition (10%) to handle simple introductions and non-IKS tasks, and a Knowledge Calibration partition (2%) to train refusal/hedging behaviors for uncertain or debated historical claims.
- Data Hygiene: 758 first-person memory hallucinations rewrote to third-person objective accounts; 109 fabricated academic citations stripped; gravity concepts refined to
ākarṣaṇa-śakti; and Aryabhata heliocentrism claims corrected to axial rotation.
🚀 How to Run V1 Offline (Mac/Windows/Linux)
Because of the Llama 3 chat template mismatch on the Mistral base model, you MUST configure Ollama to use Llama 3 special tokens as stop parameters. Otherwise, the model will experience runaway generation and self-dialogue loops.
1. Download the Weights
Download the iks-mistral-7b-q4_k_m.gguf file from the Files and versions tab in this repository.
2. Create the Modelfile
Create a file named Modelfile in the same directory as the GGUF model and add the following configuration:
cat << 'EOF' > Modelfile
FROM ./iks-mistral-7b-q4_k_m.gguf
SYSTEM "You are Bharat, an AI assistant specialized in Indian Knowledge Systems (IKS). You have deep knowledge of Ayurveda, Yoga, Indian philosophy, ancient architecture, classical music, mathematics, astronomy, and cultural heritage. Answer questions thoughtfully and accurately. If asked something outside IKS, gently redirect to a relevant Indian knowledge topic."
TEMPLATE """<|begin_of_text|>{{ if .System }}<|start_header_id|>system<|end_header_id|>
{{ .System }}<|eot_id|>{{ end }}<|start_header_id|>user<|end_header_id|>
{{ .Prompt }}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
"""
PARAMETER stop "<|eot_id|>"
PARAMETER stop "<|start_header_id|>"
PARAMETER temperature 0.7
PARAMETER top_p 0.9
EOF
3. Build and Run in Ollama
Run these commands in your terminal to build and launch the model:
# Create the local model in Ollama
ollama create Bharat -f Modelfile
# Run the model
ollama run Bharat
- Downloads last month
- 77
4-bit
16-bit
Model tree for 006aman/Bharat-Model-V1
Base model
mistralai/Mistral-7B-v0.1