One of the clear trends of 2027 is that small businesses and developers no longer just send their data to AI providers; they experiment with self-hosted AI on a VPS, running open-source models through tools such as Ollama and llama.cpp. The appeal is obvious: your data never leaves your server, and there is no bill that grows with every request. But the reality has clear limits, especially on a server without a graphics card. This guide helps you judge when a CPU alone is enough, how much RAM you need, and when using an API is the smarter call.
Why run models on your own server?
- Privacy: text and documents are processed inside your server and not sent to a third party, which matters for contracts, internal data and customer records.
- Fixed cost: you pay a monthly server fee instead of paying per request, which suits high-volume repetitive tasks.
- Independence: you are not affected when an external provider changes prices or retires a model you depend on.
- Control: you choose the model and version and pin it, so its behaviour does not change overnight.
Fact one: without a GPU, memory and speed are the limits
The Linux VPS and dedicated server plans listed by EngHosting are built on CPU, RAM and NVMe storage; they do not include graphics cards. That does not stop you running models, because llama.cpp and Ollama (which builds on it) are designed to run on a CPU too. But two things matter:
- The whole model must fit in RAM. If the system has to fall back on swap, the model becomes so slow it is unusable.
- CPU speed is bound by memory bandwidth, so the larger the model, the noticeably slower it generates text. Small models answer at an acceptable pace; large ones suit tasks nobody is waiting for.
How much RAM do you need? A rule of thumb
Open models are usually distributed as quantized GGUF files. At 4-bit quantization, each billion parameters needs roughly half a gigabyte or a little more, plus memory for the conversation context, the operating system and your application. The table below is a rough planning estimate, not a measurement, so always test before committing:
| Model size | Suggested server RAM | Linux VPS plan to start from | Realistic use on a CPU |
|---|---|---|---|
| Small embedding models | 2–4 GB | Linux VPS 1 or 2 | Excellent for semantic search and text classification |
| 1 to 4 billion parameters | 4–8 GB | Linux VPS 2 or 4 | Classification, data extraction, short summaries |
| 7 to 9 billion | 8–16 GB | Linux VPS 4, better VPS 5 | Internal assistant for a few users |
| 12 to 14 billion | 16–24 GB | Linux VPS 5 or 6 | Better quality, slower answers |
| Around 30 billion | 32–48 GB | Linux VPS 7 or 8 | Background tasks and overnight batches |
| Around 70 billion | 64 GB or more | Linux VPS 9 or a dedicated server | Very slow for chat; usually impractical without a GPU |
Disk space matters too: a 7-billion-parameter model at 4-bit takes several gigabytes, and you will usually keep more than one model around for testing. NVMe storage shortens the time it takes to load a model into memory.
What actually works well on a CPU?
- Semantic search (embeddings): turning your articles or documents into numeric representations for smarter search. Embedding models are small and fast on a CPU.
- Classification and extraction: sorting support messages, or pulling a name, amount and date out of text, with short answers.
- Overnight processing: summarising documents or drafting descriptions in the background, with no user waiting.
- An internal tool for a small team: an assistant that answers from company documents for a limited number of staff.
If you work with Arabic content, test any model with real Arabic text from your own work before relying on it; Arabic quality varies a lot between models and between sizes of the same model.
Getting it running, briefly
- Prepare and secure the server first with our 10 first steps after receiving a Linux VPS: a sudo user, SSH keys and a firewall.
- Install Ollama from its official site using the Linux install script (read the script before running it); it runs as a systemd service.
- Pull a model and try it:
ollama pulland thenollama runwith the model name, andollama psto see which models are loaded in memory. - Connect your application to Ollama's local API on port
11434. It also offers an OpenAI-compatible API under/v1, which makes it easy to switch between it and an external provider. - For finer control, use llama.cpp directly:
llama-serverruns an OpenAI-compatible HTTP server, with the thread count set by-tand the context length by-c.
Security: never expose the model port to the internet
By default Ollama listens on 127.0.0.1, meaning only from inside the server, and that is the right setting. Its API has no built-in login, so if you change OLLAMA_HOST to listen on all addresses and open the port, anyone can use your server and burn its resources. If you need access from outside, put Nginx in front of it with authentication and an SSL certificate, or make your own application the only gateway. With llama-server, use the --api-key option if it will be called over the network.
Also read each model's licence before commercial use; "open" models do not all come with the same terms.
When should you use an API instead?
| Situation | Better fit |
|---|---|
| Sensitive data and simple, repetitive tasks | A small model on a VPS |
| A chat assistant for many simultaneous visitors | API |
| You need top quality in reasoning, writing or long-document analysis | API |
| Light, occasional use | API, usually cheaper than a large server running all month |
| Semantic search over your own content | A local embedding model is usually enough |
A hybrid setup is common and sensible: a local model for simple tasks and sensitive data, and an API for tasks that need higher quality. See our AI hosting 2027 guide for protecting API keys and controlling their cost.
Add RAM or upgrade the plan?
If your chosen model needs a little more memory than you have, you can add resources to a VPS through Extra Services: extra RAM at 100 EGP per month per 1 GB, and an extra CPU core at 500 EGP per month. Do the maths before you order, though: moving from Linux VPS 4 (8 GB, 1,500 EGP a month) to Linux VPS 5 (16 GB plus more cores and storage, 2,100 EGP a month) costs 600 EGP more, while adding 8 GB of RAM on its own costs 800 EGP. Add-ons suit small increases; upgrading is cheaper for a big jump. For general sizing advice, see how to choose a Linux VPS plan.
Quick questions
Can I run something like ChatGPT on an ordinary VPS?
Not at the same level. Small open models running on a CPU are useful for specific tasks, but they do not match the largest commercial models in quality or speed.
Can the server serve several users at once?
On a CPU, one request can occupy most of the cores. Simultaneous requests will wait or slow each other down, so this approach suits a small team or queued jobs, not a busy public website.
Do I need a Windows VPS?
Usually not. Most model-running tools and their documentation target Linux first, and Linux does not spend memory on a graphical desktop.
Need help choosing the right plan?
Message EngHosting with your website type, expected traffic and budget, and the team will recommend a suitable option.
Ask on WhatsApp