self-hosted AI infrastructure

Building a
Self-Hosted AI Ecosystem

Two complementary AI machines, a kitchen voice assistant, a button-operated recorder, and tools for documents and automation. Language, transcription, and speech models run on my own hardware.

Updated November 15, 2026
Inference Local
Fast model Gemma 4
Large model Qwen Flash
// 01

Why Self-Host

I wanted AI that fits into everyday life: quick answers in the kitchen, a physical button for capturing a thought, help with documents, and agents that can carry context between tasks. Building the stack locally also gives me control over the models, storage, and integrations.

The project has grown from one GPU server into a small ecosystem. The useful part is how the pieces work together: a fast model for conversation, a larger model for agent work, and dedicated paths for speech and retrieval.

Local inference

Chat, transcription, embeddings, and speech synthesis run on hardware I control. A cloud model subscription is not required for those paths.

Choice of models

OpenAI-compatible interfaces let different applications share the same inference services and make model changes easier.

Practical interfaces

A browser, a voice assistant, a recording button, and messaging agents each serve a different moment in the day.

Clear tradeoffs

Local hardware has purchase, power, and maintenance costs. Optional web search and messaging still depend on outside services.

// 02

Ecosystem Overview

The November build keeps the same two-machine approach, with longer context windows and a clearer split of the speech workload.

GPU Server
Gemma 4 · fast responses · 256K context
AMD Workstation
Qwen Flash · large model · 256K context
Open WebUI
Everyday chat · model switching · search
Voice Backend
GPU transcription · summaries · tasks
Helix
Local wake word · Kokoro speech · timers
Hardware Recorder
Physical button · voice notes · extraction
Document Retrieval
Local embeddings · RAG · AnythingLLM
Web Search
Tavily · current sources · optional
Messaging Agents
OpenClaw · Hermes · Qwen-backed
n8n Automation
Retained for planned workflows
Recent changes: Qwen3.8 Flash Next replaced the previous workstation model. Both main models now have 262,144-token contexts. Speech recognition moved to the AMD GPU, Helix uses a custom local wake detector and Kokoro, and Tavily replaced the earlier search setup.
// 03

The Fast GPU Server

A desktop with an NVIDIA RTX 3090 Ti remains the responsive side of the build. Gemma handles conversational answers, summaries, task extraction, and document synthesis. A separate embedding model supports retrieval.

Hardware16-core desktop CPU, 24GB NVIDIA GPU, 64GB system RAM, and NVMe storage
Inferencellama.cpp with GPU acceleration
ModelGemma 4 26B-A4B, using a quantized mixture-of-experts model
Context262,144 tokens configured
Primary roleFast chat, voice answers, summaries, and document work

// Making room for longer conversations

Moving speech recognition off this GPU freed memory for a larger context window. Quantized caches and flash attention help the model and embeddings share the card. The longer configuration was checked with a synthetic prompt of about 250,000 input tokens.

A large context window is useful capacity, but it does not make long inputs free. Prompt processing takes time, and a model can still miss information. Retrieval and concise context remain useful even when a whole document fits.

// 04

The High-Memory AMD Workstation

The second machine trades the speed of a discrete GPU for a much larger shared memory pool. Its Ryzen AI Max+ platform makes it practical to run models that would not fit on the 24GB card.

HardwareAMD Ryzen AI Max+ 395 with Radeon graphics and 128GB unified memory
Inferencellama.cpp with AMD GPU acceleration
ModelQwen3.8 Flash Next, quantized for local use
Context262,144 tokens configured
Other workloadGPU-accelerated Whisper speech recognition
Primary roleAgent tasks, structured output, and larger-context work

Qwen Flash was selected after a small comparison with the previous Qwen model and another candidate. It was more consistent at the tested output requirements, while keeping a practical generation speed. Both messaging agents now use it; OpenClaw also has Gemma as an availability fallback.

// What the local comparisons showed

