Webinar · 8 September 2026Soverius AI

Local and sovereign AI

Local Models forAI-Assisted Coding

Coding agents, local inference and automated verification

Rainer HahnekampSoverius AI
Soverius AI
Rainer Hahnekamp

Rainer Hahnekamp

AI Engineer
Google Developer Expert

AI Engineering

We Build Production-Ready
AI Systems

Local-first. Open. Engineering-driven.

Local Models

Private, secure, cost-efficient

AI Agents

Context, tools, reliable execution

Agentic UIs

Interfaces for people working with agents

Open SourceTraining & WorkshopsConsulting
2
Soverius AI

Agenda

01Why Local Models?
02Setup and Configuration
03Hardware Provisioning
04Expected Quality
05Engineering Around the Model
3
Soverius AI
01

Why Local Models?

4
Soverius AI

Why local?

Reasons to Run Models Locally

Cost Control

No provider charge per token.

Lock

Privacy

Keep code and context inside.

Disconnected plug

Independence

Reduce provider dependency.

5
Soverius AI
02

Setup and Configuration

6
Soverius AI

Required Components and Our Setup

AGENTClaude Code
calls
INFERENCE ENGINEllama.cpp
runs
MODELGemma 4
7
Soverius AI

Local Inference Demo

8
Soverius AI
03

Hardware Provisioning

9
Soverius AI

CPU and GPU Inference

CPU1× ComputeIntel Core i9-14900K
Hard Disk or SSD≈0.1–7 GB/sBarraCuda HDD
870 EVO / 990 PRO SSD
Swap · No Compute
System RAM≈90–100 GB/sDual-Channel DDR5-5600
PossibleOften too slow
GPU≈30–100× ComputeRTX 4070 Super – RTX 5090
VRAM≈500–1,800 GB/sGDDR6X – GDDR7
PracticalUsually 5–10× faster

You can serve a model larger than 1 TB from disk, but do not expect a response anytime soon.

10
Soverius AI

Local Inference Hardware

11
Soverius AI

Deployment envelopes

Model Size by Deployment Class

Closed-model values are estimates from public benchmark data [1][2], not disclosed parameter counts. Typical error ≈2×.

12
Soverius AI

Model Availability by Organization

OrganizationDownloadable
Weights
Built Into
Devices
Hosted
API
OrganizationDownloadable
Weights
Built Into
Devices
Hosted
API
Google
GemmaGemini NanoGemini
OpenAI
gpt-ossGPT
Anthropic
Claude
Apple
OpenELMApple Intelligence
Meta
Llama
Microsoft
PhiPhi SilicaPhi
NVIDIA
NemotronNIM
Mistral AI
MistralMistral
Alibaba · Qwen
QwenQwen
DeepSeek
DeepSeekDeepSeek
Z.ai · GLM
GLMGLM
Moonshot · Kimi
KimiKimi
MiniMax
M2.5MiniMax
xAI
Grok-1Grok

Availability differs by model family.

13
Soverius AI

Gemma 4 Family

DenseSame path for every tokenMixture of ExpertsRouter selects experts
Total Parameters 30B 20B 10B 0
E2B5.1B totalDense
2.3B effective
E4B8B totalDense
4.5B effective
12B11.95B totalDense
26B-A4B25.2B totalMoE
3.8B active
31B30.7B totalDense

ECore size, excluding large embedding lookup tables

AParameters selected by the router for each token

14
Soverius AI

Qwen 3.6 Family

DenseSame path for every tokenMixture of ExpertsRouter selects experts
Total Parameters 50B 40B 30B 20B 10B 0
27B27B totalDense
35B-A3B35B totalMoE
3B active

AParameters selected for each token

262KNative context for both models

15
Soverius AI

Largest Open-Weight Models by Region

Selected model families · total parameters · logarithmic scale · 7 September 2026

16
Soverius AI

Memory Provisioning

RecommendedFully Served by VRAM

Sizing Criteria

  • Model Size
  • Quantization
  • KV Cache
  • Context Size
  • Operational Memory
