SysArt
Book a briefing
SysArt

Reference architecture

On-premises AI reference architecture

Every layer of a private LLM platform, the choices within it and how the layers connect, from GPU servers to the gateway your applications call.

Your boundary Applications Access and policy Models Knowledge Operations Infrastructure Governance EU AI ActISO 42001GDPREvidence
Six layers inside your boundary, with governance working across all of them.

Last reviewed by SysArt AI Architecture TeamHow we review

In short

An on-premises AI reference architecture describes the layers a private LLM platform needs and how they connect: GPU infrastructure, an inference engine serving the models, an AI gateway with an OpenAI-compatible API, identity and policy, permission-aware retrieval, observability and evaluation, and a model registry with release management, all inside network zones you control.

Key takeaways

  • Applications call a gateway, never an inference engine directly, so models and engines can change without breaking applications.
  • An OpenAI-compatible API is the most portable contract between layers; vLLM, SGLang and TensorRT-LLM all provide one.
  • GPU memory for the key-value cache grows with context length and concurrency, and often limits how many requests a GPU can serve at once.
  • Models, prompts and indexes are versioned releases with evaluation gates and a rollback path.
  • Network zones and the import path for models and updates decide how an isolated platform is patched, monitored and supported.

The main components of an on-premises AI platform

Each layer has several credible options. The architecture fixes responsibilities and interfaces, so products can change without a redesign.

  • Observability and evaluation

    Metrics, traces and logs across every layer, plus evaluation sets that gate each release.

  • Model registry and releases

    Versioned models, prompts and configuration with approvals, staged rollout and a rollback path.

Your boundary · on-premises · air-gapped · sovereign cloud · SysArt-hosted (EU)

  1. Applications
    • Assistants
    • Document workflows
    • Agents
    • Integrations
  2. Access and policy
    • SSO and RBAC
    • AI gateway
    • Guardrails
    • Audit log
  3. Models
    • Open-weight LLMs
    • Small language models
    • Embeddings
    • Inference engine
  4. Knowledge
    • Ingestion pipelines
    • Vector store
    • Permission sync
  5. Operations
    • Observability
    • Evaluation
    • Model registry
    • Releases
  6. Infrastructure
    • GPU servers
    • Kubernetes
    • Storage
    • Network
Governance
  • EU AI Act
  • ISO/IEC 42001
  • GDPR
  • Evidence and logs
Reference architecture for a sovereign AI platform. Every layer runs inside a boundary you control: your data centre, an air-gapped network, your sovereign cloud or a dedicated SysArt-hosted EU environment.
Layer-by-layer description
Applications
Assistants, document workflows, agents and integrations with business systems.
Access and policy
Single sign-on, role-based access, an AI gateway with guardrails, and an audit log of every request.
Models
Open-weight LLMs and small language models served by an inference engine, plus embedding models.
Knowledge
Document pipelines and a vector store that keep source permissions attached to every chunk.
Operations
Observability, evaluation, model registry and release management for models and prompts.
Infrastructure
GPU servers, Kubernetes, storage and networking sized to the workload.
Governance
AI inventory, risk classification and evidence for the EU AI Act, ISO/IEC 42001 and GDPR across all layers.

What are the layers of an on-premises AI architecture?

This reference architecture divides an on-premises AI platform into seven layers, shown in the diagram above: infrastructure, models and serving, knowledge, access and policy, applications, operations, and governance across all of them. The organising rule is separation. Applications call the gateway, never an inference engine directly; the gateway reaches engines, retrieval and tools through stable interfaces; and every layer reports to the same observability stack. That separation lets you replace a model, an engine or a vector store without rewriting applications.

This page is the technical companion to on-premises AI implementation. It covers the options for each layer, the interfaces between them, and how to plan availability and capacity.

How do the layers connect?

Through a small set of interfaces, each with a clear contract:

InterfaceContractWhy it matters
Application to AI gatewayOpenAI-compatible HTTPS API carrying the user’s identity tokenApplications stay portable across models, engines and providers
Gateway to inference enginesOpenAI-compatible API on an internal network, with a service identityEngines can be added or replaced behind the gateway
Gateway to policy engineA policy decision per request: user, model, data class, toolRules change without code changes
Application or agent to retrievalSearch API returning permission-filtered passages with source referencesAnswers cite their sources and respect access rights
Agent to toolsTool calls through a gateway or an MCP server, authorised per toolEvery action is authorised and logged
Every layer to observabilityMetrics, traces and structured logs that share a request identifierOne request can be followed from end to end
Model registry to servingVersioned model artefacts verified by hash or signatureOnly approved models reach production

