Why I stopped arguing and built something
Over the last six to twelve months my household and my extended family have gone from trying ChatGPT to using it most days. I’m glad they find it useful. What bothers me is what they type into it.
The more they use it, the more personal the questions get. Specific healthcare questions. Details about accounts. More than once, an actual password, pasted in while asking for help getting something to work. None of them are careless people. A chat box that answers like a patient friend simply gets treated like one.
I tried training them out of it. I explained where those conversations are stored, who can read them, and what “may be used to improve our models” means. Everyone nodded, and the behavior didn’t change, because the tool is useful and the risk is invisible.
So I gave up on changing the people and changed the tool. If the family is going to tell a chatbot everything anyway, it should be one where the conversation stays in this house, nothing is used to train someone else’s model, and there is no company on the other end to have a breach.
Same habit, different destination. I didn’t want to give them a lecture or a worse tool. I wanted a page that does what they already use ChatGPT for, at an address on my own network.
Where this ends up. One sentence typed into the page, and the picture is in the reply about eight seconds later. Nothing in this exchange left the house.
The requirements
There are a lot of ways to do this, so I wrote the requirements down before I picked anything.
- It has to be reasonably smart. Not frontier, but good enough that nobody goes back to the cloud out of frustration.
- It has to search the web and fetch fresh information when the question needs it, and it has to decide that on its own without being told.
- It has to generate pictures and do simple picture edits right in the chat, the way ChatGPT does, without anyone opening a separate tool.
- No external API access for anything except the web searches themselves.
- No cloud inference of any kind, frontier or small. Every token is generated locally.
- The inference side should survive one machine being down.
- It should run on a modest power budget and sit at the low end of what AI hardware costs.
What I already had
I didn’t buy anything for this. I had two AMD Strix Halo machines with 128GB of unified memory each that weren’t fully committed to other work. I had an older small-form-factor gaming PC built on a Minisforum board with a Ryzen 9 7945HX, 28GB of RAM, and an RTX 5060 Ti 16GB in it. And I had my existing hypervisor cluster with a Docker host on the internal network, which is where everything that isn’t inference runs.
Here is how a request moves through the finished thing:
The whole system. The chat model decides when to search and when to draw; Open WebUI runs the tool it asks for and hands the result back. The dashed line is the house, and one arrow crosses it.
I built it in the order that let me test each layer by itself before anything depended on it: inference first, then the failover in front of it, then the image box, then the front end, and the family last.
Inference: two small boxes and one address
The engine and the model
The chat model is Qwen3.8 Flash Next served by Halogen, an inference engine built for the Strix Halo’s GPU that exposes an OpenAI-compatible API. I’ve had that pair running under Docker on the first box since mid-September, originally for other jobs, and the thing that sold me on it for this one is that it calls tools readily and reliably. That matters more than benchmark scores here, because requirements 2 and 3 both depend on the model deciding by itself to reach for a tool.
I benchmark every engine release on the box before I leave it running, with the engine’s own tools against the live server: ten realistic prompt shapes, three repetitions each, 256 tokens, timed from the engine’s decode window and not from wall clock. That history turned out to be worth keeping:
| Engine release, same hardware | Mean tokens per second | Range |
|---|---|---|
| Mid-September (0.6.3) | 46.1 | 40.5 to 51.4 |
| Early October (0.17.2, new checkpoint) | 60.2 | 51.2 to 69.1 |
| Mid-October (0.18.1) | 62.2 | 52.7 to 73.1 |
| November (0.20.1), box one | 70.7 | 56.6 to 88.6 |
| November (0.20.1), box two | 70.0 | 56.0 to 87.9 |
Seventy tokens a second reads as instant in a chat window, and the two boxes are within one percent of each other, which matters once a load balancer is deciding between them. The same machines got about 50% faster in two months without my touching the hardware. That is a good argument for a model and engine that are still being actively worked on.
The second box is a copy of the first: same compose file, same image tag, same kernel command line, and the weights (about 130GB) copied over and checksummed rather than downloaded twice.
Why two, and how they share one address
You don’t need two machines for this. One Strix Halo box will serve a family comfortably. I used two because I’m going to point other workloads at them as well, and because I wanted to be able to upgrade or break one without taking the service away from whoever is in the middle of something, whether that’s grandma, one of the kids, or an agent.
The inference pair. Addresses and the domain name are placeholders.
Each box runs three things:
- A Halogen engine with its own copy of the model.
- Olla, a small proxy (a 28MB container) that load-balances OpenAI-style requests. Each Olla points at both engines, its own and the other box’s.
- keepalived, which holds one virtual IP between the two machines using VRRP. Clients only ever know that address.
The Olla configuration is identical on both boxes, and three choices in it matter:
- Least-connections balancing. With both boxes idle, requests simply alternate. Under load, the next request goes to whichever engine is doing less.
- Sticky conversations. Olla keys on a session header if the client sends one, and otherwise on a hash of the first 512 bytes of the message list. Either way, a conversation keeps landing on the same engine, so that engine’s prompt cache stays useful and every follow-up doesn’t pay to re-read the whole chat.
- Retry on connection failure. If an engine refuses the connection, Olla tries the other one at once and the client never sees it.
keepalived is set up so that the address follows Olla and not the engine. Its health check is a curl against the local Olla every two seconds. If the engine on a box dies, that box keeps the address, because its Olla is still up and simply sends everything to the other engine. The address only moves when Olla itself stops answering or the whole machine goes away.
What bit me while building it
Nothing here was hard, but four things cost me time, and none of them were in a getting-started guide.
- Olla refuses to start if the health check timeout is not shorter than the check interval. My first config had both at five seconds and the container crash-looped. Three seconds and five seconds fixed it.
- Olla has no bare
/v1route. The client URL needs its prefix:http://halo.example.net:40114/olla/openai/v1. Every OpenAI-compatible client I have accepts a base URL, so this was a one-line change everywhere, but it has to be known. - Long answers need long timeouts, including the header timeout. A non-streaming request sends no headers until the whole answer is finished, so a proxy with a short response-header timeout cuts off exactly the big jobs. I raised everything to 30 minutes. I also raised the default rate limit, which was 100 requests a minute per client IP and is easy for one agent to exceed.
- keepalived will not accept a preempt delay on a node that starts as MASTER. I wanted the preferred box to wait 30 seconds after coming back before reclaiming the address, so it doesn’t grab it while its engine is still loading. The supported way is to start both nodes as BACKUP and let priority (150 against 100) choose the holder.
The things I expected to need and didn’t: no firewall changes, no kernel sysctl for binding to an address the box doesn’t hold yet, and Docker’s own packet filter rules leave VRRP alone.
The drills
I don’t trust failover I haven’t watched fail. On the day I built it I ran three drills from a third machine, all through the shared address.
| What I broke | What happened |
|---|---|
| Stopped Olla on the box holding the address | Three failed checks, the box gave up the address at 5.5 seconds, the other box had it at 6.1, and requests were answering again 6.4 seconds after the stop. When I started Olla again, the original box waited its 30 seconds and took the address back. |
| Stopped the engine on the standby box, left its Olla running | The address didn’t move. Six completions in a row were all served by the surviving engine with zero errors. The first of them hit the dead engine’s refused port and was retried without the client noticing. Started the engine again and it was back in rotation within 10 seconds. |
| Rebooted the box holding the address, with a request every two seconds running the whole time | The other box had the address one second after the reboot command. It served everything alone for 1 minute 43 seconds. The rebooted box took the address back at 102 seconds. 110 requests, 0 failures. |
The reboot is the drill that matters, because it is what a kernel update looks like. A loop sending a request every two seconds through a full reboot of the primary never saw an error or a dropped connection. Every reply also carries a header naming which engine answered, which made it easy to confirm the traffic went where I thought it did.
Pictures: the head scratcher
This was the part I expected to be easy and wasn’t. There are a lot of ways to generate images locally, and most of the write-ups for doing it behind Open WebUI use Flux or one of the Qwen-Image-Edit releases, often with one model for generating and a second one for editing. I wanted Qwen-Image-2.1 because it does both jobs in one model, and that means the card never has to swap models between “draw me a thing” and “now change the thing.”
I went looking for anyone who had documented Qwen-Image-2.1 wired into Open WebUI as a tool the chat model calls, and I didn’t find one. That doesn’t mean nobody has done it. The model is new, and it may just not be written up yet. Either way I had to work it out.
Choosing how to run it on 16GB
The engine already on that box has its own build of this model, and it refused outright: its catalog says the image model needs a 32GB card. So before installing anything I read through what other people had measured on 16GB cards, and narrowed a long list down:
| Option | Why it stayed or went |
|---|---|
| ComfyUI with the official INT8 files | The only route with a published measurement on a 5060 Ti. No custom nodes. Official templates for both generating and editing. |
| stable-diffusion.cpp server | Loads the same files and speaks the OpenAI image API directly, which would be the tidier integration. No published speed numbers on this class of card, and no prebuilt Linux CUDA binary. My runner-up. |
| GGUF quantizations | One tester on the same card measured the Q8 GGUF at about half the speed of INT8 (158 seconds against 75 for the same large image). The most common GGUF loader for ComfyUI also doesn’t load this architecture yet. |
| FP8 | Same size as INT8 and measurably further from the full-precision model in the published comparisons. |
| 4-bit formats (NVFP4, SVDQuant) | Fast, noticeably lower fidelity, and the builds are community forks. Not what I want on a box that runs unattended. |
| Full precision through diffusers | Doesn’t fit sensibly in 16GB of VRAM and 28GB of RAM. |
One number from that reading decided a detail I would never have guessed. On a 5060 Ti, the same INT8 model took 21 seconds per image with the PyTorch build for CUDA 13.0 and 69 seconds with the build for CUDA 12.8. That is the published measurement of someone else, and I didn’t reproduce the slow case. I installed the 13.0 build from the start.
Nobody had published a Turbo timing on this card. From the per-step numbers that did exist, I estimated about 10 seconds per picture.
Building the box
The install is small. Everything lives in one directory owned by an ordinary user:
- Python 3.13 from
uv. The OS ships Python 3.14 without the venv module, souvsupplies both the interpreter and the environment. - PyTorch 2.14.1 for CUDA 13.0, and ComfyUI 0.45.3 with no custom nodes at all.
- Four model files from the ComfyUI organization’s repository for this model: the Turbo transformer and the standard transformer (7.26GB each), the quantized text encoder (9.35GB), and the VAE (0.68GB). That is 24.5GB. If you only want Turbo it is 17.3GB.
- A systemd unit so it starts at boot and restarts on failure, a static address, and a DNS name (
images) so the front end points at a service name and not a machine.
With everything loaded the card peaks around 15.7GB of 16. It fits, and nothing else is going to share that GPU.
One of the open bug reports I’d read described this exact card producing pure noise with these files. The first picture I generated was a picture. I mention it because it was the outcome I was most braced for.
Testing it before wiring anything to it
I wrote a short script that submits a workflow to ComfyUI’s API and times it from request to saved file, with the model, the size, the seed, and the prompt as arguments. Fixed seeds meant I could run the same prompt through both versions of the model and compare like with like.
Qwen publishes two versions of 2.1. The standard one takes about 25 steps per image. Turbo is the official 8-step version of the same model, same architecture and same file size, trained to finish in fewer steps.
| 1024×1024, model already loaded | Turbo (8 steps) | Standard (25 steps) |
|---|---|---|
| Generate a new picture | about 6 s | about 17.5 s |
| Edit an existing picture | about 12 s | 23 to 28 s |
| Generate at 2048×2048 | about 31 s | 134 s |
| First picture after a restart | about 9 s |
My estimate was 10 seconds and the measurement was 6. The standard model at 17.5 seconds also came in ahead of the 21 seconds published for the same card, which I put down to this box being headless Linux with no desktop holding a gigabyte of VRAM.
Speed was never going to be the whole decision. I ran the same prompts through both and built side-by-side sheets, and I picked prompts that punish shortcuts: a birthday card with specific wording, because text inside an image is where few-step models usually fall apart, and edits that change one thing while keeping everything else.
The same prompt and seed through both versions: Turbo on the left, standard on the right. The styles differ, and both spelled all four words correctly.
Edit tests. Top left is the starting picture. Each edit was run through both versions of the model: snow and a yellow jacket on the top row, a pencil sketch with the sign reworded on the bottom. Without the filenames I could not say which column is which.
I could not tell the Turbo pictures from the standard ones in any way I’d care about, and the edits were indistinguishable. So the family gets Turbo, and the standard model stays on disk in case I ever want it. Six seconds for a new picture on a 5060 Ti is faster than I expected from this little machine.
Wiring it into the chat
Open WebUI can use ComfyUI as its image engine. You give it a workflow in ComfyUI’s API format and tell it which node holds the prompt, which holds the size, and so on. I built two workflows from ComfyUI’s official templates, one for generating and one for editing.
ENABLE_IMAGE_GENERATION: "true"
IMAGE_GENERATION_ENGINE: "comfyui"
IMAGE_GENERATION_MODEL: "qwen_image_2.1_turbo_int8_convrot.safetensors"
IMAGE_SIZE: "1024x1024"
COMFYUI_BASE_URL: "http://images.example.net:8188"
COMFYUI_WORKFLOW: '{ ...the generate workflow, API format... }'
COMFYUI_WORKFLOW_NODES: '[{"type":"prompt","key":"prompt","node_ids":["5"]}, ...]'
ENABLE_IMAGE_EDIT: "true"
IMAGE_EDIT_ENGINE: "comfyui"
IMAGE_EDIT_MODEL: "qwen_image_2.1_turbo_int8_convrot.safetensors"
IMAGES_EDIT_COMFYUI_BASE_URL: "http://images.example.net:8188"
IMAGES_EDIT_COMFYUI_WORKFLOW: '{ ...the edit workflow... }'
IMAGES_EDIT_COMFYUI_WORKFLOW_NODES: '[{"type":"image","key":"image","node_ids":["20"]}, ...]'
Two details in the workflows are specific to this model:
- Turbo’s schedule is fixed, so I didn’t expose it. The eight steps are written into the workflow as an explicit list of noise levels (
1.0, 0.978453, 0.95418, 0.926626, 0.89508, 0.845148, 0.704534, 0.414568, 0), sampled with Euler at a guidance scale of 1. Open WebUI has a “steps” setting it can inject into a workflow. I left it unmapped, because a different step count with this checkpoint only makes things worse. - The edit workflow works at about one megapixel regardless of the input. The official edit template will happily sample at the full resolution of whatever it is handed, and a phone photo at full size is ten times the work for no visible gain.
Here is what Open WebUI fills in before it sends each workflow:
| Value from the chat | Generate workflow | Edit workflow |
|---|---|---|
| Prompt | the text-encode node | the text-encode node |
| Model file | the model loader | the model loader |
| Width, height, count | the empty-latent node | not mapped, output follows the input picture |
| Seed | the noise node | the noise node |
| Input picture | none | the image loader |
| Steps | deliberately not mapped | deliberately not mapped |
Testing in three layers, and where each one lied to me
I tested the integration from the bottom up, and each layer passed while hiding a problem in the next.
Layer one: Open WebUI’s own image endpoints. Calling them directly, a generate came back in 9.2 seconds and an edit in 11.8, both with the right picture. So the workflows, the node maps, and the network path were all correct.
Layer two: does the chat model pick the tool? Sending a chat request for a picture through the API, the model answered with a call to generate_image, wrote a sensible prompt for it, and chose a 1536×1024 size without being asked. Two things I learned here: the built-in tools are only offered when the request carries a session ID, and a raw API call returns the tool call and stops, because only the browser actually runs it.
Layer three: a real browser. This is where it fell over, three times.
The model has to be handed the tools. In this version of Open WebUI the chat model calls generate_image and edit_image itself, the same way it calls search, and it is only offered those tools when the Image feature is switched on for that chat. My first browser test produced a sailboat drawn in ASCII characters, because the model had no picture tool and did its best with what it had.
Turning a feature on by default takes two settings, not one. There is a defaultFeatureIds list in the model’s metadata, and adding image_generation to it looks like the whole job. It isn’t. The browser only pre-enables a default feature if the same metadata also lists it under capabilities. Set one without the other and nothing happens, with no error anywhere. My API tests had hidden this completely, because an API test sends its own feature flags.
{
"defaultFeatureIds": ["web_search", "image_generation"],
"capabilities": { "web_search": true, "image_generation": true, "vision": true, "file_upload": true }
}
Phone photos are enormous. The first real edit anyone tried was on a photo straight off a phone, and it failed with image is 8640x5760; the limit before resizing is 14745600 pixels. I went to the image box’s logs first and found nothing, because the error never came from there. An attached picture is also sent to the chat model so it can see what you’re asking about, and the chat model rejects anything over about 14.7 megapixels. That photo was nearly 50. Open WebUI can shrink pictures in the browser before they are uploaded, so I capped them at 2048 pixels on the long side. The edit comes out at about one megapixel regardless, so the cap costs nothing.
FILE_IMAGE_COMPRESSION_WIDTH: "2048"
FILE_IMAGE_COMPRESSION_HEIGHT: "2048"
Every one of those three failures passed an API test first. The only test that counts for a family tool is a person in a browser doing what a person does, and the person I should have imagined earlier is the one attaching a 50-megapixel photo of the dog.
Search: the easy part
I installed SearXNG on the Docker host, turned on its JSON output, and pointed Open WebUI at it. That was the entire job.
It is on for every chat by default, and the system prompt tells the model to search when a question involves news, sports, weather, prices, schedules, or anything else that may have changed recently, and not to search for things it already knows well.
A plain question with no instruction to search. The model checked the date, searched, fetched two pages, and answered from them with a source on every line.
The practical effect is the one I wanted from requirement 2: ask it something past its training data and it looks it up and answers from what it found, rather than inventing something plausible. It also noticed on its own that “this weekend” was nearly over and covered the next one.
Search queries do go out to the internet. They go out as search terms from SearXNG to the search engines, not as a conversation attached to an account. The model writes the query, so what leaves is usually a few keywords and not the personal paragraph that prompted them. That is a much smaller leak than the one I started with, but it is not zero, and I would rather say so.
The front end: no accounts, still private from each other
For the page itself I used Open WebUI. I looked at lighter chat front ends first and dropped them, mostly because their image generation story was weak and this needed pictures. The main thing I changed about Open WebUI is that nobody logs in. These are grandmas and kids on my own network. A sign-up form and a password are exactly the friction that would send them back to the app they already have.
My first build did this the lazy way: everyone was the same shared user, with chats set to temporary so nobody saw anyone else’s. It worked and it was wrong, because losing your history is the first thing a ChatGPT user notices.
The second build gives each person their own history without asking them for anything. Open WebUI supports full accounts and roles, and it also supports trusting a header from a reverse proxy to say who the user is. So the proxy in front of it gives every browser a random ID in a cookie the first time it shows up, and passes that ID along as the user. Open WebUI creates an ordinary non-admin user for it on the spot. Each browser gets its own saved chats, nobody types a password, and nobody sees anybody else’s conversations.
What a brand-new browser sees. No sign-in, and the search and picture buttons under the message box are already lit.
The tradeoff is that identity is the browser. A different device is a different history, and clearing cookies starts you over. For this audience that is fine. A few other choices keep it hard to break:
- It is only reachable from inside the network. It is not on the internet and never will be.
- There is exactly one model in the picker, so there is no wrong choice to make.
- Its settings live in the compose file with persistent config switched off, so nothing anyone clicks in a settings panel survives a restart, and every change I make is a diff I can roll back.
- Search and pictures are on by default. If someone asks for a cheetah at a Victorian table drinking tea, they get a cheetah at a Victorian table drinking tea a few seconds later. There is no separate workflow, no mode to switch, and no toggle to find.
I keep a second, ordinary Open WebUI instance for myself with a login and every model in the house on it. The family’s one is deliberately the boring one.
How it stacks up against the list
| Requirement | Where it landed |
|---|---|
| Reasonably smart | Qwen3.8 Flash Next at about 70 tokens a second. Not a frontier model, and good enough that nobody has complained. |
| Searches on its own | SearXNG, on by default, the model decides when |
| Pictures in the chat | Qwen-Image-2.1-Turbo through ComfyUI, generate in about 6 seconds and edit in about 12 |
| No external APIs except search | Only SearXNG talks to the internet |
| Local inference only | Chat on the Strix Halo pair, pictures on the 5060 Ti |
| Resilient inference | The chat model survived a full reboot of its primary with 110 of 110 requests answered. The picture box is a single machine. |
| Modest power and cost | Two mini PCs and one 16GB card, all hardware I already owned. I haven’t put a meter on it yet. |
What I’d tell you before you copy it
- Edits take one picture. My edit workflow accepts a single input image. The model can take several reference pictures, so “put the dog from this photo into that photo” is possible, but my workflow doesn’t do it today.
- The image server has no authentication. ComfyUI listens on the internal network with no login. On my network that is acceptable. It should never be reachable from anywhere else.
- Read the image model’s license. Qwen-Image-2.1 is released under the Qwen Research License, which is not Apache 2.0. Read it and decide for yourself before you build on it.
- The picture box is a single point of failure, and the GPU is full. If it’s down, the chat still works and picture requests fail.
- Nothing cleans up after it yet. Generated pictures and uploaded photos pile up on the image box until I write the job that prunes them.
- It is not ChatGPT. A model this size gets things wrong that a frontier model wouldn’t. With search switched on it gets fewer of them wrong than I expected.
It has been working out remarkably well. The part I’m happiest about is not any of the engineering. The family didn’t have to change what they do. They open a page, ask it whatever is on their mind, and this time the answer to “where did that conversation go” is a machine in my house.