Skip to content
Giminger ConsultingDE

Operate a self-hosted model as an internal service

Self-hosting makes you responsible for access, releases, capacity and incident handling. The model server is one part of that service.

Lessons in this path
  1. Check model weights, licensing and hardware
  2. Run a local inference test
  3. Operate a self-hosted model as an internal service

How to do it

  1. Identify authorized applications and users. Protect internal access, put limits on traffic and define what can go into logs.
  2. Monitor response times, errors and utilization separately from answer quality. Specify how users continue working during an outage and who handles upgrades and incidents.
  3. Pin model and runtime versions, use acceptance tests for changes and retain a way back. Compare total operating cost per approved case with the equivalent API option.

Acceptance check · AI for enterprises

An enterprise is considering an internal inference service for several applications. The pilot uses a single workflow, synthetic data and separate user roles.

Track latency, errors and access by application. Check that load in one application cannot overwhelm the others.

Apply this in your organization

Approve with a repeatable load test, traceable model release and documented fallback.

What makes an internal AI service ready for operations?

Between a working trial and a service colleagues rely on lie several building blocks. Work through them in this order:

  1. Access: an upstream gateway or reverse proxy handles authentication, per-application API keys and rate limiting. The model server itself is not directly reachable.
  2. Logging: capture metadata such as time, application, length and status by default; request content only with a documented purpose and retention period.
  3. Monitoring: track availability, error rate, time to first token, queue length and GPU utilisation, for example with Prometheus and Grafana.
  4. Change process: model and runtime changes go through a test environment, the test set and an approval.
  5. Contingency plan: what happens on outage? Fallback to an API, a queue or manual work, with named ownership.

Operations sheet: who owns what?

The table shows how responsibilities shift with company size. What matters is that every row has a name.

Operational responsibilities
TaskSolo and small teamMid-sizedEnterprise
Updates and security patchesYou, monthlyIT operations or service providerPlatform team with fixed maintenance windows
Domain qualityYouBusiness unit with test setBusiness unit plus central AI team
IncidentsBest effort, with API fallbackNamed on-call during business hoursIncident process with service objectives
Privacy and logsOwn documentationInvolve data protection officerData protection, information security, works council where applicable

Going deeper: service objectives, capacity and cost comparison

Define service level objectives (measurable commitments such as “95 percent of requests start responding within two seconds”). They make “too slow” discussions objective and show when capacity must grow. Google's site reliability engineering book describes this approach in detail. Plan capacity for peaks, not averages, and decide deliberately whether requests queue or are rejected under overload.

For cost comparison with an API: self-hosting has high fixed and low marginal costs, APIs the reverse. A self-hosted service typically pays off only with high, steady utilisation or when data-path requirements rule out an external API. Count operations staff costs honestly. A frequent failure mode in companies: a project team builds the service, then moves on, and nobody updates model and runtime. An operations sheet with names and the date of the next review prevents this.

Example: a mid-sized company serves three applications

A fictional wholesaler runs an open model on two GPUs in its own data centre. Three applications use it: a knowledge assistant, an email classifier and a summariser for supplier contracts. Each application has its own key and quota; contract summarisation runs as a nightly batch.

After a driver update the service no longer starts. Thanks to the operations sheet, IT switches the knowledge assistant to a contractually vetted external API for non-critical questions within an hour, while classification goes into a queue. After rolling back to the previous driver version, the test set runs again before the service is released. Afterwards a test server for updates is introduced.

Common mistakes

  • Exposing the model server directly to the company network. Without upstream authentication anyone with network access can use it.
  • Logging all requests in full because it is convenient. Logs become an unplanned store of confidential data.
  • Not pinning versions. An automatic update of model or runtime can change quality and behaviour unnoticed.
  • Never testing the fallback. A contingency plan that was never rehearsed rarely works the first time.

Frequently asked questions

Do I need Kubernetes for an internal AI service?

No. A single server with a container, reverse proxy and monitoring is enough for many teams. Kubernetes pays off if you already use it or run several models with fluctuating load.

Who is liable if the internal service gives wrong answers?

Responsibility for the deployment lies with your company as the operator. That is why human review for consequential decisions, documented tests and clear ownership are essential. This is orientation, not legal advice.

Try it yourself

Write an operations sheet with owner, access boundaries, acceptance tests, traffic limits, data retention and fallback. Rehearse one failure before rolling out.

Check your result

Can the team roll back quickly and finish open requests using the existing workflow?

Official documentation and sources

Practical guides and references