Managed Ollama hosting
Pilae installs, patches, backs up and monitors Ollama for you, on your own servers or in any of 10+ Pilae Cloud regions, six of them in Switzerland and the EU.
From CHF 449EUR 479USD 559 a month on Starter, hosting and onboarding included.
- AI and LLM
- Open source
- Replaces OpenAI API
- Runs on
- Your own hardware, or a Pilae Cloud region
- Replaces
- OpenAI API, Azure OpenAI
- Licence
- MIT
Ollama among the AI and LLM apps
Models and the interfaces your team talks to, inside your perimeter. Prompts and documents stay on your side of the tunnel.
Ollama system requirements
Before anything is deployed, this is what has to exist. We size it with you in the first session, and we say so when your own hardware is already enough.
All 5 requirements, and why each is there
- GPUNVIDIA, a supported driverUpstream lists the compute capability and the driver each card needs, and older cards can need a newer driver than recent ones. Supported AMD cards work through ROCm. GPU memory decides the model: one that does not fit is split onto the CPU and slows sharply.
- Container runtimeNVIDIA Container ToolkitHow Docker hands the GPU to the container. When discovery fails, Ollama falls back to the CPU instead of refusing to start, so the probe checks where each model is loaded.
- Model storageLocal NVMe, sized to modelsWeights are read from disk every time a model loads. Library models range from under a gigabyte to well over a hundred, and every pinned version is kept.
- API port11434/tcp, private onlyThe local API asks for no credentials, and the port that answers prompts also accepts pull and delete requests. It is never published to the internet.
- Sign-onOIDC, in front of OllamaThe Ollama server has no user accounts. Identity lives in the application or gateway in front of it, through Keycloak or your own IdP such as Microsoft Entra ID.
Running Ollama in production: what it takes
Prepare the GPU host
Driver and container toolkit installed and checked with nvidia-smi inside a container, then a pinned Ollama build we have run, bound to a private address.
Pin the models
Each model is pulled once, in a change window, and its digest recorded in the runbook. Context length and parameters live in Modelfiles in your repository. Cloud features are off.
Size concurrency and memory
Parallel requests, loaded models, keep-alive and context length are set so the models you serve stay in GPU memory. Probes every 60 seconds check each one answers and is still on the GPU, and alert an engineer when one has fallen back to the CPU.
Back up the models and Modelfiles
Ollama holds no conversations. The models directory, Modelfiles and compose files go offsite daily, encrypted. On Enterprise, once a month we restore them into a scratch environment, check the digests and ask a question.
Upgrade with the driver checked
A new Ollama build can need a newer GPU driver, and falls back to the CPU when it does not get one. The Pilae Agent tests each upgrade on a copy with your models, waits for your approval, applies it in your window and keeps the previous build ready.
From our runbook
An Ollama server, configured in your repository
# compose.yaml -- acme-llm-01, one GPU machine
services:
ollama:
image: ollama/ollama:${OLLAMA_TAG} # pinned in .env, tested on a copy first
restart: unless-stopped
ports:
- '10.20.4.11:11434:11434' # private address only
volumes:
- /srv/ollama:/root/.ollama # models/manifests and models/blobs
environment:
OLLAMA_NO_CLOUD: '1' # no hosted models, no web search
OLLAMA_NOHISTORY: '1' # no CLI prompt history in the volume
OLLAMA_CONTEXT_LENGTH: '16384'
OLLAMA_NUM_PARALLEL: '4' # memory grows with parallel x context
OLLAMA_MAX_LOADED_MODELS: '2'
OLLAMA_MAX_QUEUE: '128' # beyond this, callers get a 503
OLLAMA_KEEP_ALIVE: '12h' # resident through the working day
OLLAMA_FLASH_ATTENTION: '1'
OLLAMA_KV_CACHE_TYPE: 'q8_0' # about half the cache memory of f16
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
Migrating from OpenAI API to Ollama
In the code, moving off the OpenAI API is mostly a change of base URL. Ollama answers chat completions, embeddings and the stateless Responses API on its own /v1 path, so the OpenAI SDK in your applications stays. The Batch and Files APIs, stateful Responses, tool_choice, logprobs and image URLs do not come across. Neither do the embeddings you already have: vectors from one model mean nothing to another, so each document index is rebuilt. The time goes on the model, not the code. An open model that fits your GPUs will be weaker than the hosted one at some tasks and as good at others, and we find out which on your own prompts before anyone repoints an application.
- AlternativesA ChatGPT Enterprise alternative you ownOne of 5 apps for teams leaving ChatGPT Enterprise.
- ServiceSaaS migrationA fixed-scope migration off Google Workspace, Microsoft 365, Zapier, Airtable and ChatGPT to open-source apps, with a parallel run and a cutover plan.
Moving from OpenAI API to Ollama, step by step
- List the calls: Which applications call the API, with which models, and which features they rely on. Tools, JSON output and streaming carry over. Batches, stateful Responses and logprobs need rework, and we say where.
- Choose the model on your prompts: Candidate open models are run against a set of your real prompts, and their answers are graded. The smallest model that passes wins, and its digest goes into the runbook.
- Repoint the client: The OpenAI SDK stays and the base URL moves to the private endpoint. Context length is set in a Modelfile in your repository, because the OpenAI API has no field for it.
- Re-embed, then switch: Document indexes are rebuilt with the new embedding model. Each application then runs against both for a cycle, and moves across once its owners have compared the answers.
What Ollama is, and who runs it
A server that loads open-weight models on demand behind an OpenAI-compatible API, run on GPUs in Switzerland, the EU or your own datacentre so prompts never reach a model vendor.
Self-hosted Ollama: open models behind an OpenAI-compatible API
Ollama is a model server. It pulls open models from its library, keeps them on disk, loads them
into GPU memory when a request arrives and answers over an HTTP API, including an
OpenAI-compatible one under /v1. The library publishes models in quantised builds, so a useful
model fits on one card. Open WebUI, LibreChat and
Dify connect to it as a model provider, and so do scripts and internal tools that
already speak the OpenAI API.
Because it loads and unloads models on demand, it suits one GPU machine serving a team, a prototype, or several models on modest hardware. Each loaded model answers a set number of requests at a time and queues the rest, so it is not the engine for hundreds of people on one model at once. For that we run vLLM.
Read the full briefFold the brief
Ollama in production: GPU memory, keep-alive and access control
Ollama fails quietly. If the GPU driver or the container toolkit is wrong, it starts anyway and runs on the CPU at a fraction of the speed, so our probes check every 60 seconds that each model answers and is still on the GPU. At the default keep-alive a model unloads after five minutes idle, and the next person waits while it loads again. Every parallel request adds its own context to GPU memory. We set keep-alive, parallel requests and context length in the compose file in your repository instead of leaving them to defaults. The local API asks for no credentials, so Ollama answers only on your private network and people reach it through an application with sign-on.
Ollama gets a GPU machine of its own, either yours or one of ours in a Pilae Cloud region, where six of the 10+ regions are in Switzerland and the EU. We pin the models as well as the server. Each model is pulled in a change window with its digest recorded, and Ollama’s cloud features are switched off. A daily, encrypted copy of the models directory, Modelfiles and compose files goes to an offsite location in the country your contract names, and on Enterprise a restore test every month, recorded in the console, brings it back into a scratch environment. Once the models are staged, Ollama answers without internet access, which is how it runs air-gapped. The Pilae Agent tries each upgrade on a copy with your models loaded, then applies it in your window once you approve it and records it in the console.
Ollama licence and model licences
Nothing in the software licence limits how you run Ollama inside your organisation. The conditions that matter come with the models. Our operation follows the published plans. Talk to us about the models you want to run and the GPUs you have.
What Pilae is responsible for
The same commitments on every app we run, Ollama included, and what stays yours. How the platform does it.
Ours
- A pinned version: A version we have run, not whatever latest resolves to that day.
- A runbook: What it depends on, how it fails, what to do about it. In your repository.
- Daily backups: Encrypted and offsite, and on Enterprise restored every month. A backup nobody has restored is a file.
- A patch window: Security updates in a window you agreed, with a rollback ready.
- Someone watching: Every endpoint probed on the minute. An alert reaches a person, not a dashboard nobody opens.
Yours
- The credentials: You hold them. Ours are separate, named, logged and revocable with one command.
- The approval: We ask before anything changes outside an agreed window.
- The exit: The machine, the data, the compose files and the runbook are already yours. Nothing stops when our access does.
Who runs it
Engineers who answer for it
Our engineers review every plan the Pilae Agent prepares and answer for the result.
Your data stays where the contract says
On your own servers or in Pilae Cloud. On Business and Enterprise you choose the region, and your contract names each location.
A Swiss company, a Swiss contract
Pilae is a Swiss company, and your contract with it is governed by Swiss law.
Ollama runs on Starter from CHF 449EUR 479USD 559 a month in Pilae Cloud, or on Business with up to three apps on your own servers.
Compare the plansOllama: common questions
Is Ollama open source?
Where do prompts and models live?
Should we run Ollama or vLLM?
Can people sign in to Ollama?
Will an open model answer as well as the OpenAI API?
Ask the engineers who would run your Ollama
Thirty minutes on the deployment you already have, or the one you are about to start.
- Go deeperPrivate AI in Switzerland: a private ChatGPT on your own infrastructureA private ChatGPT for your teams in Switzerland: Open WebUI, LibreChat or Dify, open-weight models in your perimeter, answers grounded in your own documents.
- CompareSelf-hosting vs managed open source: doing it yourself, or PilaeSelf-hosting gives you the apps and the whole job of running them. Pilae gives you the same open-source apps, operated under a contract, on your premises or in Pilae Cloud.
- CheckData residency in Switzerland and the EU for your open-source appsYour data stays in the country your contract names, Switzerland, the EU or your premises, with your contract naming each location.
