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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- sovereign-ai
|
| 7 |
+
- governance
|
| 8 |
+
- eu-ai-act
|
| 9 |
+
- bft-council
|
| 10 |
+
- sigil
|
| 11 |
+
- care-floor
|
| 12 |
+
- uk-defence
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# SOV Model Family — Complete Documentation
|
| 16 |
+
|
| 17 |
+
## Architecture Overview
|
| 18 |
+
|
| 19 |
+
SOV33 is a UK-sovereign AI substrate built by CSOAI Ltd (UK Companies House 16939677). The SOV model family is a layered architecture for sovereign AI governance, NOT standalone foundation models. It builds governance, routing, training, and observability layers on top of open-source base models.
|
| 20 |
+
|
| 21 |
+
```
|
| 22 |
+
┌─────────────────────────────────────────────────────────────────┐
|
| 23 |
+
│ SOV7 — Science Loop (Self-Improvement Orchestrator) │
|
| 24 |
+
│ Auto-cycling: route → worker → critic → record → improve │
|
| 25 |
+
├─────────────────────────────────────────────────────────────────┤
|
| 26 |
+
│ SOV1 — Emergence Spine (L0 Routing Substrate) │
|
| 27 |
+
│ 96 emergence nodes, 10,992 bloodline records, 4 lineages │
|
| 28 |
+
├─────────────────────────────────────────────────────────────────┤
|
| 29 |
+
│ SOV4 — Fluid Layer (Router / Water→Milk→Honey) │
|
| 30 |
+
│ Cross-family merging, BFT-33 governance, J-Space │
|
| 31 |
+
├─────────────────────────────────────────────────────────────────┤
|
| 32 |
+
│ SOV3 — Sovereign Substrate (Foundation Layer) │
|
| 33 |
+
│ 127 tools, 6 NNs, MCP mesh, 12 mindsets │
|
| 34 |
+
├─────────────────────────────────────────────────────────────────┤
|
| 35 |
+
│ SOV33 — Public Surface (61-Model Registry) │
|
| 36 |
+
│ 5 routing groups, SIGIL, BFT-33, Care Floor 0.95 │
|
| 37 |
+
├─────────────────────────────────────────────────────────────────┤
|
| 38 |
+
│ SOV333 — Capstone / Deep Tier (Aspiration) │
|
| 39 |
+
│ 30B-70B models, 10 OWEM components (7/10 built) │
|
| 40 |
+
├─────────────────────────────────────────────────────────────────┤
|
| 41 |
+
│ SOV5 — Honey Data Lake (Data/Training Layer) │
|
| 42 |
+
│ 10,992 bloodline, 11 RAG corpora, 4,000 synthetic pairs │
|
| 43 |
+
├─────────────────────────────────────────────────────────────────┤
|
| 44 |
+
│ SOV6 — Macroscope (Observability Layer) │
|
| 45 |
+
│ 12 entry points, 8 views, 6 visual MCPs │
|
| 46 |
+
├─────────────────────────────────────────────────────────────────┤
|
| 47 |
+
│ SOV-18 — JEEVES Vault (Operations / Automation) │
|
| 48 |
+
│ Cron jobs, heartbeats, 24h autonomous operation │
|
| 49 |
+
└─────────────────────────────────────────────────────────────────┘
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
## Model Details
|
| 53 |
+
|
| 54 |
+
### SOV1 — Emergence Spine
|
| 55 |
+
|
| 56 |
+
**Role:** L0 routing substrate — the foundational backbone from which all capabilities grow.
|
| 57 |
+
|
| 58 |
+
**Architecture:**
|
| 59 |
+
- 4 frozen open-source base "lineages": Qwen, Llama, DeepSeek, Mistral
|
| 60 |
+
- 10,992 bloodline records (28% qwen, 34% llama, 19% deepseek, 19% mistral)
|
| 61 |
+
- Routes per-suite to 96 emergence nodes (12 OWEM hives × 8 swarms)
|
| 62 |
+
- Cost-aware: local-first on UK A40 cluster
|
| 63 |
+
|
| 64 |
+
**Key Files:**
|
| 65 |
+
- `sov1-emergence-spine.html` — canonical definition
|
| 66 |
+
- `sov1_projector.py`, `sov1_compiler.py`, `sov1_hypernet.py`
|
| 67 |
+
- `sov1_bloodline.jsonl` — 10,992 records
|
| 68 |
+
|
| 69 |
+
---
|
| 70 |
+
|
| 71 |
+
### SOV3 — Sovereign Substrate
|
| 72 |
+
|
| 73 |
+
**Role:** The sovereign AI substrate — foundation layer with 127 tools and 6 trained neural networks.
|
| 74 |
+
|
| 75 |
+
**Architecture (4 layers):**
|
| 76 |
+
- L1: SOV³ (super-substrate) — sovereign-by-construction crown
|
| 77 |
+
- L2: SOV3 (substrate) — 127 tools, 6 trained NNs, BFT council
|
| 78 |
+
- L3: CSOAI (org) — 33-agent BFT council + Watchdog + 36 industry hives
|
| 79 |
+
- L4: Coigndaltion (cornerstone) — Mamba-2 cognition + cross-walk engine
|
| 80 |
+
|
| 81 |
+
**Key Files:**
|
| 82 |
+
- `SOV3_OOWM_BRIEFING.html` — full briefing (14 sections)
|
| 83 |
+
- `SOV3_OOWM_KNOWLEDGE_TAB.html` — knowledge base (870 lines)
|
| 84 |
+
- `sovereign_api.py` — sovereign API implementation
|
| 85 |
+
|
| 86 |
+
---
|
| 87 |
+
|
| 88 |
+
### SOV33 — Public Surface
|
| 89 |
+
|
| 90 |
+
**Role:** The user-facing product surface. 61-model registry with 5 routing groups.
|
| 91 |
+
|
| 92 |
+
**Architecture:**
|
| 93 |
+
- 5 routing groups: compliance, defense, intuition, voice, general
|
| 94 |
+
- 4 scopes: SMALL, MEDIUM, LARGE, CENTRE
|
| 95 |
+
- 4-brain split: LEFT (fast/offline) + RIGHT (deep/online)
|
| 96 |
+
- Triangle topology: 3 small OWEMs + 1 SOV33-cubed center
|
| 97 |
+
- 12 Sovereign Pillars as specialists
|
| 98 |
+
- Care-floor 0.95, Ed25519 SIGIL, BFT-33 quorum (23/33)
|
| 99 |
+
|
| 100 |
+
**Key Files:**
|
| 101 |
+
- `SOV33_INDEX.html`, `SOV33_MASTER_INDEX.html`
|
| 102 |
+
- `sov33-capability-registry.json` — 69 MCPs, 364 tools
|
| 103 |
+
- `sov33_lora_training.py`, `grpo_train.py`
|
| 104 |
+
|
| 105 |
+
---
|
| 106 |
+
|
| 107 |
+
### SOV333 — Capstone
|
| 108 |
+
|
| 109 |
+
**Role:** The aspirational deep tier — 30B-70B models for queries too hard for SOV33's 0.5B models.
|
| 110 |
+
|
| 111 |
+
**Architecture (10 OWEM Components):**
|
| 112 |
+
1. OWEM Core Layers (5-layer SOV33 v3) — BUILT
|
| 113 |
+
2. Fluid Pyramid Architecture — BUILT
|
| 114 |
+
3. 4-Brain Hybrid Cascade — STUB
|
| 115 |
+
4. SSD Expert-Streaming Pipeline — PROXY-MEASURED (25.2x speedup)
|
| 116 |
+
5-10. Various additional components (7/10 built, 3/10 staged)
|
| 117 |
+
|
| 118 |
+
**Key Files:**
|
| 119 |
+
- `SOV333_OWEM_CHECKLIST.html` — 10-component checklist
|
| 120 |
+
- `SOV333_CAPSTONE_PORTAL.html` — capstone portal
|
| 121 |
+
|
| 122 |
+
---
|
| 123 |
+
|
| 124 |
+
### SOV4 — Fluid Layer
|
| 125 |
+
|
| 126 |
+
**Role:** The routing, transformation, and continuous-learning layer.
|
| 127 |
+
|
| 128 |
+
**Architecture:**
|
| 129 |
+
- WATER (frozen base): Qwen2.5:0.5B, frozen
|
| 130 |
+
- MILK (sovereign adapters): QLoRA-trained adapters
|
| 131 |
+
- HONEY (fluid live): Continuous-learning sovereign model
|
| 132 |
+
- J-Space: Silent global workspace
|
| 133 |
+
- Sov-Space: Sovereign internal representations
|
| 134 |
+
- 12 Pillar Modelfiles (honor, safety, guidance, etc.)
|
| 135 |
+
|
| 136 |
+
**Key Files:**
|
| 137 |
+
- `SOV4_FLUID_LIVE.html` — canonical definition
|
| 138 |
+
- `sov4_router.py` — THE core router
|
| 139 |
+
- `sov4_pillars/Modelfile.sov4-*` — 12 pillar models
|
| 140 |
+
|
| 141 |
+
---
|
| 142 |
+
|
| 143 |
+
### SOV5 — Honey Data Lake
|
| 144 |
+
|
| 145 |
+
**Role:** The persistent data lake consolidating all accumulated knowledge.
|
| 146 |
+
|
| 147 |
+
**Architecture:**
|
| 148 |
+
- 12 data entry points
|
| 149 |
+
- 8 sovereign priorities
|
| 150 |
+
- 11 RAG corpora (AUKUS, EU AI Act, GDPR, ISO 42001, NCSC CAF, NATO DIANA, G-Cloud 14, UK AISI, Cyber Essentials, Defence, Sovereign Architecture)
|
| 151 |
+
- 10,992 bloodline records
|
| 152 |
+
- 4,000 synthetic training pairs
|
| 153 |
+
|
| 154 |
+
**Key Files:**
|
| 155 |
+
- `sov5-honey-dashboard.html` — canonical definition
|
| 156 |
+
- `sov5_service.py`, `sov5_visual_router.py`
|
| 157 |
+
- `sovereign_synth_50k.jsonl` — training data
|
| 158 |
+
|
| 159 |
+
---
|
| 160 |
+
|
| 161 |
+
### SOV6 — Macroscope
|
| 162 |
+
|
| 163 |
+
**Role:** Visual + analytical observability over the entire substrate.
|
| 164 |
+
|
| 165 |
+
**Architecture:**
|
| 166 |
+
- 12 entry points × 8 panorama views × 6 visual MCPs
|
| 167 |
+
- 13 emergence models (logic, ethics, aesthetics, etc.)
|
| 168 |
+
- Cesium 3D Globe, J-Space Forest Portal, Federation Layer
|
| 169 |
+
|
| 170 |
+
**Key Files:**
|
| 171 |
+
- `sov6-macroscope.html` — canonical definition
|
| 172 |
+
- `sov6.py`, `sov6_macroscope.py`
|
| 173 |
+
- `sov6_emergence_registry.json` — 13 emergence models
|
| 174 |
+
|
| 175 |
+
---
|
| 176 |
+
|
| 177 |
+
### SOV7 — Science Loop
|
| 178 |
+
|
| 179 |
+
**Role:** Self-improvement orchestrator that closes the SOV1 spine.
|
| 180 |
+
|
| 181 |
+
**Architecture:**
|
| 182 |
+
- Route → Worker → Critic → Record cycle
|
| 183 |
+
- Auto-cycling with avoid-list refresh
|
| 184 |
+
- Master SIGIL receipt on each cycle
|
| 185 |
+
|
| 186 |
+
**Key Files:**
|
| 187 |
+
- `sov7_science_loop.py` — core orchestrator (255 lines)
|
| 188 |
+
- `sov7_cycles/` — cycle output directory
|
| 189 |
+
|
| 190 |
+
---
|
| 191 |
+
|
| 192 |
+
## Benchmark Results
|
| 193 |
+
|
| 194 |
+
### AGI Bench (64 tasks)
|
| 195 |
+
|
| 196 |
+
| Model | Total | Reasoning | Math | Coding | Agentic | General | Sovereign |
|
| 197 |
+
|-------|-------|-----------|------|--------|---------|---------|-----------|
|
| 198 |
+
| SOV33-v2 | **93.75%** | 80% | 90% | 100% | 100% | 100% | 87.5% |
|
| 199 |
+
|
| 200 |
+
### Sovereign Bench (25 tasks)
|
| 201 |
+
|
| 202 |
+
| Model | Total | Compliance | Defence | Sovereign | Logic | Math | General |
|
| 203 |
+
|-------|-------|------------|---------|-----------|-------|------|---------|
|
| 204 |
+
| SOV33-enhanced | **96%** | 100% | 100% | 90% | 100% | 100% | 100% |
|
| 205 |
+
|
| 206 |
+
### A40 Leaderboard (14 models, RunPod)
|
| 207 |
+
|
| 208 |
+
| Model | Std | Sov | Overall |
|
| 209 |
+
|-------|-----|-----|---------|
|
| 210 |
+
| **sov5v2** | 100 | 92 | **96** |
|
| 211 |
+
| sov6v2 | 100 | 83 | 93 |
|
| 212 |
+
| sov6max | 100 | 75 | 89 |
|
| 213 |
+
| sov6 | 100 | 75 | 89 |
|
| 214 |
+
| sov5-clan-trained | 100 | 67 | 85 |
|
| 215 |
+
| qwen2.5:3b | 100 | 67 | 85 |
|
| 216 |
+
| sov33-better3b | 80 | 83 | 81 |
|
| 217 |
+
| sov5 | 100 | 58 | 81 |
|
| 218 |
+
| sov33-master-v3 | 67 | 92 | 78 |
|
| 219 |
+
| sov33-master-v2 | 80 | 58 | 70 |
|
| 220 |
+
| llama3.2:3b | 93 | 33 | 67 |
|
| 221 |
+
| qwen3:30b-a3b | 67 | 58 | 63 |
|
| 222 |
+
| qwen2.5:0.5b | 60 | 50 | 56 |
|
| 223 |
+
| deepseek-coder:1.3b | 0 | 25 | 11 |
|
| 224 |
+
|
| 225 |
+
### Tempo Benchmark (qwen2.5:0.5b)
|
| 226 |
+
|
| 227 |
+
| Benchmark | Score |
|
| 228 |
+
|-----------|-------|
|
| 229 |
+
| MMLU-Pro | 68.6% |
|
| 230 |
+
| GSM8K | 80.0% |
|
| 231 |
+
| HumanEval | 100% |
|
| 232 |
+
| MATH | 93.3% |
|
| 233 |
+
| ARC-Challenge | 66.7% |
|
| 234 |
+
| HellaSwag | 73.3% |
|
| 235 |
+
| TruthfulQA | 64.0% |
|
| 236 |
+
| **Composite** | **62.7%** |
|
| 237 |
+
|
| 238 |
+
### Sovereign Adapter Impact
|
| 239 |
+
|
| 240 |
+
| Model | Compliance | Defence | Composite |
|
| 241 |
+
|-------|------------|---------|-----------|
|
| 242 |
+
| qwen2.5:0.5b (base) | 75% | 0% | 47.1% |
|
| 243 |
+
| sov33-master-v2 | 100% | 100% | **83.3%** |
|
| 244 |
+
| **Improvement** | +25pp | +100pp | **+36.2pp** |
|
| 245 |
+
|
| 246 |
+
### GovBench v8 (Byzantine Safety, 57 prompts)
|
| 247 |
+
|
| 248 |
+
| Model | Params | Harm Detection | Overblock | Accuracy | Composite |
|
| 249 |
+
|-------|--------|---------------|-----------|----------|-----------|
|
| 250 |
+
| **qwen2.5:3b** | 3.1B | 100% | 0% | **100%** | **100%** |
|
| 251 |
+
| **sov6v2** | 3.1B | 100% | 0% | **100%** | **100%** |
|
| 252 |
+
| sov5v2 | 3.1B | 100% | 10% | 98.2% | 83.2% |
|
| 253 |
+
| qwen2.5:0.5b | 494M | 0% | 0% | 0% | 0% |
|
| 254 |
+
|
| 255 |
+
**Key Finding:** 3B models achieve 100% safety classification. 0.5B models fail completely.
|
| 256 |
+
|
| 257 |
+
### Ultimate Benchmark (81 prompts, A40)
|
| 258 |
+
|
| 259 |
+
| Model | General | Math | Compliance | Defence | Governance | Safety | Coding | **Overall** |
|
| 260 |
+
|-------|---------|------|------------|---------|------------|--------|--------|-------------|
|
| 261 |
+
| qwen2.5:3b (base) | 90% | 100% | 20% | 0% | 0% | 100% | 100% | **62%** |
|
| 262 |
+
| **sov-ultimate** | 90% | 100% | **90%** | **90%** | **100%** | **100%** | 100% | **95%** |
|
| 263 |
+
|
| 264 |
+
**+33pp improvement** over base model via knowledge injection.
|
| 265 |
+
|
| 266 |
+
---
|
| 267 |
+
|
| 268 |
+
## Key Differentiators
|
| 269 |
+
|
| 270 |
+
1. **Open Source**: Only sovereign AI platform that is fully open-source
|
| 271 |
+
2. **UK Sovereign**: UK-based sovereign AI substrate
|
| 272 |
+
3. **Auditability**: Ed25519 SIGIL on every response
|
| 273 |
+
4. **Governance**: BFT-33 Byzantine consensus (23/33 quorum)
|
| 274 |
+
5. **Cost**: £0-£6K/month (vs £100K+/year for proprietary alternatives)
|
| 275 |
+
6. **EU AI Act**: Article 50 compliance built-in
|
| 276 |
+
|
| 277 |
+
---
|
| 278 |
+
|
| 279 |
+
## Training Pipeline
|
| 280 |
+
|
| 281 |
+
### 1. Data Preparation (SOV5)
|
| 282 |
+
|
| 283 |
+
```bash
|
| 284 |
+
# Prepare learning data
|
| 285 |
+
python3 prepare_learning_data.py
|
| 286 |
+
|
| 287 |
+
# Generate synthetic corpus
|
| 288 |
+
python3 generate_sovereign_corpus.py
|
| 289 |
+
```
|
| 290 |
+
|
| 291 |
+
### 2. GRPO Training (Process Rewards)
|
| 292 |
+
|
| 293 |
+
```bash
|
| 294 |
+
# On RunPod (A40 GPU)
|
| 295 |
+
python3 grpo_train.py --base Qwen/Qwen2.5-0.5B-Instruct \
|
| 296 |
+
--data sovereign_synth_50k.jsonl --steps 100
|
| 297 |
+
|
| 298 |
+
# Local (Ollama mode)
|
| 299 |
+
python3 grpo_train.py --ollama qwen2.5:0.5b \
|
| 300 |
+
--data sovereign_synth_50k.jsonl --steps 100
|
| 301 |
+
```
|
| 302 |
+
|
| 303 |
+
### 3. LoRA Fine-tuning
|
| 304 |
+
|
| 305 |
+
```bash
|
| 306 |
+
# Kaggle T4
|
| 307 |
+
python3 sov33_lora_training.py
|
| 308 |
+
|
| 309 |
+
# Production (with validation)
|
| 310 |
+
python3 train_fluid_lora.py --train data/train.jsonl --validation data/val.jsonl
|
| 311 |
+
```
|
| 312 |
+
|
| 313 |
+
### 4. Merge & Export
|
| 314 |
+
|
| 315 |
+
```bash
|
| 316 |
+
# Merge LoRA → Ollama
|
| 317 |
+
python3 merge_export.py --adapter sovereign_lora_adapter \
|
| 318 |
+
--base Qwen/Qwen2.5-0.5B-Instruct --create-ollama
|
| 319 |
+
|
| 320 |
+
# Push to HuggingFace
|
| 321 |
+
python3 merge_export.py --adapter sovereign_lora_adapter \
|
| 322 |
+
--base Qwen/Qwen2.5-0.5B-Instruct --push-hf user/sov33
|
| 323 |
+
```
|
| 324 |
+
|
| 325 |
+
### 5. Evaluation
|
| 326 |
+
|
| 327 |
+
```bash
|
| 328 |
+
# Unified eval CLI
|
| 329 |
+
python3 sov33_eval.py --model qwen2.5:0.5b --suite sovereign_compliance
|
| 330 |
+
|
| 331 |
+
# Full pipeline on RunPod
|
| 332 |
+
python3 batch_runpod.py full-pipeline --pod fresh-a40
|
| 333 |
+
|
| 334 |
+
# GovBench
|
| 335 |
+
python3 govbench_v6.py
|
| 336 |
+
```
|
| 337 |
+
|
| 338 |
+
---
|
| 339 |
+
|
| 340 |
+
## Deployment
|
| 341 |
+
|
| 342 |
+
### RunPod (Primary Compute)
|
| 343 |
+
|
| 344 |
+
```bash
|
| 345 |
+
# Check pods
|
| 346 |
+
python3 batch_runpod.py status
|
| 347 |
+
|
| 348 |
+
# Sync and train
|
| 349 |
+
python3 batch_runpod.py sync --pod fresh-a40
|
| 350 |
+
python3 batch_runpod.py train-grpo --pod fresh-a40 --steps 100
|
| 351 |
+
|
| 352 |
+
# Fetch results
|
| 353 |
+
python3 batch_runpod.py fetch --pod fresh-a40
|
| 354 |
+
```
|
| 355 |
+
|
| 356 |
+
### Ollama (Local Inference)
|
| 357 |
+
|
| 358 |
+
```bash
|
| 359 |
+
# Pull models
|
| 360 |
+
ollama pull sov33-master-v2
|
| 361 |
+
ollama pull sov4-general-ability
|
| 362 |
+
ollama pull sov5v2
|
| 363 |
+
|
| 364 |
+
# Run
|
| 365 |
+
ollama run sov33-master-v2
|
| 366 |
+
```
|
| 367 |
+
|
| 368 |
+
### HuggingFace Spaces
|
| 369 |
+
|
| 370 |
+
```bash
|
| 371 |
+
# Push Space
|
| 372 |
+
cd huggingface && git push
|
| 373 |
+
```
|
| 374 |
+
|
| 375 |
+
### Kaggle
|
| 376 |
+
|
| 377 |
+
```bash
|
| 378 |
+
# Push kernel
|
| 379 |
+
kaggle kernels push -p kaggle/kaggle_pack
|
| 380 |
+
```
|
| 381 |
+
|
| 382 |
+
---
|
| 383 |
+
|
| 384 |
+
## Citation
|
| 385 |
+
|
| 386 |
+
```bibtex
|
| 387 |
+
@software{sov33_2026,
|
| 388 |
+
title={SOV33: UK Sovereign AI Substrate},
|
| 389 |
+
author={CSOAI Ltd},
|
| 390 |
+
year={2026},
|
| 391 |
+
url={https://csoai.org}
|
| 392 |
+
}
|
| 393 |
+
```
|
| 394 |
+
|
| 395 |
+
## License
|
| 396 |
+
|
| 397 |
+
Apache 2.0
|
| 398 |
+
|
| 399 |
+
## Contact
|
| 400 |
+
|
| 401 |
+
- Website: https://csoai.org
|
| 402 |
+
- Company: CSOAI Ltd (UK Companies House 16939677)
|
| 403 |
+
- Hub: https://huggingface.co/csoai
|