Which inference engine should serve the models?

Choose an engine that batches requests continuously, manages key-value cache memory efficiently, offers an OpenAI-compatible API and supports your hardware, then benchmark it on your own models and prompts. The main open-source options, compared in the table further down:

  • vLLM, a library for LLM inference and serving built around PagedAttention, with an OpenAI-compatible server and support for NVIDIA and AMD GPUs and several CPU architectures.
  • SGLang, a serving framework for language and multimodal models that uses RadixAttention and prefix caching.
  • NVIDIA TensorRT-LLM, an open-source library that accelerates inference on NVIDIA GPUs and serves through its OpenAI-compatible trtllm-serve command.
  • NVIDIA Triton Inference Server, serving software with backends for TensorRT-LLM, vLLM, PyTorch, ONNX Runtime and Python, useful when one serving layer hosts LLMs alongside other model types.
  • Hugging Face Text Generation Inference (TGI), now in maintenance mode. Hugging Face recommends vLLM or SGLang going forward, so we do not choose it for new platforms.

Give each model class its own deployment: general-purpose LLMs, small language models for high-volume classification and extraction, embedding models and rerankers. Each class then scales with its own demand, and the gateway decides which one serves a request. Our explainer on LLM inference serving covers batching and latency trade-offs.

What does the AI gateway do?

The gateway is the single entry point to every model. It validates the caller’s token from your identity provider, applies per-team quotas and rate limits, routes each request to the right model with fallbacks, applies input and output guardrails, meters usage for chargeback and writes the audit log. Because it exposes an OpenAI-compatible API, the same application code can call one model today and a different one tomorrow, on-premises or elsewhere.

Options range from open-source proxies such as LiteLLM, which offers one OpenAI-compatible endpoint with per-key budgets, rate limits and logging, to API gateways with AI extensions and the gateways built into commercial platforms. Whichever you choose, keep routing rules, quotas and guardrail settings under version control. The private LLM page describes the gateway as part of a private model service.

How do identity and policy work across the layers?

Users sign in through your existing identity provider with single sign-on, and their directory groups map to roles on the platform. The key design choice is identity propagation: the user’s identity travels from the application through the gateway to retrieval and tools, so each layer enforces its own rules instead of trusting the layer above it.

Policy decisions, such as which models may process which data classes, which teams may use which tools and what is logged, are easier to govern outside application code. A general-purpose policy engine such as Open Policy Agent separates policy decisions from their enforcement: the gateway asks, the policy engine answers. Pipelines and services use their own identities with narrow scopes, and secrets live in a vault. Our AI security page covers these controls in detail.

Where does retrieval sit?

Retrieval is a separate service with its own data zone. Ingestion connectors run close to the source systems and carry document permissions into the index. The embedding model and the reranker run on the shared inference layer. The index lives in a vector-capable store: PostgreSQL with the pgvector extension, a search engine with vector and hybrid search, or a dedicated vector database. Applications and agents call one retrieval API that returns permission-filtered passages with source references. Enterprise RAG covers the pipeline, its evaluation and its security.

How do you observe and evaluate the platform?

Measure every layer, not only the answers. For inference, track queue time, time to first token, time between tokens, throughput, cache and GPU memory use, and errors; vLLM, for example, exposes Prometheus-compatible metrics, and trtllm-serve has a metrics endpoint. Distributed traces follow one request from the application through the gateway, retrieval, model and tools. The OpenTelemetry semantic conventions for generative AI, still marked as in development, define spans for model calls, agents and tool execution. Logs hold prompts and outputs only where policy allows, with restricted access and a retention period set by policy.

Evaluation completes the picture. Each use case has a test set that runs in the release pipeline, and production adds signals such as user feedback, refusal rates and citation checks.

How are models, prompts and indexes released?

As versioned artefacts, with the same discipline as software. A model registry such as MLflow tracks versions, aliases and lineage; model files carry hashes or signatures and load only from your internal registry. A release passes the evaluation set, receives an approval, runs as a canary or in shadow mode on part of the traffic, and is promoted by moving an alias, which also makes rollback a single step. System prompts, guardrail settings, routing rules and retrieval indexes follow the same path, and the log of each answer records the versions that produced it. New models and material changes also update the AI inventory used for governance.

Which network zones does the platform need?

Separate zones by trust and function, with default-deny rules between them:

  • Application zone, where user-facing applications and agents run.
  • Gateway zone, the only path from applications to models, retrieval and tools.
  • Inference zone, holding the GPU servers, with no direct internet egress.
  • Data zone, for ingestion connectors, indexes and document stores, close to the source systems.
  • Management zone, for the registry, CI/CD, monitoring and administrative access through a bastion host.

