In brief
A language model in the cloud gives access to the largest models without buying hardware, and you pay for usage. A model on your own server or in a data center in Poland gives full control over data, but it needs GPUs and people to run it. The choice depends on the data, the regulator, case volume and the quality the task needs. The most reliable approach is to run the same test set through both options and compare the result, the cost per case and the response time.
Three options and the question to start with
In practice a company chooses between three options:
| Option | Which models | How you pay | Who runs it |
|---|---|---|---|
| a cloud model service (API) | the producers' largest models | per use, usually per token | the provider |
| an open-weight model in a data center in Poland | open models, often smaller | for GPU servers, monthly | the company or a partner, on the operator's hardware |
| an open-weight model on the company's server | open models, often smaller | hardware purchase and upkeep | the company's IT department or a partner |
The first question is not "which model is best" but "what data will the model see". Orders from business customers are a different situation from patients' medical records or a bank's customer credit data. The map of data flows and the questions to ask a provider are described in Company data and language models. This article starts where that one ends: how to make the decision.
Six selection criteria
- Type of data. Special categories of data, such as health data, and legally protected secrets shift the choice toward your own infrastructure or a data center in Poland.
- Supervisory requirements. Banks and insurers treat a cloud service as an ICT service from a third-party provider under DORA. What this means in practice is described in Cloud in the financial sector.
- Case volume and its pattern. With a few hundred cases a month, paying per use is usually cheaper than a GPU server that sits idle most of the time. With a steady, high volume the math can flip.
- Quality the task needs. Reading an invoice or matching order lines can often be done by a smaller model. A long contract analysis or answering tender questions from many documents may need a larger one. A test decides this, not a leaderboard.
- Response time and availability. An AI Worker running in the background can tolerate a dozen seconds per case. An assistant a person talks to in real time cannot.
- Skills to run it. Your own server means updates, monitoring, backups, spare parts and on-call duty. Without the people to do this, the advantage of control turns into a risk of downtime.
Cloud: what to check in the service terms
Large cloud platforms describe data processing in their documentation, and it is worth reading carefully, because the details depend on configuration. Two examples:
- Models in Microsoft Foundry (including Azure OpenAI). According to Microsoft's documentation, prompts and completions are not available to OpenAI or other model producers and are not used to train foundation models. With a standard deployment, processing takes place in the selected geography. With a "Global" deployment it may take place in any geography, and with a "DataZone" deployment created in an EU member state, within the EU member states. The abuse monitoring system may store samples for human review.
- Amazon Bedrock. AWS documentation states that model providers have no access to the accounts their models run in, and therefore no access to logs or to customer prompts and completions.
Then there are the legal questions. When personal data leaves the European Economic Area, Chapter V of the GDPR applies, and for transfers to the US the Commission adopted an adequacy decision under the EU-US Data Privacy Framework (Implementing Decision (EU) 2023/1795). It is also worth checking how long the provider keeps a given model version available, because retiring a version means retesting the AI Worker on the test set.
Your own server: how much hardware you need
Hardware size is driven mainly by GPU memory. The model weights alone take roughly the number of parameters times the number of bytes per parameter:
| Model | 16-bit weights | 4-bit weights (quantization) |
|---|---|---|
| 8B parameters | approx. 16 GB | approx. 4–5 GB |
| 32B parameters | approx. 64 GB | approx. 16–20 GB |
| 70B parameters | approx. 140 GB | approx. 35–40 GB |
On top of the weights comes memory for the context of every case handled at the same time, so long documents and many parallel requests increase the requirement. Quantization reduces memory at the cost of some quality, and only a test on your own cases shows how much.
The model runs on an inference server. vLLM provides an OpenAI-compatible API and handles many requests at once, which makes it easier to swap a cloud model for a local one without rewriting the AI Worker. For experiments on a workstation, Ollama is often convenient. Open models also include models trained with the Polish language in mind, for example the Bielik family from SpeakLeash, which are worth adding to the comparison for documents in Polish.
A mixed setup and a decision based on a sample
The choice does not have to be the same for the whole company. A common mixed setup looks like this: cases with sensitive data are handled by a model in a data center in Poland or on the company's server, while tasks without personal data, such as summarizing a public tender specification, go to a larger cloud model. The condition: the AI Worker has a layer that lets you swap the model without changing the rest, and rules that decide where a case goes.
The decision is best made on data. The same test set goes through both options, and you compare three numbers: the result in each case category, the cost per case and the response time. How to build the set is described in How to measure the quality of an AI Worker's work, and how to plan the test in An AI Worker pilot.
AI Workers from DYNAMINDS Labs run on the client's server or in a data center in Poland, and nothing goes to clouds abroad without the client's consent, as described in the security section of the Labs page. With medical records, as in the case study on organizing NFZ settlement documentation, this is usually the only acceptable setup.
Questions and answers
Is a model on your own server worse than a cloud model?
The largest models are usually available only in their producers' clouds, so on difficult tasks the difference can be clear. On process tasks such as reading an invoice or matching an order, a smaller model with good data and clear rules is often enough. A test on the company's own set of cases settles this, not general model leaderboards.
Is data sent to a cloud model used to train it?
In business services such as models in Microsoft Foundry or Amazon Bedrock, the providers' documentation rules out using customer prompts to train foundation models. Consumer service terms can differ. Before deployment, check the terms of the specific service, log retention and the abuse monitoring mechanisms.
How much does a language model on your own server cost?
The cost consists of a server with GPUs sized to the model, power and cooling or a colocation fee, software licenses if needed, and people's time for maintenance. In the cloud you pay mainly for usage. A comparison makes sense only after converting both into the cost per case at a realistic volume.
Can a bank use a language model in the cloud?
It can, but the cloud service is then an ICT service from a third-party provider within the meaning of DORA, with requirements for the contract, the register and the exit strategy, plus the supervisor's expectations and the GDPR. For customer data, banks often choose a data center in Poland or their own infrastructure.