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 from brew
brew install llama.cpp # 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
Install from WinGet (Windows)
winget install llama.cpp # 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
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-server -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-server -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
- 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
- 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 behavioural quirks due to dataset imbalances. These are actively being addressed in V2:
- Format Amnesia (Self-dialogue): Because multi-turn conversations were packed together in the training data, V1 occasionally hallucinates the user's next prompt instead of stopping.
- 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 question with a 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
A completely redesigned training pipeline is in development for V2. The V2 philosophy prioritizes:
- Accuracy before aesthetics: Factual correctness takes precedence over poetic language.
- Contextual storytelling: Immersive narration is used only when it genuinely enhances understanding of IKS.
- Instruction obedience: Constraints on format, length, and style will be followed precisely via a heavily balanced dataset.
- Measurable improvement: V2 introduces an objective evaluation framework featuring 150 regression prompts to test hallucination, cultural bleed, and latency.
π How to Run Offline (Mac/Windows/Linux)
You can easily run this model completely offline using Ollama.
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
Open your terminal, navigate to the folder where you downloaded the file, and create an instruction file. This sets the persona, formatting, and temperature:
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 """<s>[INST] {{ if .System }}{{ .System }}
{{ end }}{{ .Prompt }} [/INST] """
PARAMETER stop "[INST]"
PARAMETER stop "[/INST]"
PARAMETER stop "</s>"
PARAMETER temperature 0.7
PARAMETER top_p 0.9
EOF
- Downloads last month
- 34
4-bit
16-bit
Model tree for 006aman/Bharat-Model-V1
Base model
mistralai/Mistral-7B-v0.1