Case Study Do Better Norge Active

NorwAI Legal Intelligence

A two-stage knowledge distillation pipeline that transforms a 27B parameter model into an affordable, Norwegian-specific 7B legal AI — then deploys it through CorpusAI for organisations like Do Better Norge. A practical demonstration that expert AI doesn't require expert budgets.

Client Do Better Norge
Platform CorpusAI (ai.bluenotelogic.com)
Model NorwAI Alpha v0.1 (7B)
Led By Dave Gilligan
SECTION 01

The Vision

The legal AI landscape is dominated by solutions that require expensive API subscriptions, send sensitive documents to foreign cloud providers, and charge per query. For Norwegian organisations — particularly NGOs, small law firms, and advocacy groups — these solutions are either financially inaccessible or legally problematic under GDPR.

NorwAI changes the equation. By distilling a large 27B parameter model down to 7B parameters, then fine-tuning it with Norwegian-specific legal intelligence, we produce a model that:

  • Runs on commodity CPU hardware (no GPU required)
  • Understands Norwegian legal terminology (Bokmål and Nynorsk)
  • Can be further fine-tuned on an organisation's own documents
  • Never sends data outside EU/EEA borders
  • Costs a fraction of commercial API solutions

The practical impact: a family law advocacy group like Do Better Norge can deploy a legal AI assistant that knows Norwegian child welfare legislation as well as a specialist — without a specialist's hourly rate.

SECTION 02

Two-Stage Distillation Pipeline

The NorwAI model is produced through a two-stage distillation process. Each stage has a distinct purpose: Stage 1 compresses general intelligence, Stage 2 injects Norwegian domain expertise.

NorwAI two-stage distillation pipeline diagram

Stage 1: Knowledge Compression (27B → 7B)

T
Teacher: Qwen 2.5-27B
Running on Hippo (RTX 5090, 32GB VRAM)

The Qwen 2.5-27B model serves as the teacher in Stage 1. This is a 27-billion parameter model with strong multilingual capabilities and demonstrated proficiency in legal and analytical reasoning tasks. The teacher processes a curated dataset of legal documents and generates Chain-of-Thought (CoT) training pairs in JSONL format.

The teacher's role is pedagogical: it produces structured reasoning traces that expose how a large model analyses legal text — identifying relevant statutes, cross-referencing precedents, evaluating procedural compliance, and reaching conclusions. These reasoning traces become the training signal for the student.

Training pair generation example:

// Input to 27B Teacher: "Under Barnelova §36, what are the legal requirements for changing a child's primary residence after separation?" // Teacher output (JSONL): { "instruction": "Explain the requirements under Barnelova §36 for changing a child's residence post-separation.", "response": "<think> Barnelova §36 governs 'fast bosted' (primary residence). Key requirements: 1. Both parents must agree, OR 2. Court order required (Barnelova §56) 3. Child's best interest standard (barnets beste, §48) 4. Child's right to be heard (§31, age-dependent) 5. Notification obligation: 6 weeks advance notice (§42a) Cross-reference: ECtHR standards on family reunification apply per Strand Lobben v. Norway (2019). </think> Under Barnelova §36, changing a child's primary residence...", "pair_type": "reasoning" }
S
Student: Qwen 2.5-7B → Alpha v0.1
LoRA fine-tuning via Unsloth

The 7B student model learns from the teacher's reasoning traces via LoRA fine-tuning. The result is Alpha Model v0.1 — a compact model that has internalised the 27B teacher's analytical approach but runs at approximately 4× the inference speed.

At this stage, Alpha v0.1 is a general-purpose legal reasoning model. It can analyse legal texts and produce structured reasoning, but it doesn't yet have specialised knowledge of Norwegian legislation, terminology, or procedural norms. That's what Stage 2 provides.

ParameterValueRationale
LoRA Rank48Balanced for legal reasoning without over-parameterisation
LoRA Alpha96Alpha/rank ratio 2.0 for consistent adapter scaling
Target Modulesq, k, v, o, gate, up, downFull attention + MLP for comprehensive reasoning transfer
Learning Rate2 × 10-4Slightly higher than CO2 model due to larger domain scope
Context Length4,096 tokensSufficient for legal document excerpts + CoT blocks
Training Data~3,000 pairsMix of legal Q&A, reasoning chains, and boundary examples

Stage 2: Norwegian Legal Fine-Tuning

N
NorwAI Fine-Tuning Pass
Norwegian-specific intelligence injection

Stage 2 takes the Alpha v0.1 model and applies a second round of LoRA fine-tuning with a curated Norwegian legal corpus. This corpus includes:

Primary Legislation

Barnelova (Children Act), Barnevernsloven (Child Welfare Act), Menneskerettsloven (Human Rights Act), Forvaltningsloven (Public Administration Act)

Case Law & Rulings

ECtHR rulings (Strand Lobben v. Norway, Abdi Ibrahim v. Norway), Norwegian Supreme Court (Høyesterett) family law precedents

Regulatory Guidance

Bufdir (Children, Youth and Family Affairs) guidelines, Barneombudet (Ombudsman for Children) reports, municipal Barnevern procedural manuals

Language Training

Norwegian Bokmål and Nynorsk legal terminology, professional register for government and academic audiences, bilingual EN↔NO translation pairs

The result is NorwAI Alpha v0.1-NO: a 7B model that combines the 27B teacher's reasoning capabilities with deep knowledge of Norwegian family law, child welfare procedures, and bilingual Norwegian-English proficiency. It reads and responds like a Norwegian legal professional, not a generic chatbot.

SECTION 03

Case Study: Do Better Norge

About the Client