17
Soverius AI

Quantization Principle

18
Soverius AI

Weight Memory by Number Format

FormatOne ValueBytes70B Weights
FP3232 bits
4 B
280 GB
BF16 / FP1616 bits
2 B
140 GB
INT8 / FP88 bits
1 B
70 GB
INT4 / NF4 / FP44 bits
0.5 B
≈ 35–45 GB
Weight Memory ≈ Parameters × Bytes per ValueWeights only. Quantized files also store scales and metadata.
19
Soverius AI

Choosing a Quantization Level

20
Soverius AI

Video Compression Over Time

Illustrative file size for one minute of the same 1080p source at comparable visual quality.

21
Soverius AI

Prefill and Decoding without KV Cache

0:00.0 / 0:18.5

Prefill

Compute-Bound

Decode

Recomputes the Entire Context
  • User Input
  • Tool Response
  • Thinking
Pleasebuildatestedcomponent
withourexistingsignalstore
andaddthebackendintegration
Model Layers
Predicted Token
returnthefinalresult
Inputreturnthefinal
22
Soverius AI

KV Cache During Inference

0:00.0 / 0:12.5

Prefill

Builds the Cache

Decode

Reuses the Cache
  • User Input
  • Tool Response
  • Thinking
KV Cache
Pleasebuildatestedcomponent
withourexistingsignalstore
andaddthebackendintegration
Model Layers
Predicted Token
returnthefinalresult
Inputreturnthefinal
23
Soverius AI

Gemma 4 26B-A4B Memory Provisioning

IT QAT UD-Q4_K_XL by unsloth · 3.8B active / 25.2B total · one inference slot · F16 KV cache

All 25.2B parameters must fit in memory. Totals use a 2 GiB runtime reserve.

24
Soverius AI

Gemma 4 12B Memory Provisioning

QAT UD-Q4_K_XL by unsloth · one inference slot · F16 KV cache

Totals use the conservative 2 GiB endpoint of the estimated 1–2 GiB runtime range.

25
Soverius AI

Qwen 3.6 35B-A3B Memory Provisioning

UD-Q4_K_XL by unsloth · 3B active / 35B total · 10 KV layers · one inference slot · F16 KV cache

Hybrid architecture: only 10 of 40 layers grow the KV cache. Totals use a 2 GiB runtime reserve.

26
Soverius AI

Qwen 3.6 27B Memory Provisioning

UD-Q4_K_XL by unsloth · 27B dense · 16 KV layers · one inference slot · F16 KV cache

Hybrid architecture: 16 of 64 layers grow the KV cache. Totals use a 2 GiB runtime reserve.

27
Soverius AI
04

Expected Quality

28
Soverius AI

Quality vs Data Sovereignty

Speed is a hardware budget question. Powerful local hardware can match cloud inference speed.

29
A high-performance sports car caught in traffic and roadworks

The Porsche test

Do We Need Peak Capability for Every Trip?

Most software tasks never reach the empty, unrestricted Autobahn.

Soverius AI

Benchmark philosophy

Qualification Instead of Ranking

Qualification threshold
Model A
Model B
Model C
Qualification criteria
Works with coding agents
Handles long-running tasks
At least 128K tokens of context
31
Soverius AI

The qualification task

Full-Stack Capstone Task

Angular

Angular

  • Feature component
  • UI component
  • SignalStore
  • Unit test
Spring

Spring

  • JPA entities
  • Mapper
  • Controller
  • Database migration
Playwright

Playwright

  • End-to-end test
32
Soverius AI

The Capstone Prompt

/goal

In my holidays overview I want a German vocabulary trainer, similar to the existing quiz feature. For destinations in German-speaking places (currently Lübeck and Vienna) users should be able to practice a few basic German words before they travel: the holiday card shows an icon when a vocabulary test is available, and opening it lets the user translate words.