Models, container images and updates enter through a controlled import path that checks hashes or signatures. Zones complement zero trust, under which network location alone never grants access; they do not replace authentication and authorisation on every request. In air-gapped deployments, the import path is the only way in.

How do you design high availability and disaster recovery?

Set recovery targets for each use case, then design to them. Within a site, run at least two replicas of every critical service, spread inference across GPU nodes behind the gateway, and let the gateway fail over to another replica or to a smaller fallback model. Model weights can be restored from the registry, so the state that needs backing up is the registry itself, the indexes (or the time it takes to rebuild them from source), the configuration, and the logs and traces you keep as evidence. A second site can run warm with reduced capacity. Test failover and restores regularly rather than assuming they work. For financial entities, this design feeds the ICT risk-management and resilience-testing requirements of DORA.

How do you plan GPU capacity?

Size GPU memory for the model weights plus the key-value (KV) cache, which stores attention keys and values for every token of every request in flight. Per token, the cache needs 2 (keys and values) × number of layers × key-value heads × head dimension × bytes per value. The PagedAttention paper gives a worked example: one token of the 13-billion-parameter OPT model needs about 800 KB, so a single 2,048-token request can need up to 1.6 GB. Models that use grouped-query attention share key-value heads between query heads and need less.

Multiply by the expected number of concurrent requests and their context lengths, then add headroom: with long contexts and many users, the cache can need as much memory as the weights, or more. Plan latency targets, such as time to first token and tokens per second per user, alongside memory, size embedding and reranking separately, and leave room in power, cooling and networking for growth. The LLM GPU sizing calculator turns these inputs into a memory estimate you can check against candidate hardware.

How SysArt delivers the architecture

We produce the architecture for your environment, validate it with a reference deployment and then build it, using open-source components, commercial products or VDF.AI, an on-premises AI platform built by VDF AI AB, which grew out of SysArt’s work, as an accelerator where it fits. The platform runs on your infrastructure or in a dedicated SysArt-hosted environment in EU data centres, and your team takes it over or SysArt operates it.

How we produce your reference architecture

  1. Profile the workloads

    Collect the use cases, users, request patterns, context lengths, data sources and latency targets the platform must serve.

    You receive

    • Workload profile
    • Non-functional requirements
  2. Choose options per layer

    Select the inference engine, gateway, identity integration, retrieval stack and tooling that suit your environment and the team that will run them.

    You receive

    • Layer decisions with rationale
    • Component list
  3. Define interfaces and controls

    Fix the APIs, identity flows, policy points, logging and network zones between the layers.

    You receive

    • Interface specification
    • Network zone design
    • Control map
  4. Size and plan resilience

    Size GPU, storage and network capacity from the workload, and design availability, backup and recovery to agreed targets.

    You receive

    • Capacity model
    • Hardware bill of materials
    • Availability and recovery design
  5. Validate

    Prove the design with a reference deployment, load tests and failover tests before you scale it.

    You receive

    • Test results
    • Architecture decision records

Which inference engine fits your platform?

Open-source LLM inference engines for on-premises deployment, as described in their own documentation, checked on 27 October 2026.
EngineWhat it isAPI for applicationsWorth knowing
vLLMOpen-source library for LLM inference and serving, built around PagedAttention and continuous batchingOpenAI-compatible HTTP serverRuns on NVIDIA and AMD GPUs and on x86, ARM and PowerPC CPUs, with other accelerators through plugins; exposes Prometheus-compatible metrics
SGLangHigh-performance serving framework for large language and multimodal modelsCompatible with OpenAI and Hugging Face APIsUses RadixAttention and prefix caching; its documentation lists NVIDIA, AMD, Intel Xeon, Google TPU and Ascend NPU support
NVIDIA TensorRT-LLMNVIDIA's open-source library for accelerating LLM inference on NVIDIA GPUstrtllm-serve, an OpenAI-compatible serverIntegrates with NVIDIA Triton Inference Server and NVIDIA Dynamo
NVIDIA Triton Inference ServerOpen-source inference serving software for models from many frameworksOpenAI-compatible frontend for chat, completions and embeddingsBackends include TensorRT-LLM, vLLM, PyTorch, ONNX Runtime and Python, so one serving layer can host LLMs next to other models
Hugging Face TGIToolkit for deploying and serving LLMsMessages API compatible with the OpenAI Chat Completions APIIn maintenance mode; Hugging Face now recommends vLLM or SGLang

