Running a large language model inside a company's own infrastructure is not just a matter of keeping data away from public AI services. For many organisations, it is a way to retain control over sensitive information, meet internal security policies and manage where personal data is processed. This is particularly relevant for businesses operating in Russia, where data-localisation requirements and sector-specific security rules can influence infrastructure decisions.
However, deploying an LLM in a private environment involves more than purchasing a GPU server. Organisations need to choose the right level of network isolation, select a model and inference engine, secure the software supply chain, and understand the total cost of ownership (TCO).
This guide explains how to approach these decisions, with a focus on practical considerations for companies operating in the Russian market.
Why Businesses Need Local LLM Inference and What a Private Network Means
Local LLM inference is not exclusively a requirement for organisations with strict information-security policies. A company may choose to run a model internally because it wants greater control over its data, needs to comply with personal data requirements, or simply does not want internal documents and business information sent to an external API.
It is important, though, to distinguish between local deployment, on-premises infrastructure, a private network environment and an air-gapped system. These terms describe different things. Before selecting GPUs or comparing models, an organisation should establish what data the model will process and which network connections are acceptable.
On-premises, private network and air-gapped deployment: what's the difference?
| Approach | What it means |
|---|---|
| On-premises | Computing infrastructure is physically hosted at the organisation's own premises |
| Private network environment | A controlled environment in which access to data, models and services is restricted |
| Air-gapped environment | An isolated environment with no ordinary network connection to external networks |
On-premises describes where the infrastructure is located, not how isolated it is. A server can be installed at a company's office or data centre and still have unrestricted internet access. Its physical location alone does not make it a secure, closed environment.
A private network environment is defined by technical and organisational controls. These typically include network segmentation, access management, outbound traffic filtering, activity logging and controlled delivery of software components.
An air-gapped environment takes isolation further by removing ordinary network connectivity to external networks. Software updates still need to be delivered, but models, containers and dependencies must first be downloaded and checked in an external environment, then transferred into the isolated infrastructure through a controlled process.
When Is a Private Environment Necessary — and When Is It Excessive?
A private deployment makes sense when the potential cost of a data leak or regulatory violation outweighs the additional infrastructure and operational expenses. However, not every AI project requires a fully air-gapped environment. For a small internal assistant that only processes anonymised information, such a level of isolation may introduce unnecessary complexity.
The situation is different when a model handles personal data, internal documentation, trade secrets or information subject to specific security requirements. In these cases, the organisation should first classify the information and determine the required level of isolation. The architecture should follow from those decisions, rather than the other way around.
Regulatory Requirements for LLM Inference in Russia
Using an LLM does not, by itself, create a separate regulatory regime. The applicable requirements depend on the data being processed, the information system involved and the conditions under which processing takes place.
When personal data is involved, organisations need to consider Russia's Federal Law No. 152-FZ on Personal Data. This includes requirements for data protection and rules governing cross-border transfers. Additional requirements may apply to critical information infrastructure (CII), depending on the organisation and the systems involved.
It is therefore too simplistic to claim that cloud APIs are automatically prohibited for personal data. The relevant questions are what information is sent to the model, where it is processed, who has access to it and which safeguards are in place.
What Does Federal Law No. 152-FZ Mean for Personal Data Processed by an LLM?
If an LLM receives personal data, it becomes part of the organisation's personal data processing activities. The company needs to identify the categories of data involved, the purposes of processing, the parties participating in the process and the security measures applied.
For a private LLM deployment, this means implementing access controls for both the model and the underlying data, assigning permissions according to user roles, logging operations and controlling network connections. Where data is transferred across national borders, the requirements of Article 12 of Federal Law No. 152-FZ must also be assessed.
Running a model inside the organisation's own infrastructure can reduce the number of external points through which data is transmitted. However, local deployment alone does not guarantee compliance with the law. Compliance depends on the complete processing arrangement and the safeguards implemented around it.
Trusted Model Registries and the Status of Russian LLMs
Organisations should not assume that there is one universal, up-to-date register of approved LLMs that automatically determines whether a particular model can be used in a private environment.
Model selection requires a separate review of the model's origin, licence, distribution terms and support for local deployment. The organisation should also check whether the model meets its internal security and technical requirements.
For Russian-developed models, it is worth verifying their current legal and technical status against official sources. This is particularly important for organisations whose procurement or infrastructure policies include requirements concerning domestic software and technology.
Choosing an LLM, Inference Engine and Hardware Requirements
GPU requirements are determined by much more than the number of model parameters. The format in which the weights are stored, context length, batch size, number of concurrent requests and required response speed all affect the final configuration.
Consider Qwen3-30B-A3B, which has approximately 30.5 billion parameters. It uses a Mixture-of-Experts (MoE) architecture, activating around 3.3 billion parameters for each token. This does not mean that a server only needs enough memory to store 3.3 billion parameters: the complete set of model weights must still be available.
Models and Quantisation: How Much VRAM Do You Actually Need?
Quantisation reduces the memory required to store model weights. As a simplified estimate, FP16 uses around 16 bits per parameter, INT8 around 8 bits, and INT4 around 4 bits. Looking at weight storage alone, INT8 therefore requires roughly half the memory of FP16, while INT4 requires approximately one quarter.
These ratios should not be treated as direct GPU memory requirements. Inference also needs memory for supporting data structures, the KV cache, context and other components. The actual VRAM requirement depends on the model architecture and workload.
| Model size | General hardware requirements |
|---|---|
| 7–8B | Models that can fit into relatively compact configurations |
| 13–14B | More demanding, particularly with longer context windows |
| Around 30B | Requires substantial GPU resources |
| 70B and above | Usually needs multiple accelerators or aggressive quantisation |
This is why choosing a GPU based only on the model's parameter count is unreliable. The proposed configuration should be tested under a workload that reflects real usage.
Inference Engines and Server Configuration
Production LLM inference typically relies on specialised serving software designed to load models efficiently and handle multiple requests. One widely used option is vLLM, which supports different memory-management mechanisms and several quantisation formats.
Text Generation Inference (TGI) was also a popular choice for serving LLMs. However, its repository is now in maintenance mode, and Hugging Face recommends considering alternatives such as vLLM and SGLang. For a new project, TGI should therefore not automatically be treated as an equivalent alternative to vLLM: its current maintenance status needs to be taken into account.
Kubernetes is not essential for every deployment. If an organisation runs a single model on a single server, introducing a separate Kubernetes cluster may add operational overhead without delivering much value. Kubernetes becomes more useful when the deployment involves several GPU nodes, complex resource allocation or a need to scale workloads across the infrastructure.
Designing an Isolated Environment and Verifying Network Security
A private LLM inference environment consists of more than a GPU server. Its architecture also includes model storage, the inference server, internal services, identity and access management, and network policies.
The central principle is straightforward: external connectivity should be denied by default, and every permitted connection should be explicitly defined.
Network Segmentation and Outbound Traffic Control
GPU servers and model storage should be placed in a separate network segment. Only the internal services that genuinely need to communicate with these components should be granted access.
Outbound traffic should follow a deny-by-default policy. If a particular component needs to connect to a specific service, that connection should be explicitly allowed. DNS, proxy servers and network gateways must also be included in the security model.
Configuring firewall rules is not enough to prove that an environment is isolated. Organisations should also verify that applications and supporting components do not establish unexpected external connections.
Offline Model Updates and Software Supply Chain Control
In an isolated environment, models, containers and dependencies are downloaded in advance, checked and transferred into the private infrastructure through a controlled process. Each set of software artefacts should have a recorded version and checksum so that its integrity can be verified.
Dependencies deserve particular attention. Some tools and libraries may attempt to access external repositories when downloading models, tokenisers, packages or additional components. In a private environment, these connections must either be prevented or redirected to internal mirrors.
Organisations can also generate a Software Bill of Materials (SBOM), which lists the components and dependencies included in a software delivery. An SBOM makes it easier to maintain an inventory of deployed components and review the software supply chain later.
Economics: TCO of a Private LLM Environment vs. a Cloud API
Comparing an internal GPU server with a cloud API based solely on GPU costs gives an incomplete picture. The total cost of ownership includes the server, accelerators, storage, networking, electricity, redundancy, maintenance and the time spent by technical specialists operating the environment.
Purchasing hardware means that a significant share of the costs is incurred upfront. Renting infrastructure spreads expenditure over time, while some operational responsibilities remain with the provider.
For businesses with fluctuating workloads, renting infrastructure can be more convenient than buying equipment. If utilisation is consistently high, owning the infrastructure may make better financial sense over time. The outcome depends on hardware prices, the expected service life and actual utilisation.
Calculating TCO
To compare deployment options, use the same workload assumptions and evaluation period for each scenario. A basic TCO model can be expressed as follows:
TCO over the selected period = infrastructure + operations + electricity + maintenance + licences + specialist labour.
For rented infrastructure, the cost of the service over the same period replaces the capital expenditure on hardware.
The break-even point can be estimated using the actual volume of requests or tokens processed. If the monthly cost of operating a private environment is higher than the cost of an alternative service at the current workload, investing in dedicated GPUs may not be economically justified. With consistently high utilisation, the calculation may produce a different result.
For teams that do not want to purchase and maintain their own servers, Cloud4U offers an LLM platform for deploying and fine-tuning models on the provider's GPU infrastructure. This gives businesses access to GPU resources without the upfront investment in their own hardware.
A Hybrid Approach: Part of the Workload Locally, Part in a Data Centre
A hybrid architecture allows organisations to route requests according to their sensitivity. Information that must remain within a controlled environment can be processed by a local model, while less sensitive tasks can be handled in another environment.
Routing decisions should take into account not only the type of request but also the information it contains. Depending on the use case, this may involve masking personal data, applying access policies and using a dedicated gateway between environments.
This approach can be more practical than building the most restrictive possible infrastructure for every workload, particularly when different categories of data are subject to different requirements.
Key Takeaways
Running an LLM in a private environment involves much more than installing a GPU server and preventing users from accessing the internet. Organisations need to establish their data requirements, choose an appropriate level of isolation, select a model and inference stack, restrict network connections and control how software components are delivered and updated.
A small project may need no more than a single server and a straightforward inference engine. More demanding deployments may require network segmentation, granular access management, redundancy and controlled model updates.
The right architecture should therefore be driven by the sensitivity of the data and the expected workload — not by a particular technology, model size or infrastructure trend.
