Free Lesson · 9 min read
When Running Your Own AI Models Beats Paying for Cloud AI
How to choose between cloud AI and open models you run yourself: speed, data rules, licenses, and when owning the hardware pays off.
What You Build & Master
- ·Estimate how fast an open model will run on a given computer before you buy it
- ·Check whether an open model's license allows the way you plan to use it
- ·Recognize when data rules or steady workloads make running your own models cheaper or safer than cloud AI
Deliverable artifact: Private vs. Cloud AI Break-Even Worksheet
In this module
A healthcare services company wants AI to summarize patient intake forms, but its lawyers will not allow patient data to leave the company's own systems. Someone suggests buying a powerful computer and running an open model in-house. Someone else points out that nobody knows how fast it will be, what it will really cost, or whether the license even allows it.
Two ways to get AI into your workflows
The first option is a cloud API. An API is a standard way for your software to send a request to another company's service and get a result back. You pay per use, the provider runs the hardware, and you get the most capable models available. Many providers offer zero data retention terms, a written promise not to store your data after answering, and some will sign the specialized agreements that regulated industries require.
The second option is an open-weight model you run yourself. You download the model's files and run them on your own computers or in a private cloud account you control. Your data never goes to an outside AI company. In exchange, you buy or rent the hardware, someone on your team keeps it running, and you usually give up some capability compared with the very best cloud models.
Neither is better in general. The right choice depends on three things: how sensitive the data is, how steady the workload is, and how hard the task is.
How fast will it run? Check the memory first
Before buying hardware, it helps to understand one fact about how these models work. To produce each new token (a chunk of text, roughly three quarters of a word), the computer must read the active part of the model out of memory. So for a single user, speed is limited mainly by how quickly memory can be read, called memory bandwidth, rather than by raw processing power.
That gives a useful rule of thumb. Divide the hardware's memory bandwidth by the size of the active part of the model, and you get a rough ceiling on tokens per second for one user. Real speeds come in below that ceiling, but it quickly rules out bad purchases.
Here is how it plays out with illustrative numbers. A large traditional model with 70 billion parameters (the numbers a model learns during training), compressed to take up about 40 gigabytes, running on a machine with 800 gigabytes per second of memory bandwidth, tops out around 20 tokens per second. That is readable but sluggish for a person waiting on an answer.
Two ideas change the picture. Quantization means compressing a model by storing its numbers with less precision, which shrinks it at a modest cost in quality. Mixture of experts is a design where the model is split into many specialist parts and only a few of them work on each token. A mixture-of-experts model might hold 35 billion parameters in total but use only 3 billion for each token, so it reads far less memory per token and runs many times faster. The catch is that the whole model still has to fit in memory, even though only part of it works at any moment.
When the cloud wins and when owning wins
Do not buy hardware because it feels safer or more independent. Buy it when the data rules, the workload, or the math point that way.
| Situation | Usually the better choice |
|---|---|
| Usage is spiky: busy some hours, idle others | Cloud API |
| The task needs the most capable model available | Cloud API |
| Your legal team accepts a provider's no-retention terms | Cloud API |
| Rules or clients forbid sending the data outside your systems | Run your own |
| A steady job runs most of the day, every day | Run your own, after checking the math |
| You need predictable monthly costs for a large, steady batch | Run your own |
The steady workload is where the money works. A machine that sits idle most of the day rarely pays for itself. A machine running background jobs eight or more hours a day often does, sometimes within a year, compared with paying per use. The break-even analysis and the guide to three ways of hosting open models work through real examples.
If you do run your own, make sure your software cannot quietly fall back to a cloud service when the local model is busy or offline. Some tools allow that by default, so check the settings.
Read the license before you build
"Open" does not always mean free to use however you like. Some models use permissive licenses such as Apache 2.0 or MIT, which allow commercial use, modification, and including the model in your own product. Others publish their files under custom terms that may limit use above a certain company revenue, restrict offering the model as a paid service, or require attribution.
For internal operations, many licenses are fine. If you plan to put the model inside something you sell, have someone qualified read the license first, and keep a copy of the version you agreed to.
A worked example: patient intake summaries
Here is an illustrative case. A regional healthcare services company processes about 600 patient intake forms a day and wants a short summary of each ready for clinical staff. Its policy forbids sending patient records to outside AI providers, so the cloud was off the table regardless of price.
The team tested two open-weight models on 200 past forms, comparing the AI summaries with ones staff had written. The smaller, faster model was good enough on about 90% of forms. They bought a single workstation for roughly $9,000 with enough memory to hold the model comfortably, set it to run overnight batches, and turned off every cloud fallback.
Summaries now arrive before the morning shift. Forms the model marks as unclear, about one in ten, go to a nurse for a full read. The team estimated that equivalent cloud usage would have cost around $1,000 a month, so the hardware pays for itself in under a year, plus a few hours a month of IT time. They still use a cloud frontier model for work with no patient data, such as drafting policy documents.
Try this on Monday
- List the AI tasks your team runs or plans to run, and mark any involving data that must stay inside your systems.
- For each task, note whether the work is steady or spiky, and roughly how many hours a day it would run.
- For any task you might run yourself, look up the model's license and write down whether it allows your intended use.
- If you are considering hardware, divide its memory bandwidth by the size of the model you want, and check that the result is fast enough for the job.
- Compare one month of estimated cloud costs with the hardware price plus staff time, and count how many months it takes to break even.
The sovereign stack page collects more on private AI setups, and you can see how we can work together if you are planning one.