In short
On-premise AI means running the language model on your organisation's own servers, so data never goes to an external provider. It makes sense when data cannot leave, usage is high and steady, or the system has to work offline. In exchange, you buy and run the hardware and use open-weight models, which now fit on a single 80 GB GPU or even a consumer graphics card.
On-premise AI is AI that runs on your organisation’s own servers, in your data centre or server room, instead of calling a cloud provider’s API. The language model, the documents and the answers all stay inside your network. It makes sense when data cannot leave, when usage is high and steady, or when the system has to work without an internet connection; in other cases the cloud is usually cheaper and quicker to set up.
The option is more realistic than it used to be because open-weight models (the ones you can download and run on your own hardware) have improved quickly. Stanford’s AI Index 2025 found that the gap between the best open and closed models narrowed from 8% to 1.7% on some benchmarks in a single year. There are now models under the Apache 2.0 licence that fit on a single GPU.
What do you gain and lose with on-premise AI compared with the cloud?
With on-premise AI you gain control over where the data lives and which model version runs, and you lose the convenience of not having to operate anything. The decision depends mainly on the data, the volume of use and the team you have to maintain the system.
| Aspect | On-premise AI | Cloud provider API |
|---|---|---|
| Where data is processed | On your servers, inside your network | On the provider’s infrastructure |
| Available models | Open-weight models only | Also the most capable closed models |
| Cost | Hardware and people; fixed cost | Pay per use; variable cost |
| Setup | Weeks: purchase, installation, configuration | Hours: an API key |
| Version changes | You decide | The provider decides |
| Scaling | Limited to the installed hardware | Immediate, within contract limits |
| Working offline | Possible | Not possible |
In the cloud you pay for each query; on-premise you pay for the hardware whether you use it or not. That is why your own server pays off when it runs many hours a day with a similar load, and becomes expensive when it is used little or in bursts. Before buying, work out the real volume: how many people, how many queries a day and how long they are.
When does it make sense to run AI models on your own servers?
On-premise AI makes sense when at least one of these conditions applies, and the case is stronger when several do:
- The data cannot leave your infrastructure. Because of a contract, an internal policy or the type of information: clinical records, case files with data on minors, classified information or trade secrets.
- You want to avoid international data transfers. If the provider processes data outside the European Economic Area, the General Data Protection Regulation (GDPR) requires a basis for that transfer, such as an adequacy decision or standard contractual clauses, as the Spanish Data Protection Agency (AEPD) explains. With the model on your servers, that transfer does not happen.
- Usage is high and stable. An assistant that searches thousands of documents every day for the whole workforce keeps the hardware busy and spreads its cost.
- The system has to work offline. Industrial plants, ships or sites with isolated networks.
- You need to pin the model version. In audited processes, a model that does not change without notice lets you repeat an evaluation and get the same results.
If none of these apply, a cloud API with processing in the European Union is usually the more sensible way to start. In a Spanish public body, the requirement that data must not leave is best written into the tender documents from the start; we explain how in our guide to AI public procurement in Spain.
What hardware do you need for on-premise AI?
The main limit is GPU memory (the graphics card that does the calculations). The whole model has to fit in it, and the Hugging Face documentation gives a simple rule: loading a model with X billion parameters in bfloat16 precision needs roughly 2 × X GB of GPU memory. A 70-billion-parameter model needs about 140 GB just for the weights, more than an 80 GB GPU holds.
Quantisation brings that figure down. Quantising means storing each parameter with fewer bits (8 or 4 instead of 16). In the same guide’s example, a model of about 15 billion parameters goes from about 31 GB to just over 15 GB at 8 bits and about 9.5 GB at 4 bits. Hugging Face warns that quantisation trades memory efficiency against accuracy and sometimes speed, so you need to measure quality on your own cases.
Besides the weights, each conversation takes up memory in its key-value cache (the intermediate memory the model keeps for text it has already processed). That cache grows with the length of the text and with the number of simultaneous users. In the Hugging Face example, with a 16,000-token context, the cache took about 15 GB, half of what the weights took. So a system for many people needs a good deal more memory than the model size suggests.
| Model | Size | Hardware stated by its source |
|---|---|---|
| gpt-oss-20b | 21 billion parameters | Runs within 16 GB of memory |
| Mistral Small 3 | 24 billion parameters | Quantised, a single RTX 4090 or a MacBook with 32 GB of RAM |
| gpt-oss-120b | 117 billion parameters | A single 80 GB GPU, such as NVIDIA H100 or AMD MI300X |
| A 70-billion-parameter model in bfloat16 | 70 billion parameters | About 140 GB: several GPUs or quantisation |
The figures in the table are for running the model. Retraining it (fine-tuning) takes more: according to its model card, fine-tuning gpt-oss-120b can be done on a single H100 node, meaning a server with several of those GPUs.
Which AI models can you run locally?
Only open-weight models can run locally: models whose maker publishes the parameters so anyone can download them. The best-known models from the large commercial providers are only available through their API and cannot be installed on your servers.
Two examples under the Apache 2.0 licence, which allows commercial use:
- Mistral Small 3, from Mistral AI (January 2025): 24 billion parameters. According to its maker, once quantised it can be run privately on a single RTX 4090 card.
- gpt-oss-120b and gpt-oss-20b, from OpenAI: according to the model card, the larger one has 117 billion parameters, of which only 5.1 billion are active at each step, and fits on an 80 GB GPU; the smaller one runs within 16 GB of memory.
Before choosing, read each model’s licence. Not every open model uses Apache 2.0, and some licences set conditions on use or attribution. Check languages too: a model that performs well in English can fall short on administrative documents in Spanish or in Spain’s other co-official languages.
What software and team do you need to operate on-premise AI?
Besides the model, you need an inference server: the program that loads the model onto the GPU and handles requests. vLLM, an open-source project that started at UC Berkeley, is a common choice. It serves models through an API compatible with the OpenAI format, supports quantised formats such as INT4, INT8, FP8, GPTQ, AWQ and GGUF, and runs on NVIDIA and AMD GPUs and on x86 and ARM processors. API compatibility lets you move from a cloud model to a local one without rewriting the application.
The rest of the system sits on top of that server, as it would in the cloud:
- The application people use (an assistant, an integration with the ERP or the case management system).
- Document retrieval, if the model has to answer with internal information. We explain it in how to make AI answer from your company’s documents.
- Access control: who can use the system and which documents each person can see.
- Traces: a record of every query, the documents used and the answer, for auditing and for measuring quality.
- Operations: GPU monitoring, backups, security updates and testing before changing models.
Operations is what changes most compared with the cloud. With an API, the provider takes care of the hardware, availability and versions. On-premise, those tasks are yours or your contractor’s, including when a GPU fails on a Friday afternoon. If the system is an AI agent that takes actions in other systems, permissions and traces matter even more.
How do you choose between on-premise, cloud or a mix of both?
The practical way to decide is to test before you buy. These steps reduce the risk:
- Classify the data the system will handle and decide which data cannot leave. That classification sets the limit of what can go to the cloud.
- Prepare a set of real questions or tasks with the correct answer, so you compare models on more than impressions.
- Test one or two open models of the size your hardware would allow, on a rented server or a test machine, and compare them with a commercial model on the same tasks.
- Measure the expected volume (simultaneous users, document length) to size the memory, including the cache.
- Decide who will operate the system and with what support hours.
Many organisations end up with a mix: sensitive data is processed by a model on their own servers and tasks without personal or confidential data use a cloud API. If the application talks to both through the same interface, moving a task from one side to the other is a configuration decision.
At Referent we deploy systems in our cloud, in the client’s cloud or on their own servers (on-premise), with traces of everything the system does. For public bodies, deploying on their infrastructure is the option when data cannot leave. The team that does the diagnosis is the one that builds, deploys and maintains the system, as we describe in our working method.
Frequently asked questions
How much GPU memory does a 70-billion-parameter model need?
About 140 GB just to load the weights in bfloat16 precision, following Hugging Face's rule of two gigabytes per billion parameters. That does not fit on an 80 GB GPU: you have to split it across several GPUs or quantise it to 8 or 4 bits, which reduces memory at the cost of a possible loss in quality that you should measure.
Can you run an AI model locally without a GPU?
For testing, yes: inference servers such as vLLM also run on x86 and ARM processors. For real use with several people at once, responses on a CPU are usually too slow. A small quantised model on a machine with plenty of memory is enough to validate the idea before buying hardware.
Do you need to retrain the model to use it on-premise with company data?
Usually not. The common approach is to give the model the relevant documents with each query (RAG) or connect it to your systems through tools and permissions. Retraining (fine-tuning) is kept for specific cases, such as a very particular output format, and needs more hardware than running the model.
Is an on-premise model automatically GDPR compliant?
No. Running the model on your own servers avoids transferring data to the model provider, but the processing still needs a legal basis, security measures, access control and logging. Check each case with whoever handles data protection in your organisation.
Sources
Consulted while writing this article.
- Optimizing LLMs for Speed and Memory · Hugging Face. Hugging Face (Transformers documentation).
- openai/gpt-oss-120b · Hugging Face. OpenAI (model card on Hugging Face).
- Mistral Small 3 | Mistral AI. Mistral AI.
- vLLM. vLLM project.
- The 2025 AI Index Report | Stanford HAI. Stanford Institute for Human-Centered Artificial Intelligence (HAI).
- Garantías para las transferencias de datos personales a terceros países u organizaciones internacionales | AEPD. Spanish Data Protection Agency (AEPD).