3 Downloads Updated 2 weeks ago
ollama run yakkshit/neurograph
A production-grade Cognitive Router that thinks in Knowledge Graphs, not tokens.
NeuroGraph bridges natural language queries with deep semantic ontologies, deterministic code verification, and real-time inference.
Traditional LLMs are expensive, slow, and act as βblack boxes.β You ask a question, get an answer, but have no idea how it arrived there.
NeuroGraph is different. Itβs a 17.8M parameter Deep-Narrow transformer trained to: 1. Structure thoughts as knowledge graphs (nodes + edges) 2. Score confidence explicitly (0.0 to 1.0) 3. Route intelligently β handle 80% of queries locally, escalate only complex tasks
This saves 80% on AI costs while making decisions transparent and auditable.
ollama run yakkshit/neurograph "Debug this Python error: IndexError: list index out of range"
| Property | Value |
|---|---|
| Parameters | 17.8 Million |
| Architecture | Deep-Narrow Transformer (24 layers, dim=256) |
| Positional Encoding | Split-Half RoPE |
| Vocabulary | 8,192 (Custom BPE) |
| Quantization | Q4_K_M (4-bit) |
| Model Size | 13MB |
| Context Window | 512 tokens |
Unlike wide models, NeuroGraph uses 24 thin layers (dim=256) instead of a few wide ones. Research shows depth beats width for small parameter budgets β it forces the model to process information step-by-step, mimicking logical deduction.
Implements Rotary Position Embedding with split-half attention for efficient sequence modeling.
Trained on 35,668 examples from: - Code: Python instructions & debugging scenarios - Reasoning: GSM8K mathematical reasoning - Knowledge: QASC knowledge graphs - Synthetic: Custom MCP tool-calling patterns
NeuroGraph outputs structured JSON knowledge graphs, not raw text:
{
"output_type": "debug_graph",
"nodes": [
{
"id": "error",
"type": "issue",
"content": "Python IndexError: list index out of range",
"confidence": 0.95,
"source": "model_knowledge"
},
{
"id": "context",
"type": "code",
"content": "<NEEDS_MCP:read_file>",
"confidence": 0.4,
"source": "pending_mcp",
"mcp_tool": "read_file",
"mcp_args": {"path": "target.py"}
}
],
"edges": [
{"from": "error", "to": "context", "relation": "occurs_in"}
]
}
Use NeuroGraph as the first stage in a cascading inference system: - High confidence (β₯0.8): Return answer directly - Medium confidence (0.4-0.8): Trigger MCP tools to fetch live data - Low confidence (<0.4): Escalate to GPT-4/Claude with rich context
Automatically parse errors, identify root causes, and suggest fixes with confidence scores.
Transform natural language queries into structured semantic graphs for visualization or database storage.
Convert user intents into precise API calls with parameter extraction.
NeuroGraph exposes an OpenAI-compatible API when run with llama-cpp-python or deployed via Docker:
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:8000/v1",
api_key="not-needed"
)
response = client.chat.completions.create(
model="neurograph",
messages=[
{"role": "user", "content": "Debug this Python error: IndexError"}
],
temperature=0.1,
max_tokens=250
)
print(response.choices[0].message.content)
docker run -d -p 8000:8000 \
-e MODEL_PATH=/models/neurograph-q4_k_m.gguf \
-v ./models:/models \
yakkshit/neurograph-api
| Metric | Value |
|---|---|
| Inference Speed | ~50 tokens/sec on CPU (M1 Mac) |
| Memory Usage | ~100MB RAM |
| Cold Start | <2 seconds |
| Auto-scaling | 1-5 replicas on Azure Container Apps |
Engineered for production AI systems. NeuroGraph is part of the CedzLabs Cognitive Suite, designed to solve hallucination, opaque reasoning, and untraceable AI decisions.
License: MIT
Status: Production-Ready (2026 Standard)