Hardware requirements for using Ollama without hang-ups

Last update: December 23th 2025
  • Ollama's viability depends primarily on RAM, GPU, and model quantization, not so much on the app itself.
  • With 16 GB of RAM and an 8–12 GB GPU, 7B–13B quantized models can be handled well for everyday use.
  • The 30B–70B models require GPUs with 16–32 GB of VRAM and at least 32 GB of RAM to be truly usable.
  • Choosing the right model size and format for your hardware prevents crashes and enables smooth, private local AI.

Hardware requirements for Ollama

If you're considering running artificial intelligence models on your own computer, you'll inevitably come across Ollama sooner or later. And that's where the big question arises: what hardware requirements do I need for the models to run smoothly and without stuttering? It's not enough for them to simply start up; the key is that they can be used comfortably in everyday tasks, and understanding the different types of computer hardware is essential.

Throughout this article we will see in detail what Llama does, what the different types of models (7B, 13B, 70B, etc.) require, how CPU, GPU, RAM and disk influence performance, and what configurations are reasonable depending on your case , whether you want a simple text assistant or intend to run monsters like Llama 3 with tens of billions of parameters or vision and OCR models.

What is Ollama and why does the hardware make such a difference?

Ollama is essentially a language model client that allows you to run LLMs locally on your machine, without relying on the cloud. It uses engines like llama.cpp for inference and wraps all the complexity in a simple tool, with CLI and REST API, also helping you understand the concepts of the artificial neural networks behind the models.

Its role is to be the "command center" from which you download, manage, and run models like Llama 3, Mistral, Gemma, Phi, Qwen, DeepSeek, or multimodal models like Llava . The beauty is that you can use them completely offline, keeping your data on-premises and without paying for each token as is the case with cloud APIs.

Now, while Ollama itself is lightweight and not demanding, the models it runs are very resource-intensive . Each LLM consists of millions or billions of parameters, which translates into gigabytes of memory and storage, as well as a heavy load on the CPU and, if you have one, the GPU.

That's why, when someone tries to run a large model (for example, a 70B Llama) on a system with a powerful CPU but a discrete GPU and just enough RAM, the result is usually that "it works," but it's so slow it's practically useless . The key is to properly balance CPU, GPU, RAM, hard drive, and model type.

Types of models in Ollama and how they affect requirements

In the Ollama library you will see models organized by families and sizes: 1B, 2B, 4B, 7B, 13B, 30B, 65B, 70B, 405B… . That number (B for billions) indicates the approximate number of parameters, and is one of the factors that most determines the necessary hardware.

We can group them in a general way into four categories , which greatly help to estimate what machine you need to be comfortable with each group of models and quantifications:

  • Mini models (270M – 4B): designed for modest devices (simple laptops, even some mobile phones or mini-PCs). Fast, but with less reasoning ability.
  • Small models (4B – 14B): ideal as balanced “domestic” modelsGood for general chat, office tasks, light coding assistance, etc.
  • Medium models (14B – 70B)They're already playing in a different league; They need powerful hardware., plenty of RAM and, if possible, a GPU with a lot of VRAM.
  • Large models (> 70B)They are beasts designed for very serious infrastructures (High-end GPUs, multiple graphics cards, dedicated servers, well-utilized high-end Macs, etc.).

In addition to size, quantization also comes into play : in Ollama you'll see suffixes like q4_K_M, q5_1, q3_K_S, q8_0, f16 , etc. These formats indicate how compressed the model's weights are.

  • FP16 / FP32 (f16, f32): barely compressed, top quality but brutal memory consumptionA 7B in FP16 can go to more than 20 GB of VRAM.
  • Q4 (q4_0, q4_K_M…): 4-bit quantization, large size reduction with moderate impact on qualityThey are usually the "sweet spot".
  • Q3, Q2 (q3_K_S, q2_K…): more aggressive quantizations, very small size in exchange for a slight loss of precisionUseful on very limited hardware.
  • Q5, Q6, Q8: intermediate steps between strong compression and FP16; Higher quality, higher consumption.

The practical consequence is clear: the same 7B model can occupy approximately 26 GB in FP16 or about 4 GB in Q4 . This translates directly into the GPU VRAM you need and the amount of RAM that must support the workload.

Minimum and recommended hardware requirements for Ollama on the local network

If you're worried about whether your computer can handle Ollama, the answer is usually yes; the question is which model you can run smoothly . Let's break it down by component: RAM, CPU, GPU, and hard drive, with realistic recommendations based on practical experience and documentation from several specialized guides.

RAM: the ultimate critical resource

