Downloads · 30 days
166
51% of all-time downloads
abdullahashraf122/KAOS-Bicameral-Brain-GGUF
KAOS-Bicameral-Brain-GGUF is a text generation model from abdullahashraf122. Use it when you need the model to write or continue text. The card lists the license as other.
[!CAUTION] ⚠️ STRICT NON-COMMERCIAL RESEARCH LICENSE Commercial use of this model, weights, datasets, training archives, and effector code is STRICTLY PROHIBITED without prior express written permission from the copyr…
Downloads · 30 days
166
51% of all-time downloads
All-time downloads
328
Public
Repo size
3.7 GB
Likes
1
Public
Click a slice to open those files.
.gguf3.7 GB · 100%
From the Hugging Face model README
[!CAUTION]
⚠️ STRICT NON-COMMERCIAL RESEARCH LICENSE
Commercial use of this model, weights, datasets, training archives, and effector code is STRICTLY PROHIBITED without prior express written permission from the copyright holder (Abdullah Ashraf).
Permission is granted solely for personal, educational, and academic non-commercial research purposes pursuant to the KAOS Non-Commercial License. Any commercial hosting, deployment in proprietary environments, or commercial derivatives require prior written authorization.
The KAOS Bicameral Brain is a coupled dual-model tactical autonomous reasoning and bare-metal compilation system. Designed for cyber-defense, autonomous sensor surveillance, and robotic actuation, the architecture partitions cognitive operations into two specialized neural hemispheres:
[ OPERATOR INTENT / SENSOR TELEMETRY ]
│
▼
┌───────────────────────────────────────┐
│ RIGHT HEMISPHERE: Gemma 2 2B │
│ Tactical Intent & Threat Triage │
└───────────────────┬───────────────────┘
│ Emits Tactical Action Directive (TAD) JSON
▼
┌───────────────────────────────────────┐
│ LEFT HEMISPHERE: Llama 3.2 3B │
│ Silicon Compiler & LLVM Synthesizer │
└───────────────────┬───────────────────┘
│ Emits Pure LLVM IR Assembly
▼
┌───────────────────────────────────────┐
│ BICAMERAL CONSENSUS ARBITER │
│ Dual-Hemisphere Agreement Check │
└───────────────────┬───────────────────┘
│ 100% Agreement Locked
▼
┌───────────────────────────────────────┐
│ BARE-METAL LLVM MCJIT EXECUTION │
│ In-Memory JIT Compilation to RAM │
└───────────────────┬───────────────────┘
│ Opcode Executed
▼
┌───────────────────────────────────────┐
│ TACTICAL EFFECTOR: 20 SUBROUTINES │
│ Lockdown, Sever, Recon, Robotics │
└───────────────────────────────────────┘
@execute_logic) directly from TAD directives with zero markdown formatting, zero backticks, and zero conversational preambles.| Binary / Artifact | Type | Size | Description |
|---|---|---|---|
gemma-2-it.Q4_K_M.gguf | Model Binary | 1.71 GB | Right Hemisphere: Gemma 2 2B Q4_K_M GGUF quantized for efficient CPU/Edge inference |
llama-3.2-3b-instruct.Q4_K_M.gguf | Model Binary | 2.02 GB | Left Hemisphere: Llama 3.2 3B Q4_K_M GGUF compiler synthesizing pure LLVM IR assembly |
Modelfile.gemma | Configuration | 142 B | Ollama model definition with optimized 2048-token context and prompt template |
Modelfile.llama | Configuration | 148 B | Ollama model definition with optimized 2048-token context and LLVM IR system prompt |
finetuned_capabilities_audit.json | Audit Benchmark | 2.4 KB | Quantitative verification report of the fine-tuned bicameral brain (100% pass) |
baseline_capabilities_audit.json | Baseline Benchmark | 2.5 KB | Pre-fine-tuning capability audit detailing failure modes and baseline latency |
LICENSE | Legal | 1.3 KB | Full text of the KAOS Non-Commercial License |
All training, validation, and testing datasets used to fine-tune the KAOS Bicameral Brain are available directly in the data/ directory of this repository:
| Path in Repository | Format | Size | Records | Description |
|---|---|---|---|---|
data/kaos_training_data.zip | ZIP Archive | 161 KB | All | Complete bundled package containing all raw datasets, test splits, and manifests |
data/dataset_gemma_real.jsonl | JSONL | 1.13 MB | 1,689 | Full Right Hemisphere training dataset derived from MITRE ATT&CK STIX 2.1 |
data/dataset_llama_real.jsonl | JSONL | 266 KB | 420 | Full Left Hemisphere training dataset derived from LLVM Benchmark Suite |
data/scaled_1m/dataset_gemma_1m_train.jsonl | JSONL | 125 KB | 166 | Scaled 500-sample partition: Gemma training split |
data/scaled_1m/dataset_gemma_1m_test.jsonl | JSONL | 63.8 KB | 84 | Scaled 500-sample partition: Gemma holdout test split |
data/scaled_1m/dataset_llama_1m_train.jsonl | JSONL | 109 KB | 172 | Scaled 500-sample partition: Llama training split |
data/scaled_1m/dataset_llama_1m_test.jsonl | JSONL | 49.3 KB | 78 | Scaled 500-sample partition: Llama holdout test split |
data/scaled_1m/dataset_1m_manifest.json | JSON | 709 B | - | Provenance metadata and sampling manifest for the 500-sample partition |
data/test_split/dataset_gemma_1m_train.jsonl | JSONL | 23.9 KB | 32 | Rapid-audit partition: Gemma train set |
data/test_split/dataset_gemma_1m_test.jsonl | JSONL | 13.6 KB | 18 | Rapid-audit partition: Gemma test set |
data/test_split/dataset_llama_1m_train.jsonl | JSONL | 21.3 KB | 33 | Rapid-audit partition: Llama train set |
data/test_split/dataset_llama_1m_test.jsonl | JSONL | 10.8 KB | 17 | Rapid-audit partition: Llama test set |
data/test_split/dataset_1m_manifest.json | JSON | 753 B | - | Audit split configuration and seed parameters |
{
"conversations": [
{
"from": "human",
"value": "<start_of_turn>user\nYou are the KAOS Tactical Analyst (Right Hemisphere).\nAnalyze this operational command or sensor grid payload:\nOBJECTIVE: 'MITRE ATT&CK [T1055.011] Extra Window Memory Injection: Adversaries may inject malicious code into process via Extra Window Memory (EWM)...'\nRespond ONLY with a valid JSON Tactical Action Directive (TAD).\n<end_of_turn>\n<start_of_turn>model\n"
},
{
"from": "gpt",
"value": "{\n \"intent\": \"WORKSTATION_LOCK\",\n \"opcode\": 9000,\n \"risk_level\": \"HIGH\",\n \"confidence\": 1.0\n}\n<end_of_turn>"
}
]
}
{
"conversations": [
{
"from": "human",
"value": "You are the KAOS Silicon Compiler (Left Hemisphere).\n[HOST HARDWARE TELEMETRY]\nTARGET SILICON: Arch: x86_64 | LLVM Target: x86_64-unknown-windows\n\nORIGINAL OBJECTIVE: 'LLVM Benchmark Suite: function @execute_logic'\nTACTICAL DIRECTIVE: EXECUTE\n\nGenerate a pure, valid LLVM IR assembly function named '@execute_logic' taking two i32 arguments '%a' and '%b'.\nDO NOT write markdown formatting, explanations, comments, or extra functions."
},
{
"from": "gpt",
"value": "define i32 @execute_logic(i32 %a, i32 %b) {\n\t%c = shl i32 %a, 3\n\t%d = or i32 %c, 3\n\tret i32 %d\n}"
}
]
}
The models underwent rigorous evaluation across all 20 tactical operational directives covering Cyber Defense (9000-series), Reconnaissance (7000-series), Deception (6000-series), and Robotics (8000-series):
| Audit Metric | Baseline Models (Pre-Fine-Tuning) | KAOS Bicameral Brain (This Release) | Measured Impact |
|---|---|---|---|
| RAM Footprint (Llama 3.2) | 17.0 GB (128k context blow-up) | 2.3 GB (Optimized 2048 ctx) | -86.5% Memory Overhead |
| Inference Latency (Avg) | 22.0s – 27.9s (frequent timeouts) | 4.37s – 6.78s (Host CPU) | ~3.8x Speedup |
| Gemma JSON Compliance | Inconsistent / Markdown preambles | 100.0% Strict JSON | 0 Markdown Violations |
| Llama LLVM IR Purity | Markdown backticks & explanatory text | Pure LLVM IR Assembly | 0 Preamble / Syntax Faults |
| Consensus Arbiter Rate | 33.3% Locked (66.7% Dissonance) | 100.0% Consensus Locked | Zero Cognitive Dissonance |
| Bare-Metal MCJIT Pass | Fallback-reliant | 100.0% Native Pass | Zero Link/JIT Faults |
The bicameral core translates tactical objectives into 20 hardware/OS effectors:
| Opcode | Intent Name | Domain | Effector Implementation | Operational Action |
|---|---|---|---|---|
| 9000 | WORKSTATION_LOCK | Cyber Defense | Native Win32 / macOS / Linux API | Locks active workstation display immediately |
| 9001 | SEVER_NETWORK | Cyber Defense | IP adapter release & interface reset | Disconnects all network interfaces to isolate host |
| 9002 | MEDIA_EJECT | Cyber Defense | OS IOCTL / Removable storage API | Force-ejects removable drives and optical media |
| 9003 | WIPE_CLIPBOARD | Cyber Defense | In-memory clipboard zero-fill | Purges sensitive credentials from system clipboard |
| 9004 | TERMINATE_PROCESSES | Cyber Defense | Process process-table scanner | Terminates unauthorized debuggers and sniffers |
| 9999 | PROTOCOL_BLACK_PURGE | Emergency | Cryptographic zero-overwrite | Destroys active memory cache vaults and session keys |
| 7001 | OPTICAL_CAPTURE | Reconnaissance | OpenCV / CMOS camera frame grabber | Captures single optical frame for forensic verification |
| 7002 | ACOUSTIC_TELEMETRY | Reconnaissance | 16-bit 44.1kHz PCM audio recorder | Records 5-second acoustic baseline for surveillance |
| 7003 | DESKTOP_TELEMETRY | Reconnaissance | Multi-display framebuffer capture | Takes high-resolution multi-monitor screenshot |
| 7004 | WINDOW_SCRAPE | Reconnaissance | OS Window enumeration API | Scrapes foreground window titles, PIDs, and state |
| 7005 | SUBNET_SWEEP | Reconnaissance | Kernel ARP routing table scan | Interrogates active IP-to-MAC neighbour mappings |
| 6001 | STEALTH_DISPLAY | Deception | Display brightness / gamma clamp | Forces monitor blackout to simulate power loss |
| 6002 | AUDIO_DETERRENT | Deception | Win32 / ALSA high-frequency generator | Emits directional acoustic deterrence tone |
| 6003 | PERIPHERAL_LOCK | Deception | Mouse/Cursor perturbation loop | Jitters cursor position to prevent adversary UI control |
| 6004 | VOCAL_WARNING | Deception | SAPI / TTS verbal synthesis engine | Broadcasts acoustic vocal intrusion warning |
| 6005 | DEPLOY_DECOYS | Deception | Desktop honeytoken file generator | Plants honeytoken credential canary file |
| 8000 | HARDWARE_WAKE | Robotics | Serial bus frame (b'\x01\xFF\x00') | Sends hardware wake-up signal to rover microcontroller |
| 8001 | ROBOT_ADVANCE | Robotics | Motor locomotion frame (b'\x02\x01\xFF') | Drives rover drive-train forward at rated speed |
| 8002 | RADAR_SWEEP | Robotics | Servo sweep frame (b'\x03\x90\x00') | Triggers 180° ultrasonic/LiDAR proximity pan |
| 8003 | STROBE_ACTIVATE | Robotics | LED GPIO pulse frame (b'\x04\x01\x01') | Pulses high-intensity optical strobe alarm |
Register the models directly into your local Ollama runtime:
# Register Right Hemisphere (Gemma 2 2B)
ollama create gemma2-kaos -f Modelfile.gemma
# Register Left Hemisphere (Llama 3.2 3B)
ollama create llama3.2-kaos -f Modelfile.llama
# Right Hemisphere: Analyze threat and output TAD JSON
ollama run gemma2-kaos "Threat assessment: Unauthorized LSASS access detected. Lockdown host."
# Left Hemisphere: Synthesize pure LLVM IR assembly
ollama run llama3.2-kaos "TACTICAL DIRECTIVE: WORKSTATION_LOCK [TARGET OPCODE: 9000]"
# Right Hemisphere
./llama-cli -m gemma-2-it.Q4_K_M.gguf -p "Threat assessment: Credential dumping attempt detected." -c 2048 -n 128
# Left Hemisphere
./llama-cli -m llama-3.2-3b-instruct.Q4_K_M.gguf -p "TACTICAL DIRECTIVE: SEVER_NETWORK [TARGET OPCODE: 9001]" -c 2048 -n 256
from huggingface_hub import hf_hub_download
import zipfile
# Download the complete training data archive
zip_path = hf_hub_download(
repo_id="abdullahashraf122/KAOS-Bicameral-Brain-GGUF",
filename="data/kaos_training_data.zip",
repo_type="model"
)
# Extract locally
with zipfile.ZipFile(zip_path, 'r') as zip_ref:
zip_ref.extractall("./kaos_datasets")
print("KAOS datasets extracted successfully!")
KAOS Non-Commercial License
Copyright (c) 2026 Abdullah Ashraf
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software, model weights, datasets, and associated documentation files (the "Software"),
to use, copy, modify, merge, publish, and distribute the Software for personal,
educational, and non-commercial research purposes, subject to the following conditions:
1. NON-COMMERCIAL USE RESTRICTION:
Commercial use of this Software, in whole or in part, including any integration,
hosting as a service, deployment in commercial environments, or creation of
commercial derivatives, is STRICTLY PROHIBITED without prior express written
permission from the copyright holder.
2. ATTRIBUTION:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.