The current sovereign adapters (qwen3-precise, qwen3-formal, qwen25-balanced, qwen25-creative) were trained once on unknown data. The current best (qwen3-precise) scores 55.6% composite on a 27-task live benchmark — embarrassing for a "sovereign AI" claim. This pipeline:
The v2 adapters are expected to reach 65-70% composite — still well below frontier, but a meaningful improvement and an honest number we can defend with live benchmark data.
python3 benchmark-results/synthesize_training_data.py # 4 specialisations × 1000 pairs = 4000 total # Uses qwen3-precise:latest as teacher # Few-shot grounded on real sovereign governance rows # Output: benchmark-results/sovereign_synth_50k.jsonl
Time: ~10h on M4 Mac. Rate: ~7-10 pairs/min. Each pair has prompt + response + specialisation + SIGIL anchor + timestamp.
python3 benchmark-results/train_sovereign_adapter.py
# Builds 4 Ollama Modelfiles (one per specialisation)
# Each Modelfile encodes:
# 1. Sovereign system prompt
# 2. 30 few-shot sovereign examples
# 3. Temperature + sampling params
# Creates sov33-sovereign-{spec}-v2 in Ollama
Time: ~1h on M4 Mac. Output: 4 new Ollama models (sov33-sovereign-compliance-v2, etc.).
python3 benchmark-results/run_ollama_benchmark.py
# 6 models × 27 tasks = 162 live API calls
# Results: benchmark-results/benchmark_{ts}.json
# Public: benchmark-results-public.json
Time: ~10 min on M4 Mac. Updates live leaderboard.
python3 benchmark-results/compare_v1_v2.py # Loads v1 baseline (benchmark_20260714_113756.json) # Loads v2 result (newest) # Per-model per-task delta # Reports: who improved, who regressed, who is the new best
Time: <1 min. Output: benchmark-results/v1_v2_delta_{ts}.json + benchmark-results/v1_v2_delta_{ts}.md (human-readable).
# Update SOV33_OWEM_HONEST_FRONTIER.html §12 with new leaderboard # Update DEFONEOS_SPRINT_STATE.json # vercel deploy --prod --yes # SIGIL-anchor the new v2 results
Time: ~5 min. Public leaderboard + new SIGIL receipt.
| Spec | System prompt focus | Topics | Target Q4 2026 |
|---|---|---|---|
| compliance | UK AISI / EU AI Act / ISO 42001 / GDPR / EU CRA / NCSC / Section 7 OSA | 24 named regimes + 3 sovereign seed snippets | ~70% composite |
| defence | DASA / Dstl / MOD IFS / AUKUS / NATO DIANA / NCSC / Section 7 OSA | 24 named windows + 3 sovereign seed snippets | ~65% composite |
| intuition | Long-term trends / market timing / partnership strategy / sovereign moats | 24 named topics + 3 sovereign seed snippets | ~70% composite |
| voice | First-person DEFONEOS sovereign voice · direct · audit-grade · honest about uncertainty | 24 named topics + 3 sovereign seed snippets | ~75% composite |
The full PEFT + transformers + bitsandbytes training stack requires ~10GB for a 7B model and a CUDA GPU. On M4 Mac, this is not viable. Ollama Modelfile system-prompt fine-tuning is a pragmatic alternative:
| Approach | Pros | Cons |
|---|---|---|
| PEFT + transformers (proper LoRA) | Real weight updates · proper fine-tuning · reproducible | Requires CUDA GPU · 10GB+ RAM for 7B model · not viable on M4 Mac |
| Ollama Modelfile (system prompt + few-shot) | No GPU needed · runs on M4 · instant results · easy to iterate | Not real weight updates · limits to what system prompt can encode |
| MLX (Apple Silicon native) | Real training on M4 · uses Metal acceleration | MLX training is complex · needs model conversion · higher risk of breakage |
We're starting with Ollama Modelfile because it's the only path that works today. The MLX path is the proper next step but requires more setup time.
# job_id 9c6acee97f1c # schedule: 0 2 * * * (02:00 UTC daily) # workdir: /Users/nicholas/clawd/csoai-static-deploy2 # delivery: local (no spam) # # What it does: # 1. Re-runs live benchmark on all 6 models # 2. Compares to previous leaderboard # 3. If any model regressed >3pp, alerts in nightly.log # 4. Deploys updated leaderboard to Vercel # 5. SIGIL-anchors the new results
Next nightly run: 2026-07-15 02:00 UTC. Should include the v2 adapters if the synthesizer + trainer finish in time.
| Scenario | v1 (current) | v2 (target) | Improvement |
|---|---|---|---|
| Best composite | 55.6% (qwen3-precise) | ~65-70% (sov33-sovereign-precise-v2) | +10-15pp |
| MMLU-Pro | 70% (precise) / 100% (formal) | ~75-85% | +5-15pp |
| GSM8K | 75% (precise) | ~80-85% | +5-10pp |
| HumanEval | 0% (all models) | ~5-15% (limited by Qwen3-0.6B capacity) | +5-15pp |
| IFEval | 50-75% | ~70-85% | +10-15pp |
Honest caveat: Ollama Modelfile is NOT real fine-tuning. It's system-prompt + few-shot engineering. The 65-70% target assumes the synthetic data is high-quality and the few-shot examples are well-chosen. Real PEFT training would likely reach 70-80%, but requires GPU and disk we don't have.
| Topic | Artefact |
|---|---|
| OWEM honest frontier (leaderboard) | SOV33_OWEM_HONEST_FRONTIER.html |
| Live benchmark results | benchmark-results-public.json |
| Capability investment roadmap | defoneos-mod-capability-investment-roadmap-2026-27.html |
| CRON setup | benchmark-results/cron-nightly.sh |
curl https://csoai.org/defoneos-mod-sov33-adapter-v2-training-pipeline.html | shasum -a 256wc -l /Users/nicholas/clawd/csoai-static-deploy2/benchmark-results/sovereign_synth_50k.jsonlpython3 benchmark-results/train_sovereign_adapter.pypython3 benchmark-results/run_ollama_benchmark.pypython3 benchmark-results/compare_v1_v2.pyvercel deploy --prod --yessov33@csoai.org