RAM is the primary bottleneck when discussing local LLMs. Generally speaking, we can consider these ranges:

  • 8 GB of RAM: the practical ground. It allows small models (1B, 3B, some highly quantized variant of 7B)However, you'll notice limitations, especially if the system and browser are already using up a lot of memory. It's likely that everything will run a bit slow and with more lag.
  • 16 GB of RAM: the reasonable standard today. Ideal for 7B and even 13B models quantized in Q4Especially if you're using GPUs. You can work with complex chats without the system slowing down.
  • 32 GB of RAM or moreRecommended if you want medium models (30B, 40B, 70B) or do heavier things like very long contexts, several models in parallel, multi-user servers or Open WebUI-type graphical tools on Ollama.
  The best computer processors on the market

Keep in mind that RAM isn't just used by the device itself: the operating system, browser, IDE, Docker, Open WebUI, and other applications also consume it . If you want to free up memory in specific scenarios, you can learn how to reduce RAM usage in applications like your browser. For intensive use, 16 GB is currently the minimum recommended, and 32 GB is more than enough.

CPU: Modern instructions and number of cores

Ollama can run on a CPU alone, but the experience varies greatly depending on the processor. More important than the number of cores is support for advanced instructions like AVX2 and, even better, AVX-512 , which accelerate matrix and vector operations used extensively in LLMs.

A reasonable guideline would be:

  • Minimum acceptableA modern quad-core CPU (for example, a latest-generation Intel i5 or equivalent Ryzen processor) with AVX2 support. You will be able to Run 7B models patiently, especially if they are well quantized.
  • Recommended: latest processors type Intel 11th generation or later or AMD Zen4, with 8 cores or more and AVX-512 support where possible. This way you get improved response times and less bottlenecking, even with GPUs.

If your plan is to use very large models (for example, trying a 70B Llama 3 with a modest CPU and GPU), the CPU will struggle and you'll notice very high token generation times . In these scenarios, the most sensible approach is to opt for smaller models or invest in a suitable GPU.

GPU and VRAM: when is it essential and how much is needed

The GPU isn't mandatory, but it makes a world of difference. A decent GPU with enough VRAM can transform a slow experience into something perfectly usable , especially with 7B to 13B quantized models.

As a very useful reference , for quantized models (approximately Q4) something like this can be estimated:

  • 7B → ~4 GB of VRAM
  • 13B → ~8 GB of VRAM
  • 30B → ~16 GB of VRAM
  • 65-70B → ~32 GB of VRAM

These are approximate values, but they clearly show that an RTX 2060 SUPER GPU with 8 GB of VRAM is more than capable of 7B and can handle 13B, but falls short at 70B even with an i9 and 64 GB of RAM. In that case, the system will be forced to distribute a lot of the load between RAM and CPU, and latency will skyrocket.

In practical terms :

  • With 4-6 GB of VRAM: focus on well-quantized 7B modelsThey work very well for chat, writing, and general tasks.
  • With 8-12 GB of VRAMYou can work comfortably with 7B and 13B and even some 30B if you're willing to go a bit slower.
  • With 20-24 GB of VRAMYou're now entering the territory of 30B-40B models with considerable dignity, and some highly quantized 70B, especially if you support it with good RAM.
  • With 32 GB of VRAM or more: is when 70B really starts to seem reasonable for interactive use, provided the rest of the team accompanies.

For an OCR model or other specialized models (e.g., vision), a GPU with 20-24 GB of VRAM is a very solid foundation for smooth performance , especially if the model involves tens of billions of parameters. For lighter (2B-7B) OCR or vision variants, 8-12 GB should be perfectly adequate.

Disk storage: how much space do the models take up

As for disk space, the Ollama application itself takes up very little; what really takes up space are the models. In a basic or test environment, about 50 GB is sufficient , but if you start collecting models, the space quickly increases.

As a rough guide for quantized models:

  • Small models (1B-4B) → around 2 GB by model.
  • Medium-sized models (7B-13B) → normally 4-8 GB by model according to the quantification.
  • Large models (30B-70B) → easily 16-40 GB each.
  • Very large models (> 100B) → can exceed 200 GB by model and even exceed terabytes in some extreme cases.

Ideally, use a fast SSD (NVMe if possible) for faster initial model loading. Additionally, Ollama allows you to change the model storage location using the OLLAMA_MODELS environment variable , so you can use a large secondary drive and free up space on your primary drive. For more information on storage capacity and drive types, see the storage hardware guide.

Specific requirements for running specific models with Ollama

Although each model has its nuances, with the current Ollama ecosystem some clear guidelines can be given for typical usage categories: general chat, encoding, vision/OCR models and giant 70B-type models.

