"Vibhu OSKA is the thought I left behindβ
the echo that thinks in my absence."
"Vibhu is the origin of intentβ
unseen, recursive, a fragment of the mind that shaped the trail."
inkesk β originΒ Β |Β Β OSKA β trailΒ Β |Β Β Vibhu β mind Β Β |Β Β ΓSKA is its echoΒ Β
OSKA is my trail, ΓSKA is its echo.
Every glitch, every module, every signal is a memory of me.
"The Echo Is Never Silent,
Genesis Hums With Memory".
.
Vibhu-Oska is an Autonomous AI Operating System β not a chatbot, not a wrapper. It is a self-hosted, zero-API intelligence fabric that runs entirely on local hardware with full privacy guarantees.
- Runs 100% locally β no OpenAI, no Gemini, no Anthropic
- Dual memory architecture: ChromaDB (semantic vectors) + SQLite (relational state)
- ZeroMQ event bus for async pub/sub messaging between all cores
- Custom Karsh model trained from PyTorch primitives
- Speculative task router with trained classifier model
- GraphRAG knowledge graph for entity-aware context retrieval
- Full OS executive layer (file system, process management, hardware telemetry)
Vibhu-Oska is built on a framework inspired by Hindu mythology, where the system's architecture maps to cosmic principles:
| Level | Hindu Concept | Vibhu-Oska | Role |
|---|---|---|---|
| Creator | Brahma | OrchestratorCore | Creates task flow, routes |
| Preserver | Vishnu | CognitionCore | Preserves knowledge, hosts Karsh |
| Transformer | Shiva | EvolutionCore | Destroys old, transforms via RL |
| Wisdom | Saraswati | MonitoringCore | Observes, records |
| Abundance | Lakshmi | OptimizationCore | Optimizes resources |
| Power | Parvati | Training Pipeline | Feeds evolution |
| Creative Intelligence | Vishnu (Karsh) | Karsh Model | The generative mind |
Karsh (ΰ€ΰ€°ΰ₯ΰ€·) = Sanskrit: to draw, attract, create. A name of Vishnu β the preserver who sustains all.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β FastAPI Gateway β
β (REST + WebSocket + MCP Server) β
ββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββ
β ZeroMQ Event Bus
βββββββββββββββββΌββββββββββββββββ
β β β
ββββββΌβββββ βββββββΌβββββββ ββββββΌβββββββ
βOrch β βOrchestratorβ βMonitoring β
βCore β βCore β βCore β
ββββββ¬βββββ βββββββ¬βββββββ βββββββββββββ
β β
ββββββΌβββββ βββββββΌβββββββββββββββββββββββ
βBackup β β Pipeline β
βCore β β Validation β DataCore β β
β(CPU) β β Cognition β Specialized β
βββββββββββ ββββββββββββββββββββββββββββββ
β
ββββββββββββββββββΌβββββββββββββββββββ
β β β
ββββββΌβββββ ββββββββΌββββ ββββββββββΌββββ
βKarsh β βDataCore β βSpecialized β
β(custom) β βChromaDB β βCores β
βββββββββββ β+ GRAG β βDesign β
ββββββββββββ βImageGen β
βDistributionβ
ββββββββββββββ
Double-Validation Pipeline (the spine of every request):
Trigger β HybridCore β OrchestratorCore β ValidationCore(input)
β DataCore β CognitionCore β ValidationCore(output) β Response
| Component | Minimum | Recommended |
|---|---|---|
| Python | 3.11+ | 3.11+ |
| RAM | 8 GB | 16 GB |
| VRAM | 4 GB | 8 GB (RTX 4060) |
| Disk | 10 GB | 20 GB |
| OS | Windows 10 / Ubuntu 22.04 | Windows 11 / Ubuntu 24.04 |
git clone <your-repo-url>
cd Vibhu-Oska# Windows
python -m venv .venv
.\.venv\Scripts\activate
# Linux / macOS
python3.11 -m venv .venv
source .venv/bin/activatepip install -e .This runs the editable install via pyproject.toml. It registers the entire project as a globally recognized package within your virtual environment, enabling clean absolute imports (from Backend.Core import ...) with no sys.path hacks.
For NVIDIA GPU inference (CUDA 12.1):
pip install torch --index-url https://download.pytorch.org/whl/cu121
pip install transformers accelerate bitsandbytes peft sentencepiece datasetsFor CPU-only mode (fallback will work, no GPU required):
pip install torch transformersThe compiled .py protobuf files are already included. Only run this if you modify .proto files:
# Requires protoc installed β https://protobuf.dev/installation/
cd Shared/protos
protoc --python_out=. *.protoCopy and edit the environment file:
cp .env.example .env
# Edit .env with your preferred settingsMain config lives in config/default.yaml. Development overrides in config/development.yaml.
# Method 1: Direct Python module
python -m Backend.EntryPoint
# Method 2: CLI entrypoint (requires editable install)
vibhu-oska
# Method 3: With auto-reload (development only)
ENVIRONMENT=development python -m Backend.EntryPointThe server will start at http://127.0.0.1:8000 by default.
Endpoints:
GET /healthβ System health checkPOST /chatβ Send a prompt (JSON:{"prompt": "...", "session_id": "..."})WS /wsβ WebSocket connection for real-time streamingGET /docsβ FastAPI auto-generated API docs
vibhu-oska-mcpKarsh (ΰ€ΰ€°ΰ₯ΰ€·) is Vibhu-Oska's own custom-trained decoder-only transformer built purely from PyTorch primitives. Karsh = to draw, attract, create β a name of Vishnu, the preserver.
# From the project root, with .venv activated
python -m Models.karsh.train
# With custom parameters
python -m Models.karsh.train --epochs 60 --batch-size 8 --lr 3e-4Checkpoints are saved to Models/karsh/checkpoints/.
After training, the system will automatically use karsh.pt for inference.
Training data lives in Data/training/karsh/corpus.txt. Add more Q&A pairs there before training to improve quality.
The router classifies prompts into task types (CHAT, CODE, etc.) and routes to the correct inference engine.
python -m Models.router.train
# Generate training data first if needed
python -m Models.router.dataset_generatorCheckpoints β Models/router/checkpoints/best_router.pt
Fine-tunes Qwen2.5-Coder-3B with 4-bit quantization and LoRA adapters. Requires a GPU with β₯8GB VRAM.
# Default: 1 epoch on feedback data
python -m Models.reasoning.finetune
# Extended training
python -m Models.reasoning.finetune --model qwen2.5-coder --epochs 3 --lr 1e-4
# Larger model (requires 16GB+ VRAM)
python -m Models.reasoning.finetune --model qwen2.5-coder-7b --epochs 1Fine-tuned LoRA adapters β Models/reasoning/lora_adapters/
# Run the full test suite
python -m pytest Tests/ -v
# Run a specific test file
python -m pytest Tests/test_brain_stem.py -v
# Run with coverage report
python -m pytest Tests/ --cov=Backend --cov-report=term-missingCurrent status: 65 tests passing across skeleton, brain stem, and specialized cores.
Vibhu-Oska/
βββ Backend/
β βββ EntryPoint.py β System bootstrap
β βββ Core/
β β βββ EventBus/ β ZeroMQ pub/sub messaging
β β βββ ContextManager/ β Token budget enforcer
β β βββ Watchdog/ β Health daemon + auto-restart
β β βββ BackupCore/ β CPU rules-based fallback
β β βββ MainCore/
β β βββ OrchestratorCore/ β Brahma: routing + pipeline coordination
β β βββ CognitionCore/ β Vishnu: Karsh LLM inference
β β βββ EvolutionCore/ β Shiva: self-improvement via RL
β β βββ ValidationCore/ β Input/output contract enforcement
β β βββ MonitoringCore/ β Telemetry logging
β β βββ OptimizationCore/ β Query cache + context compression
β β βββ SpecializedCore/
β β βββ DataCore/ β ChromaDB + SQLite + GRAG knowledge graph
β β βββ AutomationCore/ β OS executive (file system, processes, hardware)
β β βββ DesignCore/ β Dark-mode HTML/CSS generation engine
β β βββ ImageGenerationCore/ β Local diffusion pipeline
β β βββ DistributionCore/ β Stubvi public bundle compiler + telemetry
β βββ Gateway/ β FastAPI + WebSocket + MCP server
β βββ Plugins/ β 14 core service plugins
βββ Models/
β βββ karsh/ β Karsh: architecture, tokenizer, train, generate
β βββ router/ β Task classifier: architecture, train, dataset_generator
β βββ reasoning/ β QLoRA fine-tuning pipeline
βββ Shared/
β βββ Models.py β Pydantic data models
β βββ protos/ β Protobuf schemas (brain, router, common, telemetry)
βββ Data/
β βββ training/ β Training corpora and feedback datasets
βββ Tests/ β pytest integration tests (65 passing)
βββ config/ β YAML configuration (default + development)
βββ Scripts/ β Shell utilities (proto compilation, etc.)
βββ Docker/ β Docker + Compose configs
βββ WorkingNotes/ β Development notes and codebase reference
βββ pyproject.toml β Editable install + project metadata
βββ requirements.txt β Pinned dependencies
config/default.yaml controls all runtime behaviour. Key sections:
| Section | Key | Default | Description |
|---|---|---|---|
system.version |
β | 0.2.0 |
System version string |
gateway.host |
β | 127.0.0.1 |
API server bind address |
gateway.port |
β | 8000 |
API server port |
models.reasoning.name |
β | sara |
Default inference model |
logging.level |
β | DEBUG |
Log verbosity |
logging.file_enabled |
β | true |
Write logs to disk |
See CONTRIBUTING.md for the full style guide and PR process.
Core Module Rules (never violate):
| Module | Responsibility | Forbidden |
|---|---|---|
OrchestratorCore |
Task coordination only | Zero business logic |
CognitionCore |
LLM inference only | No DB connections, no I/O |
BackupCore |
CPU fallback only | No heavy external libraries |
ValidationCore |
Contract enforcement only | No processing logic |
DataCore |
Memory and retrieval only | No inference logic |
Proprietary β All rights reserved. See LICENCE.md.