What is self-hosting AI? Explained with your own generator
Self-hosting AI means running an open-weight model on computers you control instead of sending every question to an AI company. Explained with a building that runs its own generator instead of the grid.
- Author
Umair Mateen- Published
- Reading time
- 5 min
- Category
- AI
In one sentence: Self-hosting an AI model means downloading an open-weight model and running it on computers you control, your own servers or your own cloud account, instead of sending every question to an AI company's servers.
The everyday picture
Most offices get their electricity from the mains grid. A power company runs the power station. You plug in, use what you need and pay for every unit on the bill. Using an AI model through a provider's paid connection works the same way: you pay per use and the provider does the heavy lifting.
Some buildings also run their own generator. They buy or rent the machine, keep it fuelled and serviced, and decide when it runs. Nothing depends on the power company. That is self-hosting: the AI model runs on a machine you control.
A generator only helps if it is big enough for the building, and someone has to look after it. The same is true of a self-hosted model.
You download an open-weight model onto a machine you control. Serving software loads it and offers a standard socket (API), so your apps get answers without the data leaving your network.
How it works, step by step
- You pick an open-weight model (you choose a generator design). Only models whose trained settings, the "weights", are published can be self-hosted. Google, for example, offers its Gemma 4 models for download from Kaggle and Hugging Face under the Apache 2.0 licence. Always check the licence: it is the maker's terms for how you may use it.
- You size the machine to the model (you match the generator to the building's load). The model must fit in the machine's memory, usually the memory on a graphics chip (GPU). Google's figures show the range: about 2.9 GB for its smallest Gemma 4 model in a compressed 4-bit form, and about 69.9 GB for its largest in full 16-bit form, before extra room for long conversations.
- Serving software loads the model (the generator starts up). Tools such as Ollama or LM Studio suit a single computer. Tools such as vLLM are built to answer many people at once on a server.
- It offers a standard socket (an API, the connection your apps plug into). vLLM and Ollama both copy the request format of OpenAI's API, so many existing apps only need a new address to switch over.
- Your apps ask questions and get answers (the lights come on). The questions and answers travel only between your app and your machine, so they need not leave your network.
Try it · Myth or fact
Your own generator: myth or fact?
Decide for yourself first, then tap each statement to check it.
0 of 4 checked
Where the picture stops
- A generator makes the same electricity as the grid. A self-hosted model is not the same as a provider's model. The best-known closed models, such as ChatGPT's or Claude's, cannot be downloaded at all, so you choose from open-weight models instead.
- Generators are simple to compare by size. AI models are not: two models of the same size can differ a lot in quality, so you need to test them on your own tasks.
- "Your own generator" sounds like it sits in your basement. Many teams self-host on rented cloud machines in their own account. The data stays under their control, but the hardware still belongs to the cloud company.
Why it matters for your business
- Data control: sensitive documents can stay inside systems you run, which can help with privacy rules and contracts that limit where data goes.
- Predictable costs at steady volume: you pay for the machine and its upkeep, not for every question. At low or uneven volume, paying per use is usually simpler.
- You decide when things change: the model only changes when you update it, so a tested workflow keeps behaving the same way.
- New responsibilities: security, updates, backups and keeping the service running are now your job or your hosting partner's.
Try it · What would you do?
Which business should run its own generator?
A 15-person design studio uses AI a few times a week to draft emails. It has no IT staff and no rules about where its data goes. It is thinking about buying a GPU server to self-host a model.
Pick what you would do. You can change your mind.
An example
Imagine a 30-person law firm that wants AI to summarise client contracts. Its clients do not want their documents sent to outside AI services. The firm rents one GPU server in its own cloud account, downloads an open-weight model that fits in that server's memory, and runs it with serving software. Its document tool already spoke the OpenAI format, so the team changed one address. They tested the model on past contracts before trusting it, and a lawyer still checks every summary.
Frequently asked questions
Can I self-host ChatGPT or Claude?
No. Their weights are not published, so they only run on their makers' servers. You can self-host open-weight models such as Google's Gemma family.
Do I need a GPU to self-host an AI model?
Not always. Small models can run on an ordinary laptop or even a phone. Larger models need a lot of memory, which usually means one or more GPUs.
Is self-hosting cheaper than using an AI API?
It depends on your volume. A machine you pay for whether it is busy or idle makes sense when it is busy most of the time. For light or occasional use, paying per request is usually cheaper and less work.
Is a self-hosted model private by default?
Only if the setup is. Data stays in when the model, the serving software and the apps all run on systems you control, and access to them is locked down.
Related explainers
The DevDrift helps teams run AI on infrastructure they control, with approvals and audit trails: see how.
Sources
Could you explain this to a colleague now?
Mark it and posts that mention it will show a tick. Saved in this browser only.