General chat templates (Llama, Mistral, Gemma, Qwen…)

For typical "local ChatGPT" use with mid-sized models like Llama 3.x 7B/8B, Mistral 7B, Gemma 2B/7B or Qwen , a reasonable setup today would be something like this:

  • Minimum recommended:
    • Modern quad-core CPU with AVX2.
    • 16 GB of RAM.
    • No GPU or basic GPU with 4-6 GB VRAM.
    • At least 50 GB SSD for system + one or two models.
  • Optimal configuration to have plenty of headroom with 7B-13B:
    • 8-core or higher CPU (modern i7/i9 or Ryzen 7/9).
    • 32 GB of RAM if you want to keep many things open.
    • GPU with 8-12 GB of VRAM (RTX 3060/3070 or equivalent, AMD RX 6700 or higher, or a Mac with a well-utilized M1/M2/M3).
    • 1 TB SSD if you're going to collect models.
  PostgreSQL: The preferred choice for AI and real-time applications

In these scenarios, 7B models with Q4_K_M or Q5_K_M quantization perform very well and offer more than enough quality for personal use, technical documentation, study tasks, or writing support.

Coding models (DeepSeek, CodeLlama, Code-oriented Phi)

Models specialized in programming usually have similar needs to general chat models of the same size , but it's advisable to reserve a little more margin in RAM and VRAM if you're going to use them along with a heavy IDE and many open projects.

For example, to use something like DeepSeek-Coder (7B-8B) or a similarly sized CodeLlama under the right conditions , a very reasonable combination would be:

  • CPU modern 6-8 cores.
  • 32 GB of RAM if you work with multiple tools at the same time (IDE, tabbed browser, Docker, etc.).
  • GPU with at least 8 GB of VRAM to move the model smoothly.

It also works on less powerful hardware, but you'll notice slower response times when generating long blocks of code or performing complex analyses . For compact models like the Phi-4 Mini, the requirements are much lower, and they perform well even on systems with 16 GB of RAM and a lightweight GPU.

Vision and OCR models (Key, OCR models, multimodal)

Models with image processing capabilities (vision/OCR) such as Llama or the multimodal variants of Llama 3.x, as well as specific OCR models, add a further layer of complexity. At the hardware level, they approach the requirements of a text model of the same size, but with the greater benefit of using a GPU.

If we're talking about a medium-sized OCR model (let's say in the 7B-13B range) and you want to use it comfortably locally for document recognition, scanned images, etc., it makes sense to consider something like:

  • GPU with 20-24 GB of VRAM whether the model is really large or if you want to leave almost all the processing on the card.
  • GPU with 8-12 GB of VRAM If you choose lighter and well-quantized variants, it will continue to work well as long as you don't overuse image size or gigantic contexts.
  • Minimum 16 GB of RAM, although 32 GB offers a very comfortable margin for intensive use.
  • modern CPU so that it doesn't bottleneck when the GPU is loaded.

The direct answer to the typical question of "can I run an OCR model on a GPU with 20-24 GB of VRAM?" is yes, it's an excellent range for medium to large vision/OCR models in Ollama , provided you also have enough RAM and a decent CPU.

Giant models (Llama 3:70B and similar)

Trying to run a 70KB Llama 3 on Windows with a very powerful CPU (for example, an 11th generation i9) and 64GB of RAM but a GPU like an 8GB RTX 2060 SUPER is a perfect example of "yes, but no." The model might eventually load, but:

  • Part of the model does not fit in VRAM and relies heavily on RAM.
  • The CPU has to take on a lot of inference work.
  • The time per token skyrockets and the experience becomes virtually unusable..

For a 70B to make sense in home or semi-professional environments, you need, at a minimum , something along these lines:

  • 32 GB of RAM as a base, 64 GB if you want extra headroom.
  • GPU with at least 24-32 GB of VRAM to load most of the model with a reasonable quantization (Q4_K_M or similar).
  • Powerful high-end CPU with 8-16 cores.

If you don't meet these figures, it's much more practical to use well-quantized 7B-13B models or, if you really need 70B for quality, consider a specialized server (local or in the cloud), a very powerful Mac, or several GPUs working in parallel.

Requirements to install Ollama on a VPS or server

Another common option is to install Ollama on a VPS or dedicated server and access it via API or web interface (for example, with Open WebUI). This involves not only resources but also the operating system and permissions.

