When running Ollama on CPU only is acceptable
CPU-only Ollama is acceptable for small models serving low-volume tasks, such as internal summarization, classification or tooling where a slower reply does not block a person or a pipeline. If you have no GPU yet, or a GPU that Ollama is not using, the CPU path works, but you should size expectations and access control before you rely on it. Ollama is an open source runtime for running large language models locally, licensed under MIT and built on a llama.cpp backend, so the models run on hardware you control and the runtime itself carries no per-token fee. Running models on your own hardware is always unlimited according to Ollama's pricing page, which means cost on a CPU host is driven by the machine you buy or rent, not by usage.
The part many teams miss is access. The local API on port 11434 does not require authentication, so a CPU server that listens beyond localhost is an open inference endpoint for anyone on the network. Before you put a CPU host in a shared network, confirm the bind address set through OLLAMA_HOST, restrict the port with host or network firewall rules, and place an authenticating proxy in front of it if several users or applications will call it. These controls cost the same on a CPU host as on a GPU server, and they are the part of the deployment your security team will ask about first.
Decide early whether the workload fits. Ask three questions: whether the model is small enough to fit in system RAM with room for the operating system, whether the request volume leaves enough idle time for responses that will be slower than on a GPU, and whether any user is waiting interactively. Run a representative prompt set on the target hardware, record response times and memory use, and compare the results with your acceptance criteria. If the workload fails any of these checks, a GPU is the better path, and the sibling topics on GPU requirements and memory sizing explain how to choose one.
CPU-only configuration options and when each fits
This table compares the Ollama settings that matter on a host without a GPU, with the situation each one fits and the trade-off it carries. Read each row as a decision: keep the default unless your workload and hardware give you a reason to change it. The main takeaway is that on CPU, concurrency and loaded-model limits should stay conservative because every parallel request competes for the same system RAM and cores.
| Setting | When it fits | Trade-off without a GPU |
|---|---|---|
| OLLAMA_LLM_LIBRARY | Forcing a specific CPU library such as cpu_avx2 when automatic selection picks a build that crashes or runs poorly on your processor | Forcing an unsupported library can cause failures or slow responses, so confirm the library names your Ollama version ships before setting it |
| OLLAMA_NUM_PARALLEL | Keep the default of 1 for a single application or low-volume tasks where responses must not compete for cores | Each parallel slot adds memory use and splits CPU cores across requests, so raising it usually lengthens every response |
| OLLAMA_MAX_LOADED_MODELS | Default of 3 on CPU suits hosts that switch between a few small models; lower it when system RAM is tight | Each loaded model holds its weights in system RAM, so several large models can exhaust memory and force swapping |
| OLLAMA_MAX_QUEUE | Default of 512 queued requests suits bursty internal traffic where waiting is acceptable | A long queue on a slow CPU host means requests wait a long time before any response starts, so set client timeouts with that in mind |
| OLLAMA_HOST | Binding to 127.0.0.1 port 11434 by default fits a single local workstation; change it only for a deliberate shared service | Exposing the API beyond localhost adds no authentication by default, so a proxy with access control must sit in front of it |
| OLLAMA_MODELS | Pointing model storage at a larger or faster disk fits hosts where the system drive is small | Slow network or external storage increases model load time, and the directory must be readable by the account running the service |
How much system RAM a CPU-only model needs
Without a GPU, system RAM sets the model size limit, because Ollama holds the model weights and the context working memory in host memory instead of VRAM. The practical question is therefore not whether a model fits on a card but whether the machine has enough free RAM after the operating system and every other service has taken its share. Start from the exact model and quantization you plan to run, note the size Ollama reports for it, and then add headroom for the OS, the Ollama process, and anything else the server hosts, such as databases, monitoring agents or reverse proxies. The figures you need should come from your own measurements with your chosen model, not from general rules of thumb.
Memory pressure grows beyond the single model in two ways. Each loaded model occupies its own memory, and the OLLAMA_MAX_LOADED_MODELS setting controls how many can stay resident at once. Parallel requests add working memory on top of the weights, since each parallel slot needs its own context buffer, and OLLAMA_NUM_PARALLEL sets how many run at once for each model. A server that looks comfortable with one user can start swapping or failing to load a second model once concurrency rises. Test with the concurrency you expect, then watch resident memory while requests run and after models unload. Confirm the current default values for these settings in the Ollama FAQ before you size a shared server, since they can change between releases.
Before you commit to a machine, measure three things: the resident size of the model you plan to serve, the memory used at peak concurrency, and the memory that remains free for the operating system. Ask your hardware or cloud provider for memory configurations that leave clear headroom above that total, and avoid planning on swap as capacity, because paging to disk makes responses slow and unpredictable. If the measured numbers do not leave room for growth, the usual options are a smaller or more heavily quantized model, fewer parallel slots, a lower loaded model limit, or a GPU for the workload.
Setting up Ollama on a CPU-only host
This sequence takes a host with no supported GPU from a clean operating system to a running Ollama server that answers requests from a small model. Each step ends with a check, so you know whether CPU inference is working before you add users or load larger models.
Confirm the host OS and CPU features
The platform engineer records the operating system, kernel or Windows build, system RAM and CPU model on the host, and confirms that no GPU is expected to serve inference. Check the CPU flags for AVX and AVX2 support, since Ollama selects a CPU vector library based on what the processor offers. Note whether the host runs Linux, macOS, Windows or Docker, because the install path and model directory differ. The step is done when the team has a written record of the OS, RAM and CPU features that the later library check can be compared against.
Install Ollama on the host
The administrator installs Ollama using the method that matches the operating system, following the official installation guidance in the Ollama GitHub repository. Use the same method and version your organization will run in production so later results are comparable. Confirm the service starts under the service manager your platform uses. The step is done when the command-line tool reports a version and the server answers on its default local address, 127.0.0.1 on port 11434, with a request to the root path. Because the default bind is local only, a remote request should fail at this point, which is the expected behavior.
Set OLLAMA_MODELS if storage is elsewhere
If model files must live on a separate disk or mount, the administrator sets the OLLAMA_MODELS environment variable to that directory before pulling any model. Ensure the service account has read and write access to the new path and that the volume has enough free space for the models you plan to keep. On Linux, the default location is under the ollama service user's home directory, and on macOS and Windows it sits in the user profile. The step is done when the variable is set in the service environment, the service has been restarted, and a directory listing of the new path shows it is writable by the service account. If you do not need a separate location, record that the default is in use.
Pull one small model
The administrator pulls a single small model that fits comfortably in system RAM, using the model name your team has approved. Choose a small model for the first test because CPU generation is slow for large parameter counts and the goal here is to validate the path, not the quality. Confirm the model's license and provenance before it enters your environment. The step is done when the pull completes without error and the model appears in the local model list with a size that matches the expected download.
Run the model and check ollama ps for CPU use
The administrator starts the model with a short prompt, then runs the process listing command while generation is active or immediately after. The output should show the model loaded with its processor column reading CPU, with no GPU percentage. If the processor column shows a GPU share or the command reports a GPU, record that for the troubleshooting path before continuing. The step is done when a short response returns and the process listing shows the model resident on the CPU, with the memory footprint roughly consistent with the model size in system RAM.
Review the server logs for the loaded library
The administrator reads the Ollama server logs from the start of the test and looks for the line that reports which LLM library was loaded, such as a CPU library variant with an AVX or AVX2 designation. Ollama picks a library automatically, and the troubleshooting documentation notes that OLLAMA_LLM_LIBRARY can force a specific library if the automatic choice is wrong for your processor. Compare the reported library with the CPU features recorded in step one. The step is done when the team can name the library in use and confirm it matches the host's CPU features. If the logs show a GPU discovery attempt that found nothing, that is normal on a CPU-only host.
Test concurrency at the default setting
The administrator sends several simultaneous requests to the model through the local API without changing OLLAMA_NUM_PARALLEL, so the server runs at its default of one parallel request per model. Expect requests to queue behind one another, and record the response times for each request. Use the server logs to confirm the queued requests are handled in order without errors. The step is done when all test requests complete, the timings are recorded as a baseline, and the team has noted that any change to the parallel setting must be tested against this baseline before it is applied to a shared host.
How to tell whether a GPU is being used
The check starts with a model load, then reads the processor column in ollama ps to see where the model was placed. If the model shows as running on CPU when you expected a GPU, the next step is the server logs, which show which compute library was selected and what GPU detection reported. From there the path splits: fix a driver or library problem using the GPU detection troubleshooting guidance, or accept CPU-only operation if the workload suits it and the hardware has no usable GPU.
Decision path for confirming whether Ollama is using a GPU after a model load.
Signs in ollama ps and logs that a GPU is not in use
A model that loads on the CPU when you expected a GPU rarely announces itself. The signs below show up across ollama ps, the server log, the response speed and the GPU monitor on the host, and they are most useful when read together. Confirm the exact output format on the Ollama version you have installed before you write alerts or runbooks against it.
CPU shown in ollama ps
Run ollama ps after a model has loaded. The processor column lists how the model was placed. If a model you expected on the GPU shows CPU, or shows a split between CPU and GPU, the model is not fully resident in VRAM. Check the model size against free VRAM, then check whether another loaded model is occupying memory. Confirm the column labels and split notation on your installed version, because they have changed across releases.
CPU library selected in the server log
Ollama bundles LLM libraries compiled for different GPUs and CPU vector features, and it picks one automatically. When the server log names a CPU library at startup or on model load, while you expected a CUDA or ROCm library, the GPU was not detected by the runtime. Read the startup lines from the server log around the time the service started. The OLLAMA_LLM_LIBRARY variable can force a library, but forcing one should be a diagnostic step, not a fix, until the cause of the detection failure is known.
Token output slower than a fitting model should be
A model that fits comfortably in VRAM should generate tokens at a steady pace. If responses are slow for a model you have sized to fit, the most likely cause is that some or all of its layers are running on the CPU. Compare the speed with a small model on the same host. A large gap between the two is a strong hint of CPU fallback, though slow output also comes from long contexts, concurrency and a busy system, so treat it as a lead to confirm, not proof.
No VRAM use in the GPU monitor
While a request is running, query the GPU from the host with nvidia-smi or the equivalent tool for your vendor. If the Ollama process does not appear and memory use stays flat, inference is not running on the GPU. Confirm that the driver is loaded and that the monitoring tool sees the card before concluding anything. Run the check during generation, because an idle model may release or never claim memory in the way you expect.
GPU missing from the service environment
A GPU can be visible to your login shell and invisible to the Ollama service. This happens when the service runs under a different user, a container lacks the GPU device mapping, or a variable such as CUDA_VISIBLE_DEVICES hides the card from the process. Compare what the service sees with what your shell sees, and check the environment the service was started with. Confirm the variable names and container flags for your deployment method.
Questions buyers ask about CPU-only Ollama
Is CPU-only Ollama good enough for our workload?
CPU-only Ollama is usually acceptable for small models serving low-volume tasks, such as internal drafting, classification or batch summaries where a slower answer does not block a person or a process. It is a poor fit for interactive assistants with many concurrent users, long prompts or large models, because response time rises quickly once generation runs on system memory and processor cores instead of a GPU. Test with your own model, prompt length and expected request volume before deciding. Measure time to first token and tokens per second under realistic load, and set a response-time threshold that the business agrees to in advance.
What actually drives response time on a CPU server?
Three factors dominate: the model size and quantization, the number of processor cores and vector instruction support available to Ollama, and whether the model fits in system RAM without swapping. Prompt length adds work before the first token appears, and parallel requests divide the same cores among more callers. Ollama ships LLM libraries compiled for different CPU vector features and picks one automatically, so the CPU generation matters as much as the core count. Check the library in use from the logs rather than assuming it.
Does running Ollama on CPU add licensing or usage costs?
Running models on your own hardware is unlimited according to Ollama's pricing page, so the software and local model runs carry no usage fee. The recurring costs are the server itself, its power and cooling, storage for model files, and the internal or partner time needed to operate it. Paid Ollama plans cover cloud models, and the Enterprise plan adds model access controls, cost budgets and a dedicated support channel. Confirm the licensing terms of each model you plan to use, because model licenses are separate from the Ollama license.
How much system RAM does a CPU-only deployment need?
On CPU, the model weights, the context cache and the operating system all compete for system RAM, so the server needs enough free memory for the largest model you plan to keep loaded at once. Ollama's loaded-model limit defaults to 3 on CPU, which means several models can occupy memory at the same time if requests reach them. Size memory for your model list, the expected context length and the number of models loaded at once, then verify under load that the server does not swap. Ask your hardware vendor and your model provider to confirm exact memory figures for each model.
How do we know Ollama is not using a GPU?
Check ollama ps while a model is loaded: the processor column shows whether the model runs on the CPU or is split between CPU and GPU. Then read the server logs for the library chosen at startup and for any GPU detection messages. A GPU that is installed but not listed in the logs usually points to a driver, runtime or permission problem rather than a missing card. If you need to force a specific CPU library for testing, Ollama supports the OLLAMA_LLM_LIBRARY setting, such as cpu_avx2, but treat that as a diagnostic step and confirm the result against the troubleshooting guide.
Can our own team set up CPU-only Ollama?
A capable Linux or systems engineer can install Ollama and run a small model on CPU without outside help, following the official installation and troubleshooting documentation. The harder work is operational: fixing the bind address and exposing the API safely, placing an authentication layer in front of it, controlling where models are stored, setting concurrency limits, and building logging and monitoring. Decide which of these your team will own before the first production use. A partner is useful when the server must pass a security review or serve several applications on a shared schedule.
What does a CPU-only setup need from our internal team?
Plan for a named owner who can install, patch and restart the service, a person who reviews the network exposure and access model, and someone who tracks model licenses and approves new models. The team also needs a test plan with representative prompts and a response-time target, plus a rollback path if a new Ollama release changes behavior. Ollama publishes frequent releases, so schedule version reviews. Ask your partner or vendor to list each of these tasks in writing so that ownership is clear before go-live.
How long does a CPU-only deployment take to set up?
Duration depends on the environment, the number of models, the security requirements and whether the server joins existing identity, logging and monitoring systems. A single developer workstation can run in a short session, while a shared internal server that needs authentication, storage planning, load testing and documentation takes longer. Ask for a written scope and timeline that lists each environment, each model and each integration, because those items decide the schedule. DeployOpen agrees scope, deliverables and timelines in writing before work starts.
Security and operational considerations on CPU hosts
A CPU-only Ollama host is still a network service that holds model weights and answers prompts. The cards below cover the controls that matter most on a small server: how it is exposed, what leaves the machine, where models live and how the runtime is kept current.
No built-in authentication
The local API at port 11434 accepts requests without authentication, and Ollama binds to 127.0.0.1 by default. Any change to OLLAMA_HOST that makes the server reachable from other machines should be paired with a front proxy that enforces authentication, such as Nginx configured by your team. Check with ss -ltnp that the listener is on the address you intended, and confirm that the firewall matches.
Proxy in front of exposed hosts
A reverse proxy solves the authentication gap only if it is the sole path to the API. Confirm that the Ollama port is blocked from the network, that the proxy handles TLS, and that it rejects unauthenticated requests before they reach the server. Test this from a machine outside the allowed group, because a proxy that looks correct in configuration can still leave the backend port open.
Local prompts stay on the host
Ollama states that when it runs locally it does not see your prompts or data. That statement covers the local runtime. Cloud models and direct cloud API calls are separate paths that need an API key sent as a Bearer token. Set OLLAMA_NO_CLOUD=1 on hosts that handle regulated data, and confirm the setting in the server configuration file so a restart does not silently change it.
Model storage location and permissions
Models are stored in a default directory that depends on the operating system, such as /usr/share/ollama/.ollama/models on Linux. OLLAMA_MODELS moves that directory to another volume. Choose a location with enough space for every model you plan to keep, and set ownership so only the service account can write there, while your model review process controls which weights are added.
Patching through release versions
Ollama ships frequent releases, and v0.40.5 was released on 14 October 2026. v0.40.6 was published as a pre-release on 16 October 2026, so treat it as a test build rather than a production target. Pin the version on each host, read release notes for changes to the API and CPU library selection, and retest model loading after every upgrade.
Ollama releasesChange control for CPU hosts
CPU hosts are often added as quick side servers, so they can drift from the controls applied to the main service. Record the bind address, proxy rules, storage path, environment variables and installed version in a runbook. Ask your team to confirm who approves a new model and who owns the patch window before the host takes traffic.
How DeployOpen scopes and delivers CPU-only Ollama
DeployOpen plans and builds CPU-only Ollama servers inside infrastructure you control, starting from the models, latency expectations and request volume your team needs. Each engagement is fixed-scope, with the work, deliverables and timeline agreed in writing before any build starts.
How we scope
- Confirm which tasks and models will run on CPU and which need a GPU before any build begins.
- Measure available system RAM, core count and CPU instruction set support on the target hosts.
- Agree in writing the request volume, acceptable response times and the fallback if CPU capacity is exceeded.
How we build
- Install Ollama on the chosen Linux, container or Windows host and confirm which CPU vector library it selects.
- Test whether OLLAMA_LLM_LIBRARY needs to force a specific CPU library, and document the reason for any override.
- Check ollama ps and server logs under load to confirm models run on the CPU and do not fall back to unexpected paths.
How we hand over
- Deliver a written configuration record covering host sizing, model storage location, environment variables and service settings.
- Provide a runbook for spotting GPU-absent signs in ollama ps and logs, with the steps to take when they appear.
- Document the test results, the models approved for CPU use and the conditions that should trigger a hardware review.
How we support
- Review the CPU-only setup again when you add models, change request volume or upgrade Ollama versions.
- Offer ongoing support, upgrades and continuous testing as a retainer, scoped in writing.
- Confirm with your own team any compliance, data handling or access control requirements before go-live.