Do Better Norge is a Norwegian advocacy organisation focused on family rights and child welfare reform. Their mission: "Every child deserves both parents." They campaign for transparent procedures, fair hearings, and protection of family bonds — providing legal guides, educational resources, and community support for families navigating Norway's child welfare system.

?
The Challenge
Access to legal knowledge at scale

Do Better Norge serves families who often cannot afford specialist legal counsel. These families need to understand complex legislation (Barnelova, Barnevernsloven), navigate procedural requirements, and reference ECtHR rulings — all in Norwegian. Existing AI solutions either:

  • × Send sensitive family data to US cloud providers (GDPR risk)
  • × Charge per-query fees that scale beyond NGO budgets
  • × Lack Norwegian legal expertise (hallucinate statutes)
  • × Cannot be customised with the organisation's own documents
The Solution: NorwAI + CorpusAI
Private, affordable, Norwegian-native AI

Do Better Norge deploys the NorwAI Alpha v0.1-NO model through the CorpusAI platform. This gives them:

Custom Document Corpus

Do Better Norge uploads their own legal guides, case analyses, ECtHR ruling summaries, and advocacy documents. The model answers questions grounded in their knowledge base, with source citations.

European Data Sovereignty

All data stays on Hetzner servers in Helsinki and Nuremberg. NVIDIA RTX PRO 6000 Blackwell GPUs (96GB VRAM) provide inference. Zero data export. WireGuard encrypted mesh. Full GDPR compliance.

Affordable at Scale

No per-query API costs. The 7B model runs efficiently on the CorpusAI infrastructure with predictable monthly pricing. An NGO budget can sustain what would cost 10× more on commercial platforms.

Practical example:

// Family asks Do Better Norge's AI assistant: User: "Vi har fått varsel om akuttvedtak fra barnevernet. Hva er våre rettigheter de første 48 timene?" NorwAI: "I henhold til Barnevernsloven §4-6, har dere følgende rettigheter ved akuttvedtak: 1. Vedtaket skal sendes til Fylkesnemnda innen 48 timer for godkjenning (§7-22) 2. Dere har rett til advokat på offentlig bekostning (§7-8) 3. Dere har rett til samvær med barnet under akuttplasseringen, med mindre retten begrenser dette (§4-19) 4. Dere kan klage vedtaket til Fylkesnemnda umiddelbart [Kilde: Do Better Norge Rettighetsveiledning, s. 14-16] [Lovhenvisning: Barnevernsloven §§4-6, 7-22, 7-8]"
SECTION 04

Custom Model Marketplace

The NorwAI/Do Better Norge implementation demonstrates a repeatable model. Any organisation with domain-specific documents can follow the same pipeline to create their own specialised AI — making this approach unique in the market.

Law Firms

Upload case files, legal opinions, and precedent analyses. Get an AI that knows your firm's specialisation — whether that's maritime law, immigration, or corporate compliance. Cite your own previous work in new analyses.

Municipalities & Government

Upload regulatory frameworks, planning documents, and policy guidelines. Deploy a model that helps citizens navigate local regulations, answers questions about permits, and references the correct municipal procedures.

NGOs & Advocacy Groups

Upload advocacy materials, legal guides, and research reports. Provide your community with AI-powered access to expertise they couldn't otherwise afford — 24/7, in their own language, grounded in your verified resources.

Healthcare & Compliance

Upload clinical guidelines, patient safety protocols, and regulatory documentation. Create a private AI assistant for healthcare workers that references approved procedures — never hallucinating medical guidance.

What Makes This Unique

FeatureCommercial AI APIsNorwAI + CorpusAI
Data Location US / Global cloud EU/EEA only (Helsinki, Nuremberg)
Custom Training Limited or impossible Full fine-tuning on your documents
Pricing Model Per-query / per-token Flat monthly (predictable for budgets)
Norwegian Legal Knowledge Generic / surface-level Deep: Barnelova, Barnevernsloven, ECtHR
Model Ownership Vendor-locked Your model, your weights, your deployment
Source Citations Unreliable Every answer cites your uploaded documents
SECTION 05

CorpusAI Integration

The NorwAI model is deployed through the CorpusAI platform (ai.bluenotelogic.com), which provides the infrastructure, document management, and user interface layers.

NorwAI integration with the CorpusAI platform

Available Models

72BReasoning & Legal Analysis
32BCode Intelligence
27BGrading & Classification
7B (NorwAI)Norwegian Legal Specialist

Infrastructure

GPURTX PRO 6000 Blackwell (96GB)
LocationHelsinki & Nuremberg (EU)
NetworkWireGuard encrypted mesh
ComplianceGDPR, tenant isolation
SECTION 06

Innovation Thesis

The NorwAI project validates a core innovation hypothesis: "Knowledge distillation, combined with domain-specific fine-tuning and private corpus grounding, can democratise access to expert-level AI for organisations that have been priced out of the commercial AI market."

This is not a theoretical proposition. Do Better Norge is a live deployment. The pipeline from 27B teacher to 7B student to CorpusAI deployment is operational. The model answers questions about Norwegian family law in Bokmål, cites uploaded documents, and runs within European borders — today.

The broader implication for the innovation management field: the barrier to deploying domain-specific AI has shifted from hardware and expertise to data curation. Any organisation that can curate a quality document corpus can now have a specialist AI. The distillation framework (teacher → student → fine-tune → deploy) is repeatable across domains and languages.

← All Projects Try CorpusAI Platform

NorwAI Legal Intelligence — Do Better Norge Case Study

A GilliganTech Research Project — Led by Dave Gilligan

Blue Note Logic Inc. × Gilligan Tech ENK • Powered by CorpusAI

👤 Dave Gilligan Creator & Architect
🎵 Blue Note Logic Inc. Infrastructure & Tech
🇳🇴 Gilligan Tech ENK Local Operations, Norway