I run a homelab with local GPUs and self-hosted software for three reasons. Some workloads have to run locally. Running the stack myself teaches me how the large providers work. And it lets me build for clients in both places, on their own hardware or in the cloud, and move work between the two.
This post lists the specific reasons under those three headings, plus two more about cost, control and learning. Each reason has the point, the mechanism behind it, and an example from this site where one exists. The last sections cover when the cloud is the better choice. If any terms are unfamiliar, How My AI Stack Fits Together has a map of the layers and a glossary.
Learning How the Providers Work
Understanding the large hosted providers
The large cloud and model providers are AWS (Amazon Bedrock), Microsoft Azure, Google Cloud (Vertex AI and Gemini), Anthropic, and OpenAI. They hide the serving layer, and the serving layer is where most of their pricing and limits come from. When I serve models on my own GPUs, I have to solve a small version of the same problems: which model stays loaded in GPU memory, which server gets a request, how large a context window each model can have, and what happens when two workloads want the same card.
Solving those problems makes the providers’ decisions easier to explain. A fixed context limit per model, billing for reasoning tokens, rate limits, and the gap between batch and real-time pricing all follow from the same constraints I see at home. I wrote these up in What This Shows About Hosted Providers on my local model serving page.
When the Data or the Location Rules Out the Cloud
No internet, but AI and compute are still needed
A hosted model needs a network connection to the provider. Some places do not have one: underground, underwater, at sea, at remote sites, and in regions without strong internet infrastructure. Work in those places still needs models, data processing and monitoring. The only option is to run them on hardware that is physically there. A local stack that already runs without calling out to a provider is the starting point for that kind of deployment.
Data that cannot go to a public provider
Some data cannot be sent to a public provider at all: intellectual property, confidential business data, legal records, medical records, data bound by compliance rules, and data whose contract limits where it may be processed. A provider’s privacy terms do not change that. If the data is not allowed to leave, the model has to come to the data. Running models on owned hardware, behind a gateway that I control, is how that works in practice.
Data residency and sovereignty
Some data must stay in a specific country or a specific facility for legal reasons. Government and defense work commonly carries these rules, and so do some regulated industries. A hosted region in the right country is enough for some of these requirements and not for others. I have worked with a US DoD intelligence vendor, where the client set made the data sensitive. Knowing how to run the whole stack on hardware in a known location gives a client an option when a hosted region does not meet the rule.
Building for Clients in Both Places
Software that runs locally and in the cloud
Much of the software I run at home also runs in the cloud, either self-hosted on cloud servers or as a managed service. Grafana, Prometheus, Open WebUI, Langfuse, LiteLLM and others work the same way in both places. Because I deploy and operate them myself, I know which settings and dependencies change when the location changes.
That helps clients in both directions. A team can start on a managed service and later move the workload onto its own hardware for cost or data reasons. A team can also start on local hardware and move a workload to the cloud when it needs to scale. In both cases the move is easier when the same software runs on both sides.
Cost, Control and Stability
Fast prototyping on hardware that would be expensive to leave running
In the cloud, a GPU server costs money for every hour it runs, whether it is busy or not. That pushes people to shut it down between experiments, and then to spend time starting it again. In the lab, the cost is the hardware, bought once, plus power. Leaving it running costs almost nothing extra, so I can try an idea whenever I have it and leave a long job running overnight.
Model stability and reproducibility
Hosted models are retired or changed on the provider’s schedule. A model name can point to different behaviour from one month to the next. Local model weights do not change unless I change them. That means an evaluation, a workflow or a regulated output can be run again later with the same model and get comparable results. The generated header loops on this site keep a record of the prompt and models behind each clip for the same reason: a result is only useful if I can trace it and repeat it.
Resilience to provider changes
Providers have outages, rate limits, pricing changes and policy changes. Any one of these can stop a workload that depends on a single provider. Local capacity is a fallback. My apps and agents call one gateway, and the gateway decides which local server or hosted provider answers. Switching from one to another is a configuration change in the gateway, not a change in every app. The local model serving page describes that gateway.
Predictable cost for loops and batches
Agents retry, call tools, and loop until a task is done. Batch jobs run the same model across many inputs. With per-token pricing, both can produce bills that are hard to predict in advance. Generating the header loops for this site meant running many prompts and seeds and keeping only the clips that passed review. Locally, that cost is fixed, so trying another variation costs only time.
Latency for real-time and physical systems
Some systems need an answer in a predictable amount of time, and sometimes on the device itself. Robotics, home automation, and radio and mesh projects all fall into this group. A round trip to a hosted provider adds network delay that changes from one request to the next, and it fails completely when the connection drops. A model on the local network or on the device removes both problems.
Freedom to modify and inspect
With local models, I can change the model, not only the prompt. I train LoRA adapters for image models with AI Toolkit. I compare quantized versions of the same model to see what quality is lost when a model is made smaller. I can run models that providers do not offer. And I can see how a model behaves under real memory and context limits, because I set those limits myself. A hosted API shows the output; a local server also shows the conditions that produced it.
Learning by Breaking Things
A safe place to fail
Upgrades, failover and recovery are hard to practise on a production system. In the lab, a mistake costs me an evening, not a customer’s uptime. I took the cluster’s storage and hypervisor through major Proxmox and Ceph upgrades one node at a time while it kept serving storage, working from a written plan for each step. The general argument is in Prototype Infrastructure Before Production.
Physical constraints
Power, heat and GPU memory are real limits. My GPUs have run at their thermal limit during long generation jobs, and a card at that limit slows itself down. GPU memory decides which models fit on which card. When I see that, I understand why providers price and ration capacity the way they do: every GPU they run has the same limits, and idle capacity still costs them power and cooling.
Offline demos and teaching
A local stack works in a client’s conference room or a classroom with no network and no shared accounts. Nobody has to sign up for a service, share an API key, or depend on the venue’s Wi-Fi. That makes a demo repeatable, and it lets people try the tools without handing their data to a third party.
When the Cloud Is the Better Choice
Local hosting has real costs, and for many workloads the cloud is the better choice.
- The strongest frontier models are available only through provider APIs. If a task needs the best available model, it goes to a provider.
- I own all of the operational work. Patching, security, backups and hardware failure are my problems. A provider handles those for its own services.
- The capital cost is paid up front. Hardware is bought before it does any work, and it ages whether it is used or not.
- It does not scale to large user counts or sudden demand. A homelab has a fixed amount of capacity. The cloud can add capacity when demand rises.
- Managed services remove work a small team should not carry. A team without someone to run servers is usually better off paying a provider to run them.
The practical rule I use is to put each workload where its constraints put it, and to design it so it can move. A gateway in front of all model providers, as in local model serving, makes the move a configuration change. How My AI Stack Fits Together shows the same boundaries across the rest of the stack.
What This Means If You Are Choosing Where to Run a Workload
Start with the constraints, not with a preference for local or cloud. These questions usually decide it:
- Where is the data allowed to go? If contracts, regulation or residency rules keep it on your hardware or in one country, that decides the location before anything else does.
- Will there be a reliable network connection where the work happens? If not, the model and the compute have to be on site.
- Does the task need the strongest available model, or a model you can pin and repeat? The first points to a provider. The second points to weights you control.
- Is the load steady and predictable, or does it spike? Steady, long-running work suits owned hardware. Spiky or fast-growing demand suits the cloud.
If you are working through these questions for your own systems, get in touch. I can help you decide where each workload belongs and set it up so it can move later.