November local comparisons
DeploymentObserved strengthTradeoff
Gemma on NVIDIAMuch faster short responses; passed the small coding and tool-use setsOften added Markdown fences when plain JSON was requested
Qwen Flash on AMDMore consistent structured output and stronger overall results in this small task suiteSlower responses, especially when processing long prompts

These were short synthetic tasks on different hardware, before the context expansion. They compare these deployments and do not establish a general model ranking.

256K in practice: Both models completed synthetic recall checks with roughly 250,000 input tokens. The larger capacity is useful for documents and agent context, while short, focused prompts are still preferable for responsive interactions.
// 05

Everyday Chat — Open WebUI

Open WebUI is my main interface for talking to the models. It brings model switching, saved conversations, document uploads, and optional web search into one browser interface.

  • Choose a model per conversation according to the task and the response speed I need.
  • Keep conversations and documents together with local storage and retrieval.
  • Look up current information using Tavily search and page extraction when needed.
  • Use reasoning selectively so a simple request does not pay the latency cost of a longer reasoning path.

Recent upgrades preserved existing chat and document data. Embeddings were regenerated after the embedding runtime changed so that stored document vectors remained consistent with new queries.

// 06

Voice Processing — From Audio to Useful Notes

A custom backend connects speech recognition, language models, and the recordings interface. The same components serve voice notes, uploaded recordings, and Helix.

Recordings

Audio becomes a transcript, summary, and set of tasks. The results are available in a recordings dashboard.

Transcription

A separate transcription path produces text without requiring a summary or an assistant response.

Voice assistant

Simple intents use direct handlers; general questions go to Gemma, with current sources added when needed.

Longer audio

Bounded audio chunks keep transcription manageable and preserve segment timing across the combined result.

// Splitting speech and language workloads

Whisper large-v3-turbo runs on the AMD GPU. The backend sends its transcript to Gemma when summaries, tasks, or an answer are required. A CPU transcription fallback provides another path when the primary speech service is unavailable.

This split freed memory on the NVIDIA card without changing the recorder or assistant workflow. Synthetic checks covered the complete recording pipeline and assistant replies, including speech recognition during a model request. Real recordings still vary with length, background noise, and overlapping speakers.

// 07

Helix — The Kitchen Voice Assistant

Helix is a Raspberry Pi 4 with a USB speakerphone. A custom openWakeWord model listens locally for “Helix.” The heavier speech and language work runs on the other machines.

Local wake word

The detector runs on the Pi. Household tuning balances missed wake phrases against unwanted activations.

Speech recognition

Whisper turns a recorded command into text. The assistant routes it to a direct handler or the language model.

Kokoro speech

Kokoro generates the main spoken response on a local CPU. Piper on the Pi remains a speech fallback.

// Everyday behavior matters

Timers stay on the Pi, so their scheduling and alarm behavior do not depend on a model completing a request. Multiple timers, spoken announcements, alarm dismissal, and interrupting playback are all part of the experience.

The most useful improvements have been small ones: more natural speech, enough time to begin a command, a wake detector tuned for the household, and alarms that can be dismissed reliably. A good voice assistant depends on those details as much as on the model behind it.

// 08

A Physical Button for Voice Notes

A second Raspberry Pi is a dedicated recorder with a USB microphone, a momentary button, and an indicator light. Hold the button to record; release it to send the audio for transcription and task extraction.

Press & record → release & upload → transcribe → summarize & extract tasks → review

Long recordings are handled in chunks, and recovery tools can retry uploads. The output is useful beyond the transcript: a short summary and explicit action items make a captured thought easier to revisit.

Why a button? Capturing a thought should take almost no effort. A dedicated physical control is ready without unlocking a phone or finding an app.
// 09

Documents, Retrieval & Current Information

Document retrieval is a separate capability from a model's context window. Local embeddings find relevant passages, and the language model uses those passages to answer a question.

Local document retrieval

Nomic embeddings and a LlamaIndex-based service support collections of documents. AnythingLLM remains available for workspace-oriented document tasks.

