How to use from
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 yakkshit/neurograph:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf yakkshit/neurograph:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf yakkshit/neurograph:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf yakkshit/neurograph: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 yakkshit/neurograph:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf yakkshit/neurograph: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 yakkshit/neurograph:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf yakkshit/neurograph:Q4_K_M
Use Docker
docker model run hf.co/yakkshit/neurograph:Q4_K_M
Quick Links

🧠 NeuroGraph: A Self-Aware Cognitive Router

NeuroGraph is a 17.8M parameter Deep-Narrow transformer designed to output structured knowledge graphs with per-node confidence scores.

🏒 Designed and engineered by CedzLabs

🎯 The Vision: Cascading Inference

Large Language Models are expensive and slow. NeuroGraph is designed as the "fast brain" in a cascading inference system:

  1. Analyze: NeuroGraph instantly parses the user query and builds an initial knowledge graph.
  2. Enrich: Low-confidence nodes trigger MCP (Model Context Protocol) tool calls to fetch live context (e.g., reading files, querying logs).
  3. Escalate: Very low-confidence nodes trigger smart escalation to larger models (GPT-4, Claude) with rich, pre-packaged context.

πŸ“Š Model Specifications

Property Value
Parameters 17.8 Million
Architecture Deep-Narrow (24 layers, dim=256, 8 heads)
Positional Encoding Split-Half RoPE (llama.cpp compatible)
Vocabulary 8,192 (Custom BPE)
Training Data 35,668 examples (Code, Reasoning, Knowledge, Synthetic)
GGUF Size (Q4_K_M) ~12.1 MB

πŸš€ Quick Start with Ollama

# Create a Modelfile
echo 'FROM ./neurograph-q4_k_m.gguf
PARAMETER num_ctx 512
PARAMETER temperature 0.7
PARAMETER repeat_penalty 1.5
SYSTEM "You are a cognitive router. Output knowledge graphs with nodes, edges, and confidence scores."' > Modelfile

# Create and run
ollama create neurograph -f Modelfile
ollama run neurograph "Debug this Python error: IndexError: list index out of range"

πŸ“ Output Format

The model outputs structured JSON knowledge graphs:

{
  "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"}
  ]
}

⚠️ Limitations & Intended Use

This is a proof-of-concept research model developed by CedzLabs to demonstrate the viability of the Deep-Narrow Cognitive Router architecture.

  • At 17.8M parameters, it is not designed for complex, multi-step reasoning.
  • It is designed to be the first stage of a pipeline, identifying what it knows, what it needs to look up, and what it needs to escalate.
  • Output text may contain repetition; the primary value is the structural schema and confidence scoring.

πŸ“„ License

MIT License. Free for research and commercial use.

πŸ™ Acknowledgments

  • Architecture and training pipeline designed by CedzLabs
  • Built with PyTorch, llama.cpp, and Hugging Face datasets
Downloads last month
32
GGUF
Model size
19.9M params
Architecture
llama
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support