Do a full-stack implementation (backend + frontend) following the structure and conventions of the existing quiz feature (architecture, feat folder, backend entity/repository/controller). The app must be accessible, and the accessible names below are required. Create and run e2e tests for the feature.

Acceptance Criteria

1Successful Verification

  • The frontend build check is pnpm ng build --optimization false.
  • Start any required application dependencies using the project's existing setup, then start the backend with ./gradlew bootRun.
  • Wait for the backend to become ready and verify that both the existing /heartbeat and /holiday endpoints respond successfully. Starting the process alone is not sufficient.
  • Start the frontend on port 4200 and run the vocabulary feature's e2e tests with the project's Playwright setup.
  • If compilation, application startup, an endpoint request, or an e2e test fails, diagnose the failure, fix the implementation, and repeat the relevant checks. Do not finish while a required check is failing.
  • Stop all application processes and temporary services that you started after verification, including when a check fails.

2Vocabulary Data

  • A vocabulary test consists of exactly 5 words. Each is an English word the user must translate into German.
  • Use exactly these 5 English -> German pairs, stored verbatim (capitalization and umlauts matter):
squirrel      -> Eichhörnchenturtle        -> Schildkröterefrigerator  -> Kühlschranktoothbrush    -> ZahnbürsteGermany       -> Deutschland
  • The same 5 words are used for every destination that offers the test. Seed this data (e.g. a Flyway migration) for the German-speaking destinations Lübeck and Vienna.

3Discovery on the Holiday Card

  • A destination that has vocabulary data shows a vocabulary icon/link on its holiday card in the holidays overview, exactly like the quiz icon. Drive this off the presence of vocabulary data — do NOT hardcode a list of cities.
  • The control is an accessible link with the accessible name "Vocabulary Test".
  • Destinations without vocabulary data must not show it.

4The Vocabulary Test

  • Opening the "Vocabulary Test" link shows the 5 questions and a status area. Navigation, dialog, or inline panel — your choice.
  • For each question, show the English word and provide a free-text input for the German translation. Each input's accessible name must contain its English word (e.g. an input labelled "squirrel"), so every input is individually identifiable regardless of order or layout.
  • A status area shows three counts, each exposed with exactly these accessible names (value included): "Unanswered: N", "Correct: N", "Incorrect: N".
  • The three counts are mutually exclusive and always sum to 5. Initial state: Unanswered: 5, Correct: 0, Incorrect: 0.

5Answering

  • An answer is evaluated when the user leaves (blurs) a non-empty input. There is no submit button — the counts update live on blur.
  • Blurring an empty input does nothing; the question stays unanswered.
  • Comparison is exact and case- and umlaut-sensitive: the typed text must exactly equal the stored German word. "Kühlschrank" is correct; "kühlschrank", "Kuhlschrank", and "Kühlschrank " are all incorrect. No trimming or normalization.
  • Once a non-empty input has been evaluated it is locked (cannot be edited again). The counts update accordingly: Unanswered decreases by 1, and Correct or Incorrect increases by 1.
33
Soverius AI

Claude workflow

Claude Goal Review

Goal
Model Sessionkeeps running
Model runsDecides “done”
Context
grows every round
Goal Reviewseparate model
Not completeReturn to the same session
34
Soverius AI
05

Engineering Around the Model

35
Soverius AI

Local Models Can Run 24/7

Use autonomous implementation loops with clear safeguards.

36
Soverius AI

Harness / loop engineering

Our Verification Loop

Issue / Spec Review3 rounds
Deterministic Verification3 rounds
Fresh Model Session
One Try
Stop
Build · Tests · Browser
Validation Agentinterprets the failure
Explanation
new session
Issue / Spec Reviewerchecks the implementation
Changes requiredRestart with reviewer findings
Complete
37
Soverius AI

Implementation Loop for Production Systems

GitHub coordinates the request. The implementation workflow runs on our local machine.

38
Soverius AI

Thank you

Questions?

Local models for AI-assisted coding

QR code for webinar feedback
Feedback and resources
soverius.ai/feedback/740bbb39