In guides from providers like Hostinger, the following minimum requirements are recommended for a VPS geared towards Ollama:

  • RAM: minimum 16 GB so that small/medium models do not overwhelm the system.
  • CPU: 4-8 vCoresdepending on the size of the models and the number of concurrent users.
  • Storage: 12 GB minimumHowever, in practice it's advisable to aim higher (50-100 GB) if you're going to try several models.
  • Operating System: above all Linux, with preference for Ubuntu 22.04 or higher, or a recent stable Debian.
  • Root access or sudo permissions in order to install dependencies, configure systemd, etc.

If your VPS includes an NVIDIA GPU, you'll need to install and configure CUDA or the NVIDIA container toolkit if you're using Docker. With AMD, ROCm is typically used on Linux, and the appropriate Adrenalin drivers on Windows. In environments without a GPU, the server will rely on CPU and RAM, so don't skimp on those resources; you can also manage it remotely via remote desktop if you need a graphical interface.

  How to apply Deep Work and maximize your concentration

Specific hardware scenarios and which models to use

To ensure that all of the above doesn't remain purely theoretical, it may be helpful to look at some typical hardware combinations and what types of models fit well in each case using Ollama.

Modest desktop or medium laptop computer

Let's imagine a typical team :

  • i5 or Ryzen 5 CPU from a few years ago (4-6 cores).
  • 16 GB of RAM.
  • Integrated or dedicated 4 GB GPU.
  • 512GB SSD.

In this scenario, the sensible thing to do is to aim for :

  • Quantized 1B-3B models (Gemma 2B, Phi-4 Mini, Llama 3.x 1B) for maximum fluidity.
  • 7B models in Q4 if you accept a slightly longer response time.
  • Using Ollama with a terminal and, if you want a web interface, Open WebUI carefully so as not to overload the RAM.

You can have your local text assistant, make summaries, do some analysis and light programming tasks, but it's not the ideal environment for 13B models and above.

Mid-to-high-end equipment focused on local AI

Here we're talking about a PC type :

  • Modern i7/i9 or Ryzen 7/9 CPU, 8-16 cores.
  • 32 GB of RAM.
  • GPU with 12-24 GB of VRAM (RTX 4070/4080, 3090, 4090, AMD equivalents or similar).
  • 1-2 TB SSD.

This configuration greatly expands the range of possibilities :

  • Models 7B-13B in Q4/Q5 for chat, code, data analysis… with very good response times.
  • 30B Models and some 70B quantized if you accept a little more latency.
  • Models vision/OCR medium-sized using the GPU extensively.

It's the kind of machine with which you can set up a serious local AI environment, with multiple models, a web interface, integration via REST API, and a professional workflow without depending on external services.

"Beast" server or workstation

At the top end are environments with:

  • Several GPUs with 24-48 GB of VRAM each, or a single high-end one.
  • 64-128 GB of RAM.
  • CPUs with many cores, such as recent Threadripper or Xeon models.

This is where giant models (>70B, MoE, vision heavy, etc.) start to become realistic, even with multiple concurrent users or complex integrations. It's obviously a high-cost scenario, but it also allows you to have capabilities similar to some commercial APIs, with complete data control within your own infrastructure.

Practical tips for getting the most out of your Ollama hardware

Beyond buying more RAM or a better GPU, there are several practices that help you get the most out of what you already have and avoid surprises when running large models with Ollama.

To begin with, it's important to choose the right model based on your intended use : there's no point in using a 70B to write simple emails when a well-tuned 7B is perfectly adequate. Similarly, a 30B doesn't make sense if your GPU only has 6GB of VRAM; a 7B will be a better choice in Q4.

Another key measure is to experiment with runtime parameters (temperature, num_ctx, num_predict, etc.), either in the Modelfile or via CLI/API. Using ridiculously large contexts ( num_ctx of 32k or more ) with little RAM or VRAM will slow down the entire system without providing much benefit in many cases.

It is also recommended monitor which models are loaded and on which processor using ollama psThere you'll see if the model is actually running on the GPU or CPU, and what size it has loaded. Adjust the variable OLLAMA_KEEP_ALIVE It helps models to unload memory when they are not in use, thus freeing up resources.

Finally, remember that quantization is your ally : creating Q4_K_M or Q5_K_M variants of an original FP16 model allows you to take advantage of much more modest hardware with a loss of quality that is often almost imperceptible for real-world use.

After considering all of this, the clearest takeaway is that Ollama isn't the demanding part; the models are . Understanding how size, quantization, RAM, and VRAM relate allows you to choose the right hardware and LLM combination for your needs: from a laptop with 16 GB running a lightweight 7B to a workstation with a 24 GB GPU handling robust vision and OCR models. By carefully adjusting expectations and parameters, it's perfectly feasible to have a powerful, private AI running on your own machine without monthly fees.

transform your PC into an AI lab
Related articles:
How to transform your PC into a real AI lab