TBW / DEPLOYMENT / OPERATIONS
Local and Private AI Deployment
Deploy selected AI workloads on infrastructure you control when data boundaries, latency or operational requirements justify it.
Why choose an owned deployment?
A public endpoint may not fit a particular data boundary, a predictable latency target or a restricted network. Yet a server in your building is not a deployment plan: someone must own model approvals, capacity, patch windows, logs, failure response and recovery. Buying GPUs before measuring prompt size and simultaneous requests can leave memory exhausted or expensive hardware idle. The first decision is whether one selected workload actually needs an owned boundary, not whether all AI must move there.
This is a design pattern, not a customer case study.
A deployment path with operational gates
- Assess Workload/Data: name the user journey, data classes, peak demand, context length and allowed outputs.
- Select Boundary: compare placement and data flows against policy, not a label such as “air-gapped.”
- Size: benchmark representative input/output lengths and simultaneous sessions on candidate hardware.
- Build: stand up only the necessary inference and integration components for the pilot.
- Harden: enforce identity, isolation, approved artifacts, logging, patch and backup procedures.
- Validate: test access denials, quality, latency, updates and restore before production use.
- Operate: assign a named owner to alert response, capacity, change windows and retirement.
For example, an approved internal assistant sends an authenticated request through a gateway to an inference service; optional retrieval reads only permitted indexed material. A human reviews consequential answers. Workload owners decide the boundary and acceptance criteria before engineering selects the stack.
Choose the actual boundary
Network-isolated
Keep inference and data on a restricted network, with documented transfer points for approved artifacts and security fixes. Isolation raises the importance of a tested import path.
Private cloud
Place workloads inside a controlled tenant/network, checking operator access, service dependencies, region and outbound routes rather than assuming a private label means no external data flow.
On-premises
Use organization-managed compute and storage when local integration or residency warrants the equipment, support, power and recovery burden.
Controlled hybrid
Split workloads by classification, allowing only specifically approved routes between locations and testing that failure does not silently fall back to an unapproved endpoint.
Local does not automatically mean secure. A misconfigured gateway or copied dataset still crosses a trust boundary. Private does not automatically mean cheaper. Include staff time, support, idle capacity, energy, patching and recovery in the comparison.
A small architecture, not a shopping list
The request enters an identity-aware model gateway, which limits callers and routes it to an inference server. If the workload needs grounding, a separate embedding service prepares approved source material, a vector/index service stores searchable representations and a reranking service may reorder authorized candidates. Network segmentation controls each connection; storage holds models, indexes and logs under retention rules. Monitoring observes errors, latency and resource saturation, while backup covers configuration and recoverable data. Each component has an owner and a defined failure mode.
vLLM or Ollama could serve inference; Qdrant or pgvector could support an index. These are examples only, not a mandated stack or a claim of compatibility for any particular model, license or boundary. If retrieval is unnecessary, omit its services. See model selection and local inference for the separate model-choice discussion.
Track what enters the boundary
Record model, runtime and container versions and digests, source and provenance, approved registry, scan result, license conditions and change owner in an artifact register. Pin tested combinations, review vulnerabilities and licenses before import, and retain a known-good rollback. A file named “latest” is not a reproducible release. Scan results are signals for review, not proof that an artifact is safe.
Even a disconnected installation needs a deliberate route for model updates, OS updates, security patches, container updates and vulnerability remediation. Stage and scan packages outside the restricted zone, transfer by an approved controlled medium or gateway, verify digests inside, rehearse the change and rollback, then log the deployed version. Set an exception and compensating-control process if a fix cannot enter promptly; “air-gapped” is not an exemption from maintenance.
Controls to test, not assume
- Define ingress and egress policy, block unnecessary outbound calls and exercise negative network tests.
- Authenticate people and services, restrict administrative roles, and separate workload access from infrastructure access.
- Log administrative changes, model versions, access and failures with a reviewed retention and audit process; avoid leaking sensitive prompts into logs.
- Review supply-chain changes, patch OS/runtime/container dependencies and monitor vulnerability exceptions.
- Alert on errors, latency, memory, storage and unexpected egress; name the on-call owner.
- Back up recoverable configurations and data, then perform a recovery test under the intended boundary.
What the deployment package should leave behind
Produce a workload-and-data decision record, boundary diagram with allowed flows, benchmark and sizing evidence, pinned artifact register, configured pilot, access/egress test evidence, an update-and-rollback procedure, backup/restore evidence, capacity dashboard and an operator runbook with owners and escalation. Hand over the actual acceptance checklist and open exceptions; a working demo without maintenance ownership is incomplete.
One workload, measured before expansion
Begin with one approved workload on a workstation or single server if its security and availability requirements allow. Use representative, permission-safe prompts and documents. Record input tokens, output tokens, context length, simultaneous active requests and peak bursts; then benchmark time-to-first-token, end-to-end latency, throughput, GPU/CPU memory and saturation under those loads. Vary concurrency and context independently: a model fitting one short request may fail several long ones. Record error/timeout rates and quality acceptance alongside speed, and compare candidate hardware against the measured peak plus an explicitly chosen headroom target. Do not scale hardware before measurement.
Copyable pilot measurement sheet
- Workload and owner: ___; approved data classes and boundary: ___
- Representative scenarios: ___; quality/denial acceptance tests: ___
- Input/output tokens and context percentiles: ___; peak simultaneous requests and burst duration: ___
- Candidate hardware/runtime/model digest: ___; test date: ___
- Measured time-to-first-token, end-to-end latency, throughput, memory and error rate at peak: ___
- Agreed headroom and expansion trigger: ___; owner/sign-off: ___
Acceptance is operational
Agree thresholds before the test rather than inventing a universal latency or cost claim. Demonstrate the representative workload acceptance test, including denied access and unavailable dependencies; rehearse an artifact update and rollback; restore from backup and verify the service/data state; obtain runbook acceptance from the operations owner; and monitor capacity against the measured peak and expansion trigger. Record pass/fail evidence and unresolved exceptions. A pilot that performs once but cannot be patched or recovered has not passed its operating gate.
Risks and the checks that expose them
| Risk | Detection and response |
|---|---|
| Risk: Insufficient memory | Check: Load longest approved context at peak concurrency; reduce context/model or resize from evidence. |
| Risk: No update path | Check: Rehearse a signed-off package import and rollback before isolation is finalized. |
| Risk: Untracked data copies | Check: Trace prompts, indexes, snapshots and logs through retention and deletion tests. |
| Risk: Single point of failure | Check: Stop the pilot host; verify outage procedure, restore time and availability requirement. |
| Risk: Unsupported model or runtime | Check: Validate pinned model/runtime/hardware combination, license and support route. |
| Risk: Capacity mis-sizing | Check: Replay realistic bursts and context distribution; set expansion trigger from saturation data. |
Frequently asked questions
Can an isolated system skip security updates?
No. Define how approved model, container, OS and security packages cross the boundary, how their digests are checked, who approves them and how failed updates are rolled back.
Should we buy a GPU server before picking the workload?
Usually not. Measure the chosen model against representative context lengths, output sizes and simultaneous requests first; then compare latency, memory and availability with candidate hardware and a documented headroom target.
Does a private cloud mean prompts never leave our boundary?
Not by itself. Map every route, including telemetry, support access, backups and optional fallback services, then test the configured egress policy and contractual boundary against the workload’s data classification.
What should we back up if the model can be downloaded again?
Keep recoverable configuration, approved artifact identifiers, indexes or source rebuild procedures, access settings and operational records as required by retention policy. Test restoration rather than assuming a fresh model download will recreate the service.
When is a single workstation an acceptable pilot?
When its data controls, access, capacity and allowed downtime match a bounded test. It is not a production availability design by default; document the outage path and expansion gate before real users depend on it.
Start with a boundary and one measurable workload
Bring the data classification, representative demand and operating owner. Define the pilot acceptance and update path before committing to hardware.