π Zero to Hero Index
Welcome to the Local AI βZero to Heroβ guide. This vault is designed as a digital garden: donβt read it linearly. Follow your needs, click on concepts you havenβt mastered yet, and build your expertise step by step.
π Why run AI on-premises?
You may already use ChatGPT or Claude daily. Why bother hosting a model yourself?
1. Data sovereignty Every prompt sent to a cloud service is processed on third-party servers, often outside the European Union. In medical practices, legal departments, public administration, or industrial companies, some data cannot legally leave your premises β GDPR, professional secrecy, classification. On-premise AI is the only technical answer to that constraint. For a 6-criteria audit grid and the GDPR/AI Act framework, see π Sovereignty & Privacy.
2. Predictable cost at scale Cloud APIs bill per request. At low volume, thatβs negligible. With 50 employees querying an assistant all day, the monthly bill can exceed the amortized cost of a dedicated machine within a few months.
3. Full control: model, behavior, availability On-premises, you choose the model, customize it, run without an Internet connection, and availability does not depend on a third partyβs pricing or terms of service.
πΊοΈ Vault contents
π 01 - Foundations (The physics of AI)
Understand why a β¬4,000 computer can still be too slow for AI.
- π§ The Journey of a Prompt (How it works)
- ποΈ Memory Bandwidth (Memory Bandwidth)
- βοΈ Unified Memory vs RAM vs VRAM
- πΎ KV Cache and Context
- ποΈ 4-bit & 8-bit Quantization
π 02 - Hardware
A catalog of architectures.
- π₯οΈ Hardware Index β blueprint-guided tour
- π§ APU & Unified Memory (AMD Strix Halo & Mac)
- π§© Multi-GPU Workstations (Nvidia, PCIe)
- π GPU rack servers (1UβHGX, RTX vs datacenter)
- π AI Networking: RoCE, InfiniBand, and Thunderbolt
π 03 - Software stack (The engines)
How to bring the silicon to life.
- βοΈ Inference Engines: vLLM, Ollama, and TensorRT-LLM
- π AI Clustering: Connecting GPUs with Exo and Ray
- π§© RAG & Agents: The knowledge architecture
- πΊοΈ Choosing your local model β 2026 families, sizes, specializations, blueprint mapping
π 04 - Architecture blueprints (Scenarios)
Ready-to-propose configurations for your clients.
- π οΈ Scenario A: Dev Lab (CPU Offloading)
- π’ Scenario B: SME Appliance (Unified Memory)
- π₯οΈ Scenario C: Desktop Cluster (Exo & Thunderbolt)
- π Scenario D: Datacenter (RoCE & Multi-GPU)
- π° TCO comparison: On-premise vs Cloud API β break-even by scenario
π 05 - On-Premise Agents & Assistants
The application layer: AI that knows you, and AI that acts for you.
- π€ Overview: two tracks, one sovereignty question
- π Sovereignty & Privacy β 6-criteria audit grid, GDPR/AI Act
- ποΈ Possible architectures β assistant, custodian, hybrid
- π§βπΌ Personal assistants (AI that learns from your data)
- π€ Custodian agents (AI that maintains your vault)
- Custodian agent Β· Human-in-the-loop Β· Memory Tree
π 06 - Practical implementation
How to test and decide before deploying.
- π§ͺ Overview: practical protocols
- π Getting started with Ollama β install, first model, API, basic settings
- π§ͺ Evaluating a local model β quality, hallucinations, RAG, agents, KPIs, performance
- π Local inference security β API auth, network isolation, OWASP LLM Top 10, agents
- βοΈ Configuring multi-GPU vLLM β tensor parallelism, Ray, production
- π Prometheus + Grafana monitoring β GPU metrics, KV Cache, alerts
- π Migrating from Ollama to vLLM β cutover without downtime, API compatibility
π§ Which blueprint should you choose?
Have a concrete need? This table points you in the right direction in 30 seconds.
| Concurrent users | Model size | Hardware budget | β Blueprint |
|---|---|---|---|
| 1 (dev / test) | 8β14B | < β¬3,500 | [[04-blueprints/scenario-a-dev-lab |
| 1 (dev / test) | 70B with offloading | < β¬3,500 | [[04-blueprints/scenario-a-dev-lab |
| 2β20 (SME, team) | 70B | β¬4,000β8,000 | [[04-blueprints/scenario-b-sme-appliance |
| 2β20 (SME, team) | 200B+ / MoE | β¬10,000β15,000 | [[04-blueprints/scenario-c-desktop-cluster |
| 50+ (production) | 70Bβ400B | > β¬300,000 | [[04-blueprints/scenario-d-datacenter |
| SLA constraint < 500 ms | Any | β | [[04-blueprints/scenario-d-datacenter |
πΆ Iβm new here: where do I start?
First visit? Follow this path before exploring freely:
- LLM (what is a large language model?)
- LLM inference (how you use it day to day)
- π§ The Journey of a Prompt (what really happens when you talk to it)
- ποΈ Memory Bandwidth (why your machine can feel slow)
- π οΈ Scenario A: Dev Lab (your first concrete blueprint)
π Dictionary & concepts
Quick definitions for all technical terms. π AI Glossary