- An on-prem LLM deployment for a regulated team passes on eight controls: data boundary, hardware sizing, model serving, network isolation, the gateway layer, secrets, audit logging, and the update path. Each one needs a pass condition a tester can run.
- Weights cost parameters times bytes per parameter: a 70B model needs about 140 GB at 16-bit, 70 GB at 8-bit, and about 43 GB at Q4_K_M. A 16-bit KV cache for eight 32,768-token sequences adds about 86 GB on top.
- Most air-gap failures come from software that downloads something at startup. vLLM usage stats, Hugging Face Hub checks, and gateway pricing files all need an offline setting or a local file.
- Bifrost, an open-source AI gateway, runs with no outbound access when its pricing and model datasheets are loaded from
file://paths and its MCP catalog sync is set to 0. - The update path across the gap is part of the deployment. Rehearse one signed patch from release to production before the first user arrives.
An on-prem LLM deployment runs open-weight models on hardware the organization owns, so regulated data never reaches a model provider. That moves every job a provider did onto the team: sizing GPUs, serving, access control, logging, and patching through a network that may have no route out. This checklist gives each of eight controls a pass condition a tester can run and an auditor can read. It is the operational companion to the self-hosted AI architecture guide, which covers the build-or-buy trade-offs, and it uses Bifrost, an open-source AI gateway, as the worked example for the control layer.
#On-prem vs air-gapped LLM deployment
On-prem describes who owns the hardware. Air-gapped describes the network: no route to the internet in either direction. An on-prem cluster may keep approved outbound connections for license checks or package updates. An air-gapped one cannot, so every image, weight file, and data file arrives through an offline transfer, and anything that phones home at startup fails.
Settle which one applies before buying hardware, because the answer changes three items on this list: network isolation (deny all, or allowlist a few hosts), the gateway's external dependencies, and the update path. NVIDIA's air-gap guide for NIM describes the same split: prepare model stores on a connected machine, then load everything from local storage inside.
#The checklist at a glance
Each control below has a pass condition that produces evidence. The last column maps it to the closest control family in NIST SP 800-53 Rev. 5, which many regulated programs already use as a common vocabulary even when their own framework differs.
| Control | Pass condition | Evidence | NIST 800-53 |
|---|---|---|---|
| Data boundary | Every data class allowed in prompts is named, with an owner | Signed boundary document | RA-2, AC-4 |
| Hardware sizing | Measured peak memory fits with one spare node | Sizing sheet from a load test | CP-2, SA-8 |
| Model serving | Each model is pinned by hash and passes a peak load test | Model manifest, load report | CM-8, CM-14 |
| Network isolation | An egress attempt from each inference node fails and is logged | Firewall log entry per node | SC-7 |
| Gateway layer | No client reaches an inference server except through the gateway | Failed direct-connection test | AC-3, AC-4 |
| Secrets | No secret in any image or repo; any key rotates without a redeploy | Clean scan, rotation drill | IA-5, SC-28 |
| Audit logging | One user's records for one week are retrieved in under an hour | Retrieval drill, tamper test | AU-3, AU-9 |
| Update path | One patch went from release to production through the documented path | Transfer log, signatures | SI-2, CM-3 |
The sections that follow take each row in order.
#1. Define the data boundary first
The data boundary is a short document listing which data classes may enter a prompt, who owns each class, and where outputs may go. Hardware, logging, and retention decisions all depend on it, so it comes before the purchase order.
- List the classes users will paste or retrieve: patient records, card data, case files, source code, internal email.
- Name the framework for each class and the person who signs off. Compliance owns this list. Engineering should not guess it. The AI compliance framework guide covers how to map frameworks to controls.
- Decide whether prompts and completions are records. If they are, they inherit the retention and deletion rules of the data inside them, and the audit log in section 7 becomes a regulated store.
- Write down where outputs may go. A summary of a patient chart is still patient data.
Pass condition: a one-page boundary document signed by compliance, referenced by every later item.
#2. Size GPUs with bytes-per-parameter math
GPU memory for inference is weights plus KV cache plus runtime buffers, and the plan needs one spare node. Weights follow one formula: parameter count times bytes per parameter at the chosen precision. The KV cache grows with context length times concurrent sequences, and it is where most sizing sheets go wrong.
The weight arithmetic for a 70-billion-parameter model:
| Precision | Bytes per parameter | Weights |
|---|---|---|
| BF16 or FP16 | 2 | 70 x 10^9 x 2 = 140 GB |
| FP8 or INT8 | 1 | 70 x 10^9 x 1 = 70 GB |
| Q4_K_M (GGUF) | 4.89 bits / 8 = 0.61 | 70 x 10^9 x 0.61 = about 43 GB |
The Q4_K_M rate is the 4.8944 bits per weight llama.cpp reports on Llama 3.1 8B. A 4-bit format is never exactly 0.5 bytes, because block scales and promoted tensors add bits. The GGUF quantization guide shows how to compute an exact file size, tensor by tensor.
The KV cache for a model shaped like Llama 3.1 70B (80 layers, 8 KV heads, head dimension 128) costs 80 x 8 x 128 x 2 (keys and values) x 2 bytes = 327,680 bytes, or 320 KiB, per token at 16 bits. One 32,768-token sequence holds 10 GiB. Eight of them at once hold about 86 GB, more than the FP8 weights. The KV cache explainer derives the formula and shows when it changes.
Two consequences follow. First, quantization does less for GPU count than the weight column suggests once long contexts and concurrency are counted. Second, the GPU count has to suit the parallelism the engine supports: tensor parallelism splits attention heads across GPUs, so a 64-head model runs on 2, 4, or 8 GPUs, and a 3-GPU total rounds up to 4.
- Choose precision by running your own evaluation set at 16-bit and at the quantized format. The loss varies by task, and LLM evaluation covers how to build the set.
- Plan N+1 nodes. A regulated service on one inference node has no maintenance window that is not an outage.
- Check rack power and cooling with facilities before ordering. Dense GPU servers often exceed what older rooms were built for.
- Keep weights on local NVMe. Loading from network storage stretches every restart.
Pass condition: a sizing sheet listing weights, measured peak KV cache at production context lengths and peak concurrency, runtime headroom, and the spare node, signed by the data center owner.
#3. Serve models behind an OpenAI-compatible API
Run each model behind an inference server that exposes an OpenAI-compatible HTTP API. vLLM, SGLang, llama.cpp's server, and Ollama all offer one, which lets the team change engines or models later without rewriting clients. The vLLM vs SGLang comparison covers which engine fits which workload, including continuous batching for shared servers.
Serving inside a boundary adds four requirements beyond a normal deployment:
- Pin every model by hash. Record the SHA-256 of each weight file in the model manifest and verify it at load. A file name is not an identity.
- Remove startup downloads. Set
HF_HUB_OFFLINE=1so Hugging Face libraries make no HTTP calls to the Hub and read only cached files. vLLM collects anonymous usage stats by default, and turning them off takesVLLM_NO_USAGE_STATS=1,DO_NOT_TRACK=1, or a~/.config/vllm/do_not_trackfile. - Set limits at the server. Cap context length, output tokens, and request time, so one caller cannot hold a GPU.
- Record each model's license. Some open-weight licenses restrict commercial use or require attribution, and legal will ask.
Load test at peak concurrency with production-length prompts. Record time to first token and tokens per second at the 95th and 99th percentile, because the slow tail is what users report. Run the server as a non-root user in a container with a read-only root filesystem.
Pass condition: a load report at peak concurrency and a manifest mapping each deployed model to its hash and license.
#4. Isolate the inference network
Put inference servers on their own segment with egress denied by default. A model server needs to accept connections from the gateway and nothing else, and it should never open an outbound connection.
- Deny outbound traffic from the inference segment at the firewall, not only in application settings. An environment variable that one container forgets is not a control.
- Allow inbound traffic to inference servers only from the gateway hosts, over mutual TLS with certificates from an internal CA.
- Run an internal container registry and package mirror. Every image and package the cluster pulls comes from inside.
- Run internal DNS and NTP. A public resolver is an egress path, and skewed clocks weaken the audit trail.
- Test the block. From each inference node, try to reach a public address and confirm the connection fails and the firewall logs it.
Pass condition: a rule set reviewed by security, plus one logged, failed egress attempt per inference node.
#5. Put a gateway in front of every model
An AI gateway is the single entry point that authenticates the caller, applies policy, routes to an inference server, and records the call. Without one, every application holds its own credentials for each server and keeps its own logs, and no one can show an auditor who reached which model.
A gateway in an on-prem stack handles six jobs:
| Job | What it enforces | What to test |
|---|---|---|
| Identity | Each app or team has its own credential, tied to the directory | Logs name a real owner for every request |
| Model access | Teams reach only the models approved for their data class | A pilot key is refused on a restricted model |
| Limits | Request and token caps per team | A batch job cannot starve interactive users |
| Routing | Healthy nodes get traffic; failures fall back | Killing one node drops no requests |
| Guardrails | PII and secrets checks on prompts and responses | A seeded test record is redacted or blocked |
| Logging | One structured record per request | The retrieval drill in section 7 passes |
The gateway must itself run with no outbound dependency. Ask every vendor for the full list of hosts the software contacts, and how to replace each with a local file or turn it off.
#Bifrost as the gateway in an air-gapped stack
Bifrost documents both lists. Its air-gapped deployment guide names two outbound fetches: the pricing and model-parameter datasheets, without which Bifrost cannot start, and the MCP server library catalog, without which it starts with an empty library page. Both accept file:// paths, set in config.json:
{
"framework": {
"pricing": {
"pricing_url": "file:///opt/bifrost/pricing.json",
"model_parameters_url": "file:///opt/bifrost/model-parameters.json",
"pricing_sync_interval": 86400,
"mcp_library_sync_interval": 0
}
}
}As of November 23, 2026, three details matter for the checklist. A file:// value is honored only from config.json, not from the web UI or PUT /api/config. The pricing sync cannot be disabled (its minimum interval is 3,600 seconds), but Bifrost re-reads the local file on each tick, so replacing the file through the update path in section 8 refreshes it with no restart. Setting mcp_library_sync_interval to 0 stops the catalog fetch entirely, while MCP servers can still be added by hand. The datasheets download on the build host with curl, which makes them two more files for the transfer manifest.
The Enterprise image comes from a registry with team-issued credentials, described in the on-premise deployment guide, so an air-gapped site pulls it on the build host and pushes it to the internal registry like any other image. Bifrost's reference page for AI systems states that the gateway sends no telemetry to its maker and holds no customer data, which the egress test in section 4 can confirm on the wire.
Inference servers connect as providers. The vLLM provider takes one key per server, each with its own vllm_key_config.url and model_name, and fallbacks move a failed request to the next provider or model in a chain. For identity, user provisioning works with OIDC providers including self-hosted Keycloak. The security hardening page sets client.enforce_auth_on_inference: true so every inference call must present a virtual key, and access profiles bind models, budgets, and rate limits to teams. That covers the identity, model access, and limits rows of the table, and guardrails cover the content checks.
The same governance and security controls reach employee machines through Bifrost Edge, which routes AI traffic from desktop apps, browser AI, coding agents, and MCP servers on each device through the gateway under the same keys, guardrails, and audit logs, as the Edge overview describes. For a regulated team that matters on the other side of the boundary: staff laptops are where data most often leaves for a public model, as the shadow AI guide shows.
Pass condition: a direct connection from a client host to an inference server fails, and every request in the gateway log carries a virtual key that maps to a named owner.
#6. Keep secrets in a vault inside the boundary
Store every credential in a secrets manager that runs inside the boundary and inject it at runtime. No API key, TLS private key, or database password belongs in an image, a repository, or a plaintext environment file.
- Run the vault inside the boundary. HashiCorp Vault is the common self-hosted choice. Bifrost's secret management resolves
vault.<path>references at runtime instead of storing plaintext keys in its config database, with aread_onlymode by default. - Give each service its own credential, so revoking one breaks nothing else.
- Prefer short-lived credentials. A token that expires in hours limits a leak more than an annual rotation does.
- Rotate gateway keys on a schedule and whenever someone leaves the team that holds them.
- Scan images and repositories for committed secrets in CI and fail the build on a hit.
- Ship the vault's own access log to the audit store.
Pass condition: a scan of every deployed image and repository finds no secrets, and any credential rotates without a redeploy.
#7. Write audit logs an auditor can query
Log one structured record per model request with enough detail to say who sent what, to which model, when, and what policy decided. Auditors ask by user and date range, so index the store that way.
Capture at least: timestamp, request ID, caller identity and team, model name and the hash deployed at that moment, input and output token counts, latency, and every policy outcome (allowed, blocked, redacted, rate limited) with the rule that fired. Log admin actions separately: key creation, permission changes, model additions.
Decide prompt and response retention with the boundary document in hand. Full prompt text makes investigations easy and also creates a second copy of every sensitive record users paste. A common split is metadata for every request and full text only for blocked or flagged ones. Whichever rule is chosen, the logs inherit the retention rules of the data they contain.
- Make the store append-only, so an administrator cannot change a record without leaving a trace. Bifrost's audit logs sign admin events with an HMAC key, record before and after diffs with secrets redacted, and export to JSON Lines or Syslog for a SIEM.
- Keep payloads inside the boundary. Bifrost log exports accept an S3-compatible endpoint such as a self-hosted MinIO.
- Run a retrieval drill: pick a user and a week, then produce their records within an hour.
Pass condition: the retrieval drill succeeds, and a test edit to a stored record either fails or fails signature verification.
#8. Plan the update path across the air gap
Define how weights, images, OS and driver patches, and data files cross into the environment before the first emergency fix. In a disconnected network the update path is a manual process, and an undocumented manual process can hold a security patch for weeks.
- Stage on a connected build host. Pull images, packages, and weights there, scan them, and record SHA-256 hashes in a manifest.
- Sign the bundle with a key that stays offline, and verify the signature and every hash inside before anything loads.
- Use one approved transfer channel, such as a data diode or scanned removable media, and log each crossing.
- Promote through a staging environment that mirrors production. Run the evaluation set and the load test there.
- Keep the previous version of every image and model on disk.
- Treat a model swap as a change request. A new model changes outputs for every downstream workflow.
- List the small files. Gateways, scanners, and inference servers need data they normally download: Bifrost's datasheets, vulnerability databases, tokenizer files. Give each a local source and an owner.
Pass condition: one patch went from upstream release to production through this path, with every hash, signature, and approval on record.
#Run the sign-off as tests
Before the first production user, run each pass condition as a test and attach the output, rather than reviewing documents that say the controls exist. The order matters: the data boundary sets retention for the logs, sizing sets the node count that isolation and failover tests need, and the update path should be rehearsed with a real patch, not a dry run.
Two tests are worth repeating every quarter: the egress test from each inference node, because new images bring new defaults, and the gateway failover test, because a node that is never killed in a drill will be killed by an outage. The failover testing guide covers how to run the second one. Teams writing the policy that sits above this checklist can start from the AI security policies guide, and add sector rules to the boundary document so every item above inherits them.
#Questions
What is an on-prem LLM deployment?
An on-prem LLM deployment runs open-weight models on servers the organization owns, in its own data center, so prompts, retrieved documents, and outputs never reach a model provider. The team owns everything a provider would: GPU capacity, the serving engine, access control, logging, patching, and model updates. Regulated teams choose it when a data class may not leave their infrastructure at all.
What is the difference between on-prem and air-gapped LLM deployment?
On-prem means the hardware is yours. Air-gapped means the environment has no network route to the internet. An on-prem cluster can still have approved outbound connections for updates or license checks. An air-gapped one cannot, so every container image, model file, package, and data file arrives through a logged offline transfer, and any component that expects to download something at startup must be pointed at a local copy.
How much GPU memory do I need to run a 70B model on-prem?
Weights take parameters times bytes per parameter: about 140 GB at 16-bit, 70 GB at 8-bit, and roughly 43 GB at a 4-bit GGUF mix. The KV cache comes on top. A model shaped like Llama 3.1 70B holds 320 KiB per token at 16 bits, so eight concurrent 32,768-token sequences add about 86 GB. Measure peak memory on your own prompts before ordering hardware.
Can you run an LLM without internet access?
Yes. Serving engines such as vLLM and llama.cpp load weights from local disk. The work is in removing hidden network calls: set HF_HUB_OFFLINE=1 so Hugging Face libraries use only cached files, opt out of vLLM usage stats with VLLM_NO_USAGE_STATS=1 or DO_NOT_TRACK=1, and point gateways and scanners at local copies of the data files they normally download.
How do you update models in an air-gapped environment?
Stage the update on a connected build host: pull the weights or image, scan it, record SHA-256 hashes, and sign the bundle. Carry it across one approved channel, such as a data diode or scanned removable media, with a log entry. Inside, verify the signature and hashes, run evaluations and a load test in staging, then promote while keeping the previous version on disk for rollback.
Do you need an AI gateway for an on-prem LLM?
A gateway is the easiest way to make access control and audit logging enforceable. Without one, every application calls inference servers directly, each with its own credentials and logs. A gateway such as Bifrost gives each caller a virtual key tied to a team, applies model access and rate limits, and writes one record per request, so the auditor gets one place to look.