Benchmark the candidates on your own models, prompts, context lengths and hardware: results depend on all four.

Frequently asked questions

What is an on-premises LLM architecture?

It is the set of layers needed to run large language models on infrastructure you control and make them usable by applications: GPU servers and an orchestration platform, an inference engine, an AI gateway with an OpenAI-compatible API, identity and policy, retrieval over your documents, observability and evaluation, and a model registry with release management. Network zones and governance span all of them.

Do we need Kubernetes for on-premises AI?

Not for a single server running one model, where a container runtime can be enough. Kubernetes becomes useful once you run several models, need rolling updates, scaling or failover, or share GPUs between teams. NVIDIA's GPU Operator automates the drivers, device plugin and monitoring components that GPU nodes need in a Kubernetes cluster.

Which inference engine is best for on-premises LLMs?

There is no single best engine. vLLM and SGLang are actively developed open-source options with OpenAI-compatible APIs, TensorRT-LLM is optimised for NVIDIA GPUs, and Triton Inference Server can host LLMs next to other model types. Hugging Face TGI is in maintenance mode, so we do not recommend it for new platforms. We benchmark candidates on your models, prompts and hardware.

Why put an AI gateway in front of the models?

Because it decouples applications from models. Applications call one stable, OpenAI-compatible endpoint. Behind it, the gateway authenticates users, applies quotas and policies, routes each request to the right model, falls back when a model is unavailable and records usage. Models and engines can then change without any change to the applications that use them.

How much GPU memory does the key-value cache need?

It depends on the model's layers, key-value heads and head size, the numeric precision, the context length and the number of concurrent requests. In the PagedAttention paper, one token of the 13-billion-parameter OPT model needs about 800 KB, so one 2,048-token request can need up to 1.6 GB. Models with grouped-query attention need less. Our GPU sizing calculator estimates it for your inputs.

Can an on-premises AI platform run without internet access?

Yes. Every layer can run in an isolated network if models, container images, packages and updates arrive through a controlled import path that checks hashes or signatures before use. Monitoring, evaluation and support then have to work inside the boundary too. Our air-gapped AI page covers the additional design steps.

How do you keep an on-premises AI platform available?

By running more than one replica of every critical service, spreading inference across GPU nodes behind the gateway, and backing up what cannot be rebuilt quickly, such as indexes, the model registry and configuration. Recovery targets are set per use case, and failover is tested rather than assumed. A smaller fallback model can keep essential services running at reduced quality.

Can we start with one use case and grow the platform later?

Yes, and we recommend it. A first deployment needs only the core layers: one inference engine, the gateway, identity integration and logging. Retrieval, agents, more models and a second site can follow, because the interfaces stay the same. Planning for growth means leaving room in power, cooling and networking, not buying every GPU on day one.

Sources

  1. vLLM documentation · checked 27 October 2026
  2. vLLM documentation: online serving and OpenAI-compatible server · checked 27 October 2026
  3. SGLang documentation · checked 27 October 2026
  4. Hugging Face: Text Generation Inference documentation (maintenance mode notice) · checked 27 October 2026
  5. Hugging Face: Text Generation Inference Messages API · checked 27 October 2026
  6. NVIDIA: TensorRT-LLM overview · checked 27 October 2026
  7. NVIDIA: TensorRT-LLM trtllm-serve command · checked 27 October 2026
  8. NVIDIA: Triton Inference Server user guide · checked 27 October 2026
  9. NVIDIA: OpenAI-compatible frontend for Triton Inference Server · checked 27 October 2026
  10. Kwon et al.: Efficient Memory Management for Large Language Model Serving with PagedAttention (SOSP 2023) · checked 27 October 2026
  11. Ainslie et al.: GQA, Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints (EMNLP 2023) · checked 27 October 2026
  12. LiteLLM documentation: proxy server (AI gateway) · checked 27 October 2026
  13. Open Policy Agent documentation · checked 27 October 2026
  14. MLflow documentation: Model Registry · checked 27 October 2026
  15. OpenTelemetry: semantic conventions for generative AI · checked 27 October 2026
  16. NVIDIA: GPU Operator overview · checked 27 October 2026
  17. pgvector: open-source vector similarity search for PostgreSQL · checked 27 October 2026
  18. NIST SP 800-207: Zero Trust Architecture · checked 27 October 2026
  19. EIOPA: Digital Operational Resilience Act (DORA) · checked 27 October 2026

Turn the reference architecture into your design

Bring your workloads, hardware constraints and security zones. In a briefing we map each layer to options that fit and outline the capacity you need.