Optional web search

Open WebUI and Helix use Tavily to find current sources. Search and page retrieval are external services; the final language-model response is generated locally.

Open WebUI is mainly my model chat interface. The separate document tools remain useful for retrieval outside that interface and for future automation.

Privacy has a boundary: Local inference does not make an online search private. Search queries leave the local system when web search is used, and messaging integrations rely on their providers. I keep that distinction in mind when choosing a workflow.
// 10

Agents & Automation

Supporting applications run separately from the main inference workloads. This keeps document tooling and automation from turning every change into a change to the model server.

OpenClaw active

A messaging assistant for practical tasks. Qwen Flash is the primary model, with Gemma available as an availability fallback.

Hermes active

A persistent-memory agent using Qwen Flash, with continuity across conversations and tasks.

Document tools retained

AnythingLLM and the separate retrieval service support document workflows beyond everyday model chat.

n8n planned

Retained for predictable workflows that agents can trigger. Those workflows are still to be developed.

The recent cleanup removed superseded search and experimental agent services. Keeping the tools with a clear role makes the ecosystem easier to maintain. The next automation step is to connect a few well-defined flows to the agents.

// 11

Service Access

Standard APIs let the browser, voice devices, document tools, and agents share the inference layer. Model choice and application behavior can evolve independently.

Selected remote access uses HTTPS and an authenticated gateway. The protected LLM gateway requires a bearer token. Model availability and permission to access a model are separate decisions.

// 12

Privacy & Security

Self-hosting gives me responsibility for the data as well as control over it. The design priorities are authenticated access, limited permissions for integrations, careful handling of recordings and documents, and a clear understanding of which features contact outside services.

Credentials and operational configuration belong in private administration records. The public story is about the capabilities, the hardware choices, and what has been useful in practice.

Local models also need sensible boundaries around tools. Model output and retrieved pages are inputs to evaluate; actions that change files or services need their own controls.

// 13

Recovery Is Part of the Build

The irreplaceable pieces are the configuration, conversations, document collections, recordings, and custom assistant behavior. Downloadable model weights are easier to replace.

Upgrades are approached with rollback copies and data checks. Recent changes included preserving chat history during the WebUI upgrade, verifying document associations after rebuilding embeddings, and keeping earlier model configurations available for recovery.

A complete backup strategy also needs separate copies and restore testing. A successful recovery matters more than simply having an archive.

// 14

How the Pieces Fit Together

The simplest way to understand the build is to follow the task rather than the network.

A conversation

Open WebUI → selected local model → response, with document context or web sources when requested.

A spoken question

Helix wake detection → Whisper transcription → direct handler or Gemma → Kokoro speech.

A recorded note

Physical recorder → transcription → Gemma summary and tasks → recordings interface.

An agent task

Messaging interface → OpenClaw or Hermes → Qwen Flash, with tools and retained context as the task requires.

These are functional flows. Each application uses the services it needs; the models, retrieval layer, and speech components can be changed independently.

// 15

What I Have Learned

Pick models for the work they actually do

A fast answer and a strictly formatted tool response are different requirements. Local comparisons are more useful when they resemble the tasks an application performs.

More context has a cost

256K is useful capacity, but large prompts take longer to process. Retrieval, summaries, and focused context help keep everyday tasks responsive.

Move workloads before buying more hardware

Shifting transcription to the AMD GPU freed NVIDIA memory for longer context. Workload placement can matter as much as the model quantization.

A service check is only the beginning

A healthy process does not prove a useful workflow. Test the whole path: record audio, transcribe it, extract the expected task, and check the resulting experience.

Household feedback beats a synthetic wake test

Saved audio is useful for checking changes. Real voices, room acoustics, and ordinary interruptions determine whether the assistant works well at home.

Keep the system understandable

Retain tools with a clear job, retire experiments that no longer serve one, and preserve a way